QTcreator下使用opencv的配置写法

第一种方法:简洁

CONFIG += link_pkgconfig
PKGCONFIG += opencv

第二种比较传统:

#INCLUDEPATH += /usr/local/include \
#               /usr/local/include/opencv \
#               /usr/local/include/opencv2



#LIBS += /usr/local/lib/libopencv_core.so \
#        /usr/local/lib/libopencv_highgui.so \
#        /usr/local/lib/libopencv_imgproc.so

你可能感兴趣的:(图像处理,linux)