error: 'pthread_self' wa s not declared in this scope return (int)(size_t)(void*)pthread_self(); // no zero-based indexing

asked 2016-09-23 10:28:20 -0600

I use OpenCV31 in Eclipse under win7 and have to build source from git since there are no minGW libs available for download. It was ok before, but today(just now) I updated all sources and now mingw32-make suddenly fails:

C:\opencv\sources\modules\core\src\parallel.cpp: In function 'int cv::getThreadN um()': C:\opencv\sources\modules\core\src\parallel.cpp:457:45: error: 'pthread_self' wa s 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 'modul es/core/CMakeFiles/opencv_core.dir/src/parallel.cpp.obj' failed mingw32-make[2]: [modules/core/CMakeFiles/opencv_core.dir/src/parallel.cpp.o bj] Error 1 CMakeFiles\Makefile2:1500: recipe for target 'modules/core/CMakeFiles/opencv_cor e.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

edit retag flag offensive close merge delete

Comments

which mingw is it, exactly ?

(unfortunately, there are several, and only mingw64 seems to half-way supported by opencv devs)

berak gravatar imageberak ( 2016-09-23 11:10:59 -0600 )edit

https://sourceforge.net/projects/ming... Download at this address. that is ok?

binghen gravatar imagebinghen ( 2016-09-23 19:52:03 -0600 )edit