Ask Your Question
1

compile opencv3 alpha

asked Sep 11 '14

Ryein Goddard gravatar image

updated Sep 12 '14

berak gravatar image

I've tried compiling the master branch from github and also the alpha that is downloadable from the OpenCV website. On both I get this error.

C:\opencv\opencv3\opencv\modules\core\src\system.cpp: In function 'BOOL cv::DllMain(HINSTANCE, DWORD, 
LPVOID)':
C:\opencv\opencv3\opencv\modules\core\src\system.cpp:918:13: warning: no previous declaration for 'BOOL cv::DllMain(HINS
TANCE, DWORD, LPVOID)' [-Wmissing-declarations]
 BOOL WINAPI DllMain(HINSTANCE, DWORD fdwReason, LPVOID lpReserved)
             ^
Linking CXX shared library ..\..\bin\libopencv_core300d.dll
C:/Qt/Tools/mingw482_32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lRun
TmChk
collect2.exe: error: ld returned 1 exit status
modules\core\CMakeFiles\opencv_core.dir\build.make:1257: recipe for target 'bin/libopencv_core300d.dll' failed
mingw32-make[2]: *** [bin/libopencv_core300d.dll] Error 1
CMakeFiles\Makefile2:1292: 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 didn't add any extra features other then openCL, building the examples, and adding QT. I am on Windows.

Thanks for your help.

Preview: (hide)

1 answer

Sort by » oldest newest most voted
1

answered Sep 12 '14

berak gravatar image

the error seems to be related to ipp (it calls a msvc runtime lib erroneously)

you could try to sidestep it for now, by disabling IPP:

cmake -DWITH_IPP=OFF

see also the issue here

Preview: (hide)

Comments

Thanks I know. I am the guy that posted the findings there :D I couldn't post it here though because I have to low of a reputation I guess.

Ryein Goddard gravatar imageRyein Goddard (Sep 13 '14)edit

Question Tools

1 follower

Stats

Asked: Sep 11 '14

Seen: 804 times

Last updated: Sep 12 '14