Ask Your Question

Atabak's profile - activity

2015-05-23 00:38:17 -0600 asked a question OpenCV 2.4.11 build errors

I am struggling with building openCV on Windows using MVS 2013 X64 following this tutorial:

http://docs.opencv.org/doc/tutorials/...

After using CMAKE and pressing generate button I get a few of these warnings:

CMake Warning (dev) at apps/haartraining/CMakeLists.txt:37 (add_library): Policy CMP0038 is not set: Targets may not link directly to themselves. Run "cmake --help-policy CMP0038" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

But then when I open the solution file in build directory and try to build the solution, I get a whole bunch of errors starting with:

Error 1 error MSB6006: "cmd.exe" exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets 170 5 opencv_core

And then multiple linking errors like:

Error 2 error LNK1104: cannot open file '....\lib\Debug\opencv_core2411d.lib' E:\opencv-2.4.11\build\modules\ml\LINK opencv_ml . . . I previously had tried to build openCV3.0rc version and it was fine without problems. But this time, 2.4.11 is not cooperating.