Friday, 24 July 2009

Building OpenCV using CMake and MSVC90 Express Edition

The Express Edition of the Microsoft Visual C++ Studios do not support OpenMP. But by default this option is enabled, if you use CMake to generate the solution and project files for OpenCV for the Visual Studio.

If you create the solution and projects, the debug version will compile without any errors. But the release version won't.
If you run CMake and load the CMakeLists.txt file there is an option called ENABLE_OPENMP. Disabling this option does not suffer the problem. You also have to remove the value /openmp from the entry OPENCV_EXTRA_C_FLAGS_RELEASE.
Now you may generate the solution and projects for the MSCV90 Express Edition and the release version will compile without any errors.

No comments:

Post a Comment