0
我得到了下面的錯誤,當我運行make
大廈OpenCV進行CARMA
[ 27%] Built target pch_Generate_opencv_highgui
**Linking CXX shared library ../../lib/libopencv_highgui.so**
/usr/lib/gcc/arm-linux-gnueabi/4.5.3/../../../../arm-linux-gnueabi/bin/ld: cannot find -lgtk-x11-2.0
/usr/lib/gcc/arm-linux-gnueabi/4.5.3/../../../../arm-linux-gnueabi/bin/ld: cannot find -lgdk-x11-2.0
/usr/lib/gcc/arm-linux-gnueabi/4.5.3/../../../../arm-linux-gnueabi/bin/ld: cannot find -latk-1.0
/usr/lib/gcc/arm-linux-gnueabi/4.5.3/../../../../arm-linux-gnueabi/bin/ld: cannot find -lgio-2.0
/usr/lib/gcc/arm-linux-gnueabi/4.5.3/../../../../arm-linux-gnueabi/bin/ld: cannot find -lpangoft2-1.0
/usr/lib/gcc/arm-linux-gnueabi/4.5.3/../../../../arm-linux-gnueabi/bin/ld: cannot find -lpangocairo-1.0
/usr/lib/gcc/arm-linux-gnueabi/4.5.3/../../../../arm-linux-gnueabi/bin/ld: cannot find -lgdk_pixbuf-2.0
我該如何解決這個問題?
您可以在CMake中禁用GTK支持:-DWITH_GTK = OFF -DWITH_GSTREAMER = OFF – jet47