马春杰杰 Exit Reader Mode

[mcj]../modules/highgui/src/window_gtk.cpp:48:21: fatal error: gtk/gtk.h:没有那个文件或目录

还是opencv安装问题:

/home/mcj/bigdisk/opencv-3.4.5/modules/highgui/src/window_gtk.cpp:48:21: fatal error: gtk/gtk.h: 没有那个文件或目录
compilation terminated.
modules/highgui/CMakeFiles/opencv_highgui.dir/build.make:110: recipe for target 'modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_gtk.cpp.o' failed
make[2]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_gtk.cpp.o] Error 1
CMakeFiles/Makefile2:8648: recipe for target 'modules/highgui/CMakeFiles/opencv_highgui.dir/all' failed
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2

解决方法:

sudo apt-get install libgtk2.0-dev

 

本文最后更新于2020年3月14日,已超过 1 年没有更新,如果文章内容或图片资源失效,请留言反馈,我们会及时处理,谢谢!