Installation Package has: opencv-2.4.2.exe, cmake-2.8.9-win32-x86.exe, I use mingw is the qtcreator-2.4.1 comes with, the later version of The mingw removed.
Note that c: \ QT \ qtcreator-2.4.1 \ mingw \ bin; C: \ QT \ 4.8.0 \ bin; C: \ Program Files \ cmake 2.8 \ bin should be added to the environment variable.
(1): Check with_qt in the cmake-Gui.
Error: 'class qstring' has no member named' tostdstring'
I cut off-no-STL and re-compiled the QT library. I don't know what the specific meaning of this option is?
(2): C:/opencv/build
Add a variable
Qt_qmake_executable C:/QT/4.8.0/bin/qmake.exe
Click the Configure button on the cmake-Gui. If no problem exists, click Generate to generate the makefile;
Cd c: \ opencv \ build
Mingw32-make.exe
Recompile the example.CodeHttp://blog.csdn.net/zimingjushi/article/details/6713716
(3): .. \ build \ include/opencv2/FLANN/saving. h: 113:
Error: Exception Handling disabled, use-fexceptions to enable
This problem occurs when the exception capture of the compiler is disabled,
G ++-fexceptions main. cpp-O main
Add
Qmake_cxxflags + =-fexceptions
Qmake_cflags + =-fexceptions
Or is this error prompted?
Is it because the-no-exceptions parameter is compiled in QT 4.8.0?
Yes. Re-compile the QT library.
(4): how to compile an example?
Select build_examples
--------------
Halcon
CV-core function library
Cvaux-auxiliary function library
Cxcore-data structure and linear algebra Library
Highgui-Gui function library
ML-machine learning function library