Ask Your Question

Revision history [back]

compile opencv3 alpha

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 and building the examples.

Thanks for your help.

compile opencv3 alpha

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 and openCL, building the examples.examples, and adding QT.

Thanks for your help.

compile opencv3 alpha

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.QT. I am on Windows.

Thanks for your help.

click to hide/show revision 4
retagged

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

berak gravatar image

compile opencv3 alpha

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.