您好,欢迎来到[编程问答]网站首页   源码下载   电子书籍   软件下载   专题
当前位置:首页 >> 编程问答 >> Linux >> 为什么我在linux系统PC端编译OpenCV,用的是cmake-gui,make到这个地方的时候就总是报错过不去

为什么我在linux系统PC端编译OpenCV,用的是cmake-gui,make到这个地方的时候就总是报错过不去

来源:网络整理     时间:2016/5/8 19:00:37     关键词:

关于网友提出的“为什么我在linux系统PC端编译OpenCV,用的是cmake-gui,make到这个地方的时候就总是报错过不去”问题疑问,本网通过在网上对“为什么我在linux系统PC端编译OpenCV,用的是cmake-gui,make到这个地方的时候就总是报错过不去”有关的相关答案进行了整理,供用户进行参考,详细问题解答如下:

问题:为什么我在linux系统PC端编译OpenCV,用的是cmake-gui,make到这个地方的时候就总是报错过不去
描述:

本帖最后由 CLinuxF 于 2016-03-22 12:33:27 编辑

cmakeopencv linuxQt嵌入式

[ 30%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_QT.o
/home/fl/tool/OpenCV-2.3.1/modules/highgui/src/window_QT.cpp: In function ‘CvFont cvFontQt(const char*, int, CvScalar, int, int, int)’:
/home/fl/tool/OpenCV-2.3.1/modules/highgui/src/window_QT.cpp:88:80: warning: narrowing conversion of ‘spacing’ from ‘int’ to ‘float’ inside { } is ill-formed in C++11 [-Wnarrowing]
 Font f = {nameFont,color,style,NULL,NULL,NULL,0,0,0,weight,spacing,pointSize};
                                                                             ^
/home/fl/tool/OpenCV-2.3.1/modules/highgui/src/window_QT.cpp: In function ‘int cvWaitKey(int)’:
/home/fl/tool/OpenCV-2.3.1/modules/highgui/src/window_QT.cpp:316:16: error: ‘usleep’ was not declared in this scope
     usleep(1000);
                ^
modules/highgui/CMakeFiles/opencv_highgui.dir/build.make:238: recipe for target 'modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_QT.o' failed
make[2]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_QT.o] Error 1
CMakeFiles/Makefile2:598: recipe for target 'modules/highgui/CMakeFiles/opencv_highgui.dir/all' failed
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2

解决方案1:

#include 

以上介绍了“为什么我在linux系统PC端编译OpenCV,用的是cmake-gui,make到这个地方的时候就总是报错过不去”的问题解答,希望对有需要的网友有所帮助。
本文网址链接:http://www.codes51.com/itwd/977254.html

相关图片

相关文章