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