之前在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