Compile opencv on Windows XP

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.