Problem building Opencv3.0 with IPP and TBB using mingwx64(4.8.1)

asked 2015-09-24 09:44:08 -0600

updated 2015-09-25 10:36:57 -0600


I got following error while building opencv3.0 with IPP(Inbuilt) and TBB(Open-source) using mingw x64 r2 sjlj 4.8.1 compiler in windows. image description

If anybody have any solution or fix for this error then let me know. Any help would be appreciated.


Tushar Kachhadiya

edit retag flag offensive close merge delete



can you try to give us a text version of your error instead of the unreadable screenshot ?

berak gravatar imageberak ( 2015-09-24 09:47:36 -0600 )edit

Ok See this is the error which I got while compiling opencv 3.0 with IPP and TBB.

Tushar Kachhadiya gravatar imageTushar Kachhadiya ( 2015-09-24 10:57:18 -0600 )edit

Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/umatrix.cpp.obj [ 32%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/opencl_kernels_core.cpp.obj Linking CXX shared library ....\bin\libopencv_core300.dll c:/mingw/bin/../lib/gcc/mingw64/4.8.1/../../../../mingw64/bin/ld.exe: cannot find -lRunTmChk collect2.exe: error: ld returned 1 exit status modules\core\CMakeFiles\opencv_core.dir\build.make:1260: recipe for target 'bin/libopencv_core300.dll' failed mingw32-make[2]: * [bin/libopencv_core300.dll] Error 1 CMakeFiles\Makefile2:1334: recipe for target 'modules/core/CMakeFiles/opencv_core.dir/all' failed mingw32-make[1]: * [modules/core/CMakeFiles/opencv_core.dir/all] Error 2

Tushar Kachhadiya gravatar imageTushar Kachhadiya ( 2015-09-24 11:01:09 -0600 )edit

(i'm not sure about x64, but definitely for x32:)

IPP does not work for mingw compiler, you have to disable it:


there is this RunTmChk library, needed for a test, which is only available for VS.

berak gravatar imageberak ( 2015-09-25 10:38:38 -0600 )edit

Hi Berak,

Thanks for the information. We tried this option and it was build successfully but we need IPP support to increase face detection and video speed. Is there any method to improve video speed as well as synchronize source code of OpenCV.


Tushar Kachhadiya gravatar imageTushar Kachhadiya ( 2015-09-28 04:56:14 -0600 )edit

"but we need IPP support" - i guess, you'll have to ditch mingw then.

berak gravatar imageberak ( 2015-09-28 05:28:25 -0600 )edit

No, We can't do that because we have a application in mingw. We need to find another way to fix it.

Tushar Kachhadiya gravatar imageTushar Kachhadiya ( 2015-09-28 07:20:17 -0600 )edit