Im trying for days now on building opencv 3.1.0. I followed this method( http://cookyourpc.blogspot.com/2015/08/setting-up-opencv-on-windows-with.html) Everything works fine until in buidling the opencv libraries (Cmake part) everytime i run "mingw32-make" i always encounter this error:
Used Versions:
1. OS:Windows 10 64 bit
2. OpenCV: OpenCV 3.1.0
3. MingW: mingw64 (used mingw32 6.2.0)
4. Cmake: cmake 3.6.2 -win32- x86
Linking CXX executable ..\..\bin\opencv_perf_core.exe
../../lib/libopencv_ts310.a(ts.cpp.obj):ts.cpp:(.text$_ZN6cvtest2TS4initERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x119): undefined reference to `cv::redirectError(int (*)(int, char const*, char const*, char const*, int, void*), void*, void**)'
collect2.exe: error: ld returned 1 exit status
modules\core\CMakeFiles\opencv_perf_core.dir\build.make:858: recipe for target 'bin/opencv_perf_core.exe' failed
mingw32-make[2]: *** [bin/opencv_perf_core.exe] Error 1
CMakeFiles\Makefile2:1543: recipe for target 'modules/core/CMakeFiles/opencv_perf_core.dir/all' failed
mingw32-make[1]: *** [modules/core/CMakeFiles/opencv_perf_core.dir/all] Error 2
Makefile:159: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
↧