how to add opencv to a gui QT application? -
i created new widget gui application in qt . , in order using opencv , added includepath
, libs
projects following :
qt += core gui greaterthan(qt_major_version, 4): qt += widgets target = testqt4 template = app sources += main.cpp\ widget.cpp includepath += c:/opencv/build/include libs += -lc:\opencv\build\x64\vc12\lib -lopencv_world310d headers += widget.h forms += widget.ui
and included desired opencv headers following :
#ifndef widget_h #define widget_h #include <qwidget> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> ....
but when builded project encountered error :
can me fix error ? thank .
are using qt creator?
it not update makefile once changed .pro
file.
right click on project folder in projects view , click "run qmake" should fix it.
Comments
Post a Comment