當我使用使COMMANDE我得到這個錯誤QtOpenGL:沒有這樣的文件或目錄的OpenCV蟒蛇
[ 24%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_QT.cpp.o
In file included from /home/sharkawey/op/opencv-master/modules/highgui/src/window_QT.cpp:47:0:
/home/sharkawey/op/opencv-master/modules/highgui/src/window_QT.h:46:20: fatal error: QtOpenGL: No such file or directory
#include <QtOpenGL>
^
compilation terminated.
make[2]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_QT.cpp.o] Error 1
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
make: *** [all] Error 2
我用這個命令來編譯OpenCV的
cmake -D CMAKE_BUILD_TYPE=RELEASE -D INSTALL_C_EXAMPLES=ON
-D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON
-D WITH_QT=ON -D CMAKE_INSTALL_PREFIX=/usr/local
-D WITH_OPENGL=ON -D WITH_V4L=ON
-D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_TBB=ON ..
但proplem還在這裏
它仍然給我erorr我用QT5 – shar
你收到一個不同的錯誤信息,或再次同一個?你確定你提供了正確的完整路徑嗎? – Derman