strip: Unable to recognise the format of the input file

这个错误是出现在交叉编译过程的,makefile中的strip使用的是本机的strip,应该使用交叉编译工具链的strip
执行:

type strip

得到:

strip is hashed (/usr/bin/strip)

可见,strip是使用的本机系统的strip

在makefile中将:

STRIP = strip

改为

STRIP = arm-linux-gnueabihf-strip

猜你喜欢

转载自blog.csdn.net/weixin_43466192/article/details/123331556