为什么指定了cmake的查找头文件路径无效,还是去找系统路径

Fu_Lin_
博客专家认证
2016-03-23 04:16:03
n file included from /usr/local/toolschain/4.5.1/bin/../lib/gcc/arm-none-linux-gnueabi/4.5.1/../../../../arm-none-linux-gnueabi/include/math.h:416:0,
from /home/fl/test/OpenCV-2.3.1/modules/highgui/../core/include/opencv2/core/types_c.h:83,
from /home/fl/test/OpenCV-2.3.1/modules/highgui/../core/include/opencv2/core/core.hpp:49,
from /home/fl/test/OpenCV-2.3.1/modules/highgui/include/opencv2/highgui/highgui.hpp:46,
from /home/fl/test/openarm/modules/highgui/precomp.hpp:51:
/usr/include/x86_64-linux-gnu/bits/mathinline.h: In member function 'virtual bool CvCapture_Images::setProperty(int, double)':
/usr/include/x86_64-linux-gnu/bits/mathinline.h:889:3: error: unknown register name 'st' in 'asm'
/usr/include/x86_64-linux-gnu/bits/mathinline.h:889:3: error: unknown register name 'st' in 'asm'
modules/highgui/CMakeFiles/opencv_highgui.dir/build.make:86: recipe for target 'modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_images.o' failed
make[2]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_images.o] Error 1
CMakeFiles/Makefile2:1247: recipe for target 'modules/highgui/CMakeFiles/opencv_highgui.dir/all' failed
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

上面是我指定的路径,但是总是出现去找/usr/include目录,请问大神怎么解决啊。。换了几个版本的cmake-gui都一样,按理应该是去找usr/local/toolschain/4.5.1/中的交叉编译头文件的,但是感觉没什么用
...全文
892 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
Fu_Lin_ 2016-06-30
  • 打赏
  • 举报
回复
引用 2 楼 u013535653 的回复:
我也是遇到了这个问题,楼主解决这个问题了吗?
我记得好像是解决了的,但是我当初是移植到arm或者在PC端的LINUX上面发现opencv根本打不开摄像头,一团黑,后来就用了V4L2来打开摄像头,具体的解决办法我也忘记了,后来好像是看了一篇博客解决了的,找到后,我会贴出来。
zhxingway 2016-06-23
  • 打赏
  • 举报
回复
cmake昨天才听过。。
图灵转世 2016-06-22
  • 打赏
  • 举报
回复
cmake没有用过,?
yanghuan1991 2016-06-22
  • 打赏
  • 举报
回复
我也是遇到了这个问题,楼主解决这个问题了吗?
Fu_Lin_ 2016-03-23
  • 打赏
  • 举报
回复
千万别沉,自己顶顶

23,126

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧