Ask Your Question
1

compile opencv3 alpha

asked 2014-09-10 19:44:05 -0600

Ryein Goddard gravatar image

updated 2014-09-12 03:09:10 -0600

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.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-09-12 03:07:55 -0600

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

edit flag offensive delete link more

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 ( 2014-09-12 23:53:04 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2014-09-10 19:44:05 -0600

Seen: 796 times

Last updated: Sep 12 '14