Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Compiling OpenCV 2.4.5 with VS 2013 RC

Has anyone had any luck compiling openCV with VS 2013 RC? I have tried and get a bunch of "min doesn't belong to namespace std" "max doesn't belong to namespace std" in the IlmImf module, and opencv_features2d doesn't compile with the following error:

opencv\modules\core\include\opencv2/core/core.hpp(4512): fatal error C1075: end of file found before the left brace '{' at '......\modules\features2d\src\features2d_init.cpp(187)' was matched

Since the latest CMake UI doesn't yet support building with 2013 (at least from the UI and I'm a noob), my process was configuring CMake for 2012, and then opening the generated solution with 2013 and upgrading the compiler to vc12.

I was able to get past the min/max errors by adding header includes for <algorithm> in the 'offending' files, but I am stumped by the full error I posted above.

Thanks

click to hide/show revision 2
retagged

updated 2013-09-26 11:43:03 -0600

berak gravatar image

Compiling OpenCV 2.4.5 with VS 2013 RC

Has anyone had any luck compiling openCV with VS 2013 RC? I have tried and get a bunch of "min doesn't belong to namespace std" "max doesn't belong to namespace std" in the IlmImf module, and opencv_features2d doesn't compile with the following error:

opencv\modules\core\include\opencv2/core/core.hpp(4512): fatal error C1075: end of file found before the left brace '{' at '......\modules\features2d\src\features2d_init.cpp(187)' was matched

Since the latest CMake UI doesn't yet support building with 2013 (at least from the UI and I'm a noob), my process was configuring CMake for 2012, and then opening the generated solution with 2013 and upgrading the compiler to vc12.

I was able to get past the min/max errors by adding header includes for <algorithm> in the 'offending' files, but I am stumped by the full error I posted above.

Thanks

click to hide/show revision 3
retagged

updated 2013-09-26 11:43:09 -0600

berak gravatar image

Compiling OpenCV 2.4.5 with VS 2013 RC

Has anyone had any luck compiling openCV with VS 2013 RC? I have tried and get a bunch of "min doesn't belong to namespace std" "max doesn't belong to namespace std" in the IlmImf module, and opencv_features2d doesn't compile with the following error:

opencv\modules\core\include\opencv2/core/core.hpp(4512): fatal error C1075: end of file found before the left brace '{' at '......\modules\features2d\src\features2d_init.cpp(187)' was matched

Since the latest CMake UI doesn't yet support building with 2013 (at least from the UI and I'm a noob), my process was configuring CMake for 2012, and then opening the generated solution with 2013 and upgrading the compiler to vc12.

I was able to get past the min/max errors by adding header includes for <algorithm> in the 'offending' files, but I am stumped by the full error I posted above.

Thanks