linux编译出现问题:file not recognized: File format not recognized
之前在板子上面编译的,现在在ubuntu下编译出现下面的问题:ipc/ipcclient.o: file not recognized: File format not recognizedcollect2: ld returned 1 exit statusMakefile:58: recipe for target ‘libcommon.so’ failed显示是格式问题:查看文件格式:fil
文章共109字 · 阅读需要大约1分钟
一键AI生成摘要,助你高效阅读
问答
·
之前在Ubuntu上X86编译,现在在ubuntu上ARM编译出现下面的问题:
ipc/ipcclient.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status
Makefile:58: recipe for target ‘libcommon.so’ failed
显示是格式问题:
查看文件格式:
file ipcclient.o
ipcclient.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped
文件的格式是:x86-64;现在编译的是:ARM
解决:先删除ipcclient.o文件make clean,再make uninstall;最后再次make
更多推荐
已为社区贡献3条内容
所有评论(0)