qt creator - Using OpenCV in QTCreator (linking problem) -


i have problem linking simpliest test program in qtcreator:

code:

#include <qtcore/qcoreapplication> #include <cv.h>  #include <highgui.h> #include <cxcore.hpp>  using namespace cv;  int _tmain(int argc, _tchar* argv[]) {     cv::mat m(7,7,cv_32fc2,scalar(1,3));     return 0; } 

.pro file:

qt       -= gui target    = testopencv config   += console config   -= app_bundle includepath += c:/opencv2_1/include/opencv template = app  libs += c:/opencv2_1/lib/cxcore210d.lib \     c:/opencv2_1/lib/cv210d.lib \     c:/opencv2_1/lib/highgui210d.lib\     c:/opencv2_1/lib/cvaux210d.lib sources += main.cpp 

i've tried use -l , -l libs += -lc:/opencv2_1/lib -lcxcored

and in .pro file:

qmake_libdir += c:/opencv2_1/lib/debug  libs += -lcxcore210d \ -lcv210d \ -lhighgui210d  

the errors like:

debug/main.o:c:\griskin\test\app\testopencv/../../../../opencv2_1/include/opencv/cxcore.hpp:97: undefined reference cv::format(char const*, ...)'

could me? thanks!

in visual studio works need works in qtcreator..

using opencv qtcreator couldn't easier. have detailed simple way here.

http://www.barbato.us/2010/09/20/using-opencv-within-qtcreator-in-windows/

good luck , have fun opencv


Comments

Popular posts from this blog

Delphi Wmi Query on a Remote Machine -