Is anyone know how to use opencv 3.1 in eclipse ide? (windows 64bit) ive searching for days now and still cant figure out how. Ive tried some methods but when I run the "mingw32-make" i always got errors.
Is anyone know how to use opencv 3.1 in eclipse ide? (windows 64bit) ive searching for days now and still cant figure out how. Ive tried this method (http://cookyourpc.blogspot.com/2015/0...) but when I run the "mingw32-make" part i always got errors.
C:\opencv\sources\modules\core\src\parallel.cpp: In function 'int cv::getThreadNum()': C:\opencv\sources\modules\core\src\parallel.cpp:457:45: error: 'pthread_self' was not declared in this scope return (int)(size_t)(void)pthread_self(); // no zero-based indexing ^ modules\core\CMakeFiles\opencv_core.dir\build.make:965: recipe for target 'modules/core/CMakeFiles/opencv_core.dir/src/parallel.cpp.obj' failed mingw32-make[2]: [modules/core/CMakeFiles/opencv_core.dir/src/parallel.cpp.obj] Error 1 CMakeFiles\Makefile2:1468: recipe for target 'modules/core/CMakeFiles/opencv_core.dir/all' failed mingw32-make[1]: [modules/core/CMakeFiles/opencv_core.dir/all] Error 2 Makefile:159: recipe for target 'all' failed mingw32-make: ** [all] Error 2
even i apply this
forget eclipse for a moment. if you're trying to use mingw, job #1 is to build the opencv libs using that.
and we can't help without seeing your errors !
please replace the screenshot with a text version
modules\legacy is not a part of opencv3.1. you must be trying with a previous 2.4.x version
your mingw version is too old , to be useful, too.
try to get mingw64 instead
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