首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

生手问:make install时遇到.h文件不能识别

2013-12-20 
新手问:make install时遇到.h文件不能识别本帖最后由 yaoxinreaps 于 2013-11-20 21:20:43 编辑对linux下

新手问: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

热点排行