Ask Your Question

Revision history [back]

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

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