Qt 5.0.2 MinGw opencv2.4.4 integration
I'm trying to integrate opencv to Qt environment.
Here is what I've done so far;
@- Installed Qt 5.0.2 - 32bit (with qt creator 2.7.0 and mingw compiler- not msvc)
- Installed opencv2.4.4 under C:\OpenCv\
- Added C:\OpenCv\build\x86\mingw\lib and C:\OpenCv\build\x86\mingw\bin directories to the ENVIRONMENT VARIABLES.@
and here is my .pro file
INCLUDEPATH += C:\OpenCv\build\include
INCLUDEPATH += "C:\OpenCv\modules\core\include"
BASE_PATH = c:/OpenCv/build/x86/mingw
win32: LIBS += -L$$BASE_PATH/lib/ -lopencv_calib3d244
win32: LIBS += -L$$BASE_PATH/lib/ -lopencv_calib3d244d
When I try to build the project it gaves me following error:
@:-1: error: cannot find -lopencv_calib3d244d@
I've noticed that the files under the \lib\ folder are named like this;
However I couldn't add .a files to the project.
Is there a missing step or anything else that I am not doing correctly?
What sould I do now?
With MinGW compiler you should include libs like this:
- llibopencv_highgui244 - lib at the start.
Are you sure you need all the libs you included? :)