Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Cannot compile OpenCV 3.0

Hello,

I downloaded OpenCV 3.0 from this website, and after the cmake step, I obtain an an error during the make step, here it is:

Linking CXX shared library ....\bin\libopencv_core300.dll c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot find -lRunTmChk collect2.exe: error: ld returned 1 exit status modules\core\CMakeFiles\opencv_core.dir\build.make:1257: recipe for target 'bin/libopencv_core300.dll' failed mingw32-make[2]: * [bin/libopencv_core300.dll] Error 1 CMakeFiles\Makefile2:1325: recipe for target 'modules/core/CMakeFiles/opencv_core.dir/all' failed mingw32-make[1]: [modules/core/CMakeFiles/opencv_core.dir/all] Error 2 Makefile:136: recipe for target 'all' failed mingw32-make: ** [all] Error 2

I'm under Windows7 64bits, and using mingw32 4.8.1

I have no idea of what is -lRunTmChk, so any help would be greatful...

Also, I have to add that I can compile OpenCV 2.4.9 without any problem.

Any suggestion?

click to hide/show revision 2
retagged

updated 2014-08-23 06:27:49 -0500

berak gravatar image

Cannot compile OpenCV 3.0

Hello,

I downloaded OpenCV 3.0 from this website, and after the cmake step, I obtain an an error during the make step, here it is:

Linking CXX shared library ....\bin\libopencv_core300.dll c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot find -lRunTmChk collect2.exe: error: ld returned 1 exit status modules\core\CMakeFiles\opencv_core.dir\build.make:1257: recipe for target 'bin/libopencv_core300.dll' failed mingw32-make[2]: * [bin/libopencv_core300.dll] Error 1 CMakeFiles\Makefile2:1325: recipe for target 'modules/core/CMakeFiles/opencv_core.dir/all' failed mingw32-make[1]: [modules/core/CMakeFiles/opencv_core.dir/all] Error 2 Makefile:136: recipe for target 'all' failed mingw32-make: ** [all] Error 2

I'm under Windows7 64bits, and using mingw32 4.8.1

I have no idea of what is -lRunTmChk, so any help would be greatful...

Also, I have to add that I can compile OpenCV 2.4.9 without any problem.

Any suggestion?