Ask Your Question
-1

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.

asked 2016-09-17 18:26:45 -0600

teddybur13 gravatar image

updated 2016-09-17 19:46:32 -0600

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

image description

edit retag flag offensive close merge delete

Comments

1

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 !

berak gravatar imageberak ( 2016-09-17 18:36:50 -0600 )edit

please replace the screenshot with a text version

berak gravatar imageberak ( 2016-09-17 19:09:31 -0600 )edit
1

modules\legacy is not a part of opencv3.1. you must be trying with a previous 2.4.x version

berak gravatar imageberak ( 2016-09-17 19:10:52 -0600 )edit

your mingw version is too old , to be useful, too.

try to get mingw64 instead

berak gravatar imageberak ( 2016-09-17 19:55:12 -0600 )edit

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

teddybur13 gravatar imageteddybur13 ( 2016-09-17 21:16:21 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-11-04 01:05:27 -0600

smitagh gravatar image

updated 2016-11-04 01:41:55 -0600

berak gravatar image

Hi,

Please go to this link and check the code:

https://github.com/mshabunin/opencv/b...

This is the fix of the parallel.cpp of the OpenCV for Netbeans or eclipse on Windows 64-bit.

I used the MinGW64, CMake and msys to compile the OpenCV by replacing the parallel.cpp with the above mentioned one.

I followed these blogs: 1. http://zdravv.ru/watch/G9IBIEDex18/ho... 2.https://zahidhasan.wordpress.com/2013/02/16/how-to-install-opencv-on-windows-7-64bit-using-mingw-64-and-codeblocks/

You can download code blocks from: http://www.codeblocks.org/downloads/26

I hope this is helpful!

regards.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2016-09-17 18:26:45 -0600

Seen: 618 times

Last updated: Nov 04 '16