gpt4 book ai didi

python - QtOpenGL : No such file or directory opencv python

转载 作者:太空宇宙 更新时间:2023-11-03 21:55:49 27 4
gpt4 key购买 nike

当我使用 make commande 时出现这个错误

[ 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 ..

但是问题还在

最佳答案

您需要安装缺少的依赖项,这可以通过以下方式完成:

sudo apt-get install libqt5opengl5 libqt5opengl5-dev

关于python - QtOpenGL : No such file or directory opencv python,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31538560/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com