Ask Your Question

Revision history [back]

Error compiling opencv 2.4.11 with mingw

Hi there,

While compiling I get this error:

[ 29%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_w32.cpp.obj F:\Transferencias\opencv\sources\modules\highgui\src\window_w32.cpp:1:0: warning: -fPIC ignored for target (all code is position independent) [enabled by default] /M/////////////////////////////////////////////////////////////////////////////////////// ^ F:\Transferencias\opencv\sources\modules\highgui\src\window_w32.cpp: In function 'int icvCreateTrackbar(const char, const char, int, int, CvTrackbarCallback, CvTrackbarCallback2, void)': F:\Transferencias\opencv\sources\modules\highgui\src\window_w32.cpp:1853:81: error: 'BTNS_AUTOSIZE' was not declared in this scope WS_CHILD | CCS_TOP | TBSTYLE_WRAPABLE | BTNS_AUTOSIZE | BTNS_BUTTON, ^ F:\Transferencias\opencv\sources\modules\highgui\src\window_w32.cpp:1853:97: error: 'BTNS_BUTTON' was not declared in this scope WS_CHILD | CCS_TOP | TBSTYLE_WRAPABLE | BTNS_AUTOSIZE | BTNS_BUTTON, ^ modules\highgui\CMakeFiles\opencv_highgui.dir\build.make:187: recipe for target 'modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_w32.cpp.obj' failed mingw32-make[2]: [modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_w32.cpp.obj] Error 1 CMakeFiles\Makefile2:2230: recipe for target 'modules/highgui/CMakeFiles/opencv_highgui.dir/all' failed mingw32-make[1]: [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2 Makefile:159: recipe for target 'all' failed mingw32-make: ** [all] Error 2

Any sugestions? Thanks, PN

click to hide/show revision 2
No.2 Revision

updated 2015-09-02 07:01:18 -0600

berak gravatar image

Error compiling opencv 2.4.11 with mingw

Hi there,

While compiling I get this error:

[ 29%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_w32.cpp.obj
F:\Transferencias\opencv\sources\modules\highgui\src\window_w32.cpp:1:0: warning: -fPIC ignored for target (all code is position independent) [enabled by default]
/M///////////////////////////////////////////////////////////////////////////////////////
/*M///////////////////////////////////////////////////////////////////////////////////////
 ^
F:\Transferencias\opencv\sources\modules\highgui\src\window_w32.cpp: In function 'int icvCreateTrackbar(const char, char*, const char, int, char*, int*, int, CvTrackbarCallback, CvTrackbarCallback2, void)':
void*)':
F:\Transferencias\opencv\sources\modules\highgui\src\window_w32.cpp:1853:81: error: 'BTNS_AUTOSIZE' was not declared in this scope
WS_CHILD | CCS_TOP | TBSTYLE_WRAPABLE | BTNS_AUTOSIZE | BTNS_BUTTON,
^
F:\Transferencias\opencv\sources\modules\highgui\src\window_w32.cpp:1853:97: error: 'BTNS_BUTTON' was not declared in this scope
WS_CHILD | CCS_TOP | TBSTYLE_WRAPABLE | BTNS_AUTOSIZE | BTNS_BUTTON,
^
modules\highgui\CMakeFiles\opencv_highgui.dir\build.make:187: recipe for target 'modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_w32.cpp.obj' failed
mingw32-make[2]:  *** [modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_w32.cpp.obj] Error 1
CMakeFiles\Makefile2:2230: recipe for target 'modules/highgui/CMakeFiles/opencv_highgui.dir/all' failed
mingw32-make[1]:  *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
Makefile:159: recipe for target 'all' failed
mingw32-make: ** *** [all] Error 2

2

Any sugestions? Thanks, PN