How install OpenCV in CodeBlocks?

asked 2015-09-15 04:52:29 -0600

Wei gravatar image

My system is Window 7 64 bit.I want to install in CodeBlocks. However, I try this http://jatb181.blogspot.tw/2014/06/in... ,but I use Cmake to build Opencv3.0 fail. It show not find -lRunTmChk and ||=== Build: all in OpenCV (compiler: GNU GCC Compiler) ===| C:\opencv\sources\modules\core\src\matrix.cpp||In function 'bool cv::ocl_reduce(cv::InputArray, cv::OutputArray, int, int, int, int, int)':| C:\opencv\sources\modules\core\src\matrix.cpp|3536|warning: comparison between signed and unsigned integer expressions [-Wsign-compare]| C:\opencv\sources\modules\core\src\system.cpp||In function 'BOOL cv::DllMain(HINSTANCE, DWORD, LPVOID)':| C:\opencv\sources\modules\core\src\system.cpp|1013|warning: no previous declaration for 'BOOL cv::DllMain(HINSTANCE, DWORD, LPVOID)' [-Wmissing-declarations]| ld.exe||cannot find -lRunTmChk| modules\core\CMakeFiles\opencv_core.dir\build.make|1286|recipe for target 'bin/libopencv_core300.dll' failed| CMakeFiles\Makefile2|1654|recipe for target 'modules/core/CMakeFiles/opencv_core.dir/all' failed| C:\opencvdll\Makefile|148|recipe for target 'all' failed| ||=== Build failed: 4 error(s), 2 warning(s) (5 minute(s), 31 second(s)) ===|

image: image description

edit retag flag offensive close merge delete

Comments

1

the -lRunTmChk problem is probably caused by the IPP checks. try to disable it with cmake -WITH_IPP=OFF.

berak gravatar imageberak ( 2015-09-15 05:29:34 -0600 )edit

Thank. The error is disappeared. But other error: ||=== Build: all in OpenCV (compiler: GNU GCC Compiler) ===| C:\opencv\sources\modules\core\src\system.cpp||In function 'BOOL cv::DllMain(HINSTANCE, DWORD, LPVOID)':| C:\opencv\sources\modules\core\src\system.cpp|1013|warning: no previous declaration for 'BOOL cv::DllMain(HINSTANCE, DWORD, LPVOID)' [-Wmissing-declarations]| C:\opencv\sources\modules\videoio\src\cap_dshow.cpp|122|error: 'struct IEnumPIDMap' has virtual functions and accessible non-virtual destructor [-Werror=non-virtual-dtor]| C:\opencv\sources\modules\videoio\src\cap_dshow.cpp|139|error: 'struct IMPEG2PIDMap' has virtual functions and accessible non-virtual destructor [-Werror=non-virtual-dtor]|

Wei gravatar imageWei ( 2015-09-15 09:21:15 -0600 )edit
1

last error got fixed a week ago, either try patch or do a fresh git pull

https://github.com/Itseez/opencv/comm...

berak gravatar imageberak ( 2015-09-18 00:46:43 -0600 )edit