Ask Your Question

mat's profile - activity

2013-06-03 21:06:20 -0600 received badge  Teacher (source)
2013-06-02 20:01:26 -0600 commented question OpenCV 2.4.3 MinGW cannot run program

MinGW http://sourceforge.net/projects/mingw/ uses Dwarf-2 version of exceptions handling, while MinGW-w64 http://sourceforge.net/projects/mingw-w64/ uses SJLJ. OpenCV pre-build libraries for Win are compiled with Dwarf-2 exceptions and depends on libstdc++ with Dwarf-2 support.

2013-06-02 18:48:31 -0600 received badge  Supporter (source)
2013-06-02 12:29:52 -0600 received badge  Editor (source)
2013-06-02 12:28:28 -0600 answered a question Opencv precompiled mingw binaries with qt?

Assuming that you have OpenCV installed from Pre-built Libraries (as explained here) and OpenCV enviroment variable set (as explained here) you have to change OPENCV_DIR value to path to "build" subdirectory of directory where opencv was extracted i.e. :

C:\opencv\build

Remove from PATH entry (because it is not longer valid):

%OPENCV_DIR%\bin

and add:

%OPENCV_DIR%;%OPENCV_DIR%/x86/mingw/bin

If you use cmake for creating Qt projects, your project folder should contain file CMakeLists.txt which should contain following entries:

find_package(OpenCV REQUIRED)
target_link_libraries(YourProjectName ${OpenCV_LIBRARIES})