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

by November 23, 2016 0 comments
Happens when try to compile OpenCV for MinGW C++ windows.

Following this post http://code.opencv.org/issues/4087, we must to change in file window_w32.cpp by inserting these in code:

#ifdef __GNUC__
#  pragma GCC diagnostic ignored "-Wmissing-declarations"
#endif
//Insert here
#if (_WIN32_IE < 0x0500)
#pragma message("WARNING: Win32 UI needs to be compiled with _WIN32_IE >= 0x0500 (_WIN32_IE_IE50)")
#define _WIN32_IE 0x0500
#endif
//End inserting

Then run mingw32-make again.

An Nguyen

Developer

Sharing daily exciting lesson learned and posts about .NET, SQL Server, HTML, Javascript - jQuery, CSS - Bootstrap, SalesForce CRM, Kentico CMS and so on.

0 comments :

Post a Comment