Include OpenCV in qtCreator
-
oh...Now I understand!
Mhh...the compiler of Qt creator is MinGw, so, how can I compile the opencv libraries with MinGW? Exists any tutorial/guide?Thank you in advance!!
-
You may find apparently the source "here":http://opencv.willowgarage.com/wiki/
There is also a guide to be found. Where did you get OpenCV from? Maybe you get there also a Mingw version. -
I've downloaded this version: http://sourceforge.net/projects/opencvlibrary/files/opencv-win/2.3.1/
I can't find the MinGW version...
-
I found this guide, it is good for compile the opencv with MinGW?
http://opencv.willowgarage.com/wiki/MinGW -
when I follow the above guide, the program cmake return me an error:
!http://img823.imageshack.us/img823/6568/error2pl.jpg!
I don't know what anything do!
[EDIT: fixed image link, Volker]
-
Well, did you read the messages?
It clearly sais that there is a problem with your cmake setup. It cannot find the mingw compiler. That is your entry ticket.
I do not know anything about CMake. So, are at your place some colleaques to help you? -
I have downloaded this windows superpack file. There is already quite a lot included. There are also some mingw libs readily available. You have used "gpu" libs which are under ...\opencv\build\gpu . However, there are mingw libs ...\opencv\build\x86\mingw and ...\opencv\build\x64\mingw .
Probably the ones ...\opencv\build\x86\mingw are more suitable assuming that you are using mingw 32bit.However, check out the documentation supplied in this superpack.
There are also other posts here with an "opencv tag ":http://developer.qt.nokia.com/search/tag/opencv
-
[quote author="koahnig" date="1318413525"]Well, did you read the messages?
It clearly sais that there is a problem with your cmake setup. It cannot find the mingw compiler. That is your entry ticket.
I do not know anything about CMake. So, are at your place some colleaques to help you? [/quote]No I'm alone
-
I tried to use this libs:
@INCLUDEPATH += C:\opencv\includeLIBS += C:\opencv\build\x86\mingw\lib\libopencv_calib3d231.dll.a
C:\opencv\build\x86\mingw\lib\libopencv_contrib231.dll.a
C:\opencv\build\x86\mingw\lib\libopencv_core231.dll.a
C:\opencv\build\x86\mingw\lib\libopencv_features2d231.dll.a
C:\opencv\build\x86\mingw\lib\libopencv_flann231.dll.a
C:\opencv\build\x86\mingw\lib\libopencv_gpu231.dll.a
C:\opencv\build\x86\mingw\lib\libopencv_highgui231.dll.a
C:\opencv\build\x86\mingw\lib\libopencv_imgproc231.dll.a
C:\opencv\build\x86\mingw\lib\libopencv_legacy231.dll.a
C:\opencv\build\x86\mingw\lib\libopencv_ml231.dll.a
C:\opencv\build\x86\mingw\lib\libopencv_objdetect231.dll.a
C:\opencv\build\x86\mingw\lib\libopencv_video231.dll.a
@and the qtcreator returns the same error
-
I made another proof, I followed this guide: http://opencv.willowgarage.com/wiki/MinGW step by step. Before step 20 everything was ok, so at the 21st the guide tell how to configure Code::Block, but I don't want to configure it, I want configure QtCreator, someone say how I can do?
-
Problem Solved!! After following the guide, the problem persisted! Luckily I watched an example where the programmer use imread to load an image and not cvLoadImage. Now OpenCv completely working on my QTCreator....Thanks for everyhing!!
-
It is good to know that you could finally solve the problem.
Please mark the subject line with [Solved] .