c++ - QT can't find openCV's libs -


i've installed opencv via this instruction.

i use opencv when , build code via cmake - , it's ok. i'm trying use opencv qt, , errors this:

 error: undefined reference `cvcreatecameracapture' 

the same errors functions opencv.

i tried add in .pro code:

includepath += /usr/local/include/opencv2 libs += -l/usr/local/lib libs += -lopencv_core libs += -lopencv_imgproc libs += -lopencv_highgui libs += -lopencv_ml libs += -lopencv_video libs += -lopencv_features2d libs += -lopencv_calib3d libs += -lopencv_objdetect libs += -lopencv_contrib libs += -lopencv_legacy libs += -lopencv_flann 

but isn't work. dir /usr/local/include/opencv2 exist , not empty.

so, what's wrong?

add .pro file:

libs += "pkg-config --libs opencv"          

Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -