Compile failed: cannot find -lRunTmChk

asked 2015-07-31 09:15:15 -0500

Hello, I'm trying to compile OpenCV. I've followed the directions outlined here:

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

and I'm getting the following error:

Linking CXX shared library ....\bin\libopencv_core300.dll c:/progra~2/codebl~1/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: cannot find -lRunTmChk collect2: ld returned 1 exit status make[2]: * [bin/libopencv_core300.dll] Error 1 make[1]: [modules/core/CMakeFiles/opencv_core.dir/all] Error 2 make: ** [all] Error 2

If anyone can point me in the right direction, I'd be appreciative. And if more information is needed, I will try to provide.

edit retag flag offensive close merge delete

Comments

the short answer is: disable IPP while compiling opencv libs:

cmake -DWITH_IPP=OFF

(unless you do that, a runtime check will be executed, which will try to link against a visual studio lib, and no, that won't work)

sad as it is, the opencv devs are no more willing to support mingw in general, while you might get it to run with a few tweaks, you're essentially on your own here ;(

berak gravatar imageberak ( 2015-08-01 03:30:02 -0500 )edit

I found hilarious that they don't want to support MinGW.

ReiB gravatar imageReiB ( 2015-12-23 09:22:03 -0500 )edit

I agree, it is ridiculous that opencv developers will not support mingw compilers. It is the only real choice windows developer's have for open source compiler. Linux is not an option for many.

rick gravatar imagerick ( 2017-10-22 17:02:37 -0500 )edit