日期:2014-05-16  浏览次数:20760 次

新手问:make install时遇到.h文件不能识别
本帖最后由 yaoxinreaps 于 2013-11-20 21:20:43 编辑
对linux下的操作很不懂,系统是ubuntu10.04,编译器是gcc4.4.3。
首先make成功了,然后make install时最后出现了这样的提示:
cp -f "image.h" "/root/code/include/"
strip "/root/code/include/image.h"
strip:/root/code/include/image.h: File format not recognized
make: [install_headers] 错误 1 (忽略)
cp -f "hsiimage.h" "/root/code/include/"
strip "/root/code/include/hsiimage.h"
strip:/root/code/include/hsiimage.h: File format not recognized
make: [install_headers] 错误 1 (忽略)
cp -f "rgbimage.h" "/root/code/include/"
strip "/root/code/include/rgbimage.h"
strip:/root/code/include/rgbimage.h: File format not recognized
make: [install_headers] 错误 1 (忽略)
cat install.sh >install 
chmod a+x install
root@ubuntu:~/code/src/pccvImage#
这几个.h文件都是存在的,怎么会出现这种提示呢?然后“(忽略)”是什么意思?这个错误可以不管吗?

------解决方案--------------------
是不是makefile有问题呀 strip命令是移除库文件的调试相关信息,你用这个命令对*.h文件,

------解决方案--------------------
你用的是QMake对*.pro文件生成的Makefile,要想有Make Install,需要在*.pro工程文件中设置INSTALLS否则就不能用。
------解决方案--------------------
make install 一般需要root