在MAC下,QTcreator配置opencv4.0库

1. brew install opencv

2. brew install qt-creator

.pro 文件的书写

TEMPLATE = app
CONFIG += console c++11
CONFIG -= app_bundle
CONFIG -= qt
 
SOURCES += \
        main.cpp
INCLUDEPATH += /usr/local/Cellar/opencv/4.1.0_2/include/opencv4/opencv2/
INCLUDEPATH += /usr/local/Cellar/opencv/4.1.0_2/include/
INCLUDEPATH += /usr/local/Cellar/opencv/4.1.0_2/include/opencv4/
LIBS += -L/usr/local/Cellar/opencv/4.1.0_2/lib/ -lopencv_core -lopencv_highgui -lopencv_imgproc -lopencv_imgcodecs
 

 

你可能感兴趣的:(图像处理+opencv)