Ask Your Question
1

highgui window_w32.cpp error: 'TBBUTTONINFO' was not declared in this scope

asked 2014-12-26 18:26:16 -0600

I use OpenCV3-beta in Eclipse under Win8.1 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:

\git\opencv\modules\highgui\src\window_w32.cpp:2011:9: error: 'TBBUTTONINFO' was not declared in this scope

It is not the only error, there are some another errors which is similar to mentioned above:

\git\opencv\modules\highgui\src\window_w32.cpp:2023:81: error: 'BTNS_AUTOSIZE' was not declared in this scope

\git\opencv\modules\highgui\src\window_w32.cpp:2023:97: error: 'BTNS_BUTTON' was not declared in this scope

edit retag flag offensive close merge delete

Comments

hi Vit, could you check, if it's related to this recent commit ? (see, #3448, too!)
if so, you probably want to make an issue here

berak gravatar imageberak ( 2014-12-27 03:20:10 -0600 )edit
1

Hi, thanks for prompt answer. I suppose it is related to 3448: after my checkout to 4 weeks old version (3fa0278, no TBBUTTONINFO) mingw32-make does not fail. Also 2.4 branch compiles ok, but there are a bit different last changes at "window_w32.cpp" than at 3.0 version of this file (2.4 has no TBBUTTONINFO too). Issue reported: http://code.opencv.org/issues/4087

Vit gravatar imageVit ( 2014-12-27 10:14:53 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2014-12-30 14:18:45 -0600

The problem (according to Artur Wieczorek) is OS version set by MinGW by default. To cure it find "commctrl.h" in MinGW directory and something like

#if 0
#define _WIN32_IE   0x0300
#endif

then change it to

#if 1
#define _WIN32_IE   0x0500
#endif
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-12-26 18:24:06 -0600

Seen: 3,241 times

Last updated: Dec 30 '14