【正点原子linux应用编程】编译linpng出现问题

现在在ubuntu上ARM编译出现下面的问题

contrib/tools/pngfix.o: file not recognized: File format not recognized

问题原因:

找到pngfix.o所在位置,输入命令:file pngfix.o
pngfix.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped

文件的格式是:x86-64;现在编译的是:ARM

解决方法:

先删除ipcclient.o文件make clean,最后再次make

猜你喜欢

转载自blog.csdn.net/weever7/article/details/128055920