Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
svn r8764 breaks linux-build
Jenna:
The changes to wxLED in svn r8764 break the build on linux.
The cause is, that the system headers of wxWidgets are included before our own.
This happens because wx-config is called in Compiler options and zthe search-directories are added later.
The changes in ledctrl.cpp are not compatible with the enum in the system-ledctrl.h, where wxLED_ALIGN_CENTER and wxLED_ALIGN_MASK still have the same value (0x04).
This can be avoided by manually adding the search dir to the targets compiler options and prepending them, so our includes are searched before the system-includes.
But apart from this, we can (pbviously) always run into trouble, if we have our own versions of controls, that are now part of wxWidgets.
Was the update really needed, or woukld it be better to use the wxWidgets version of wxLED ?
Should we rename "our" version ?
What's the best way to handle this for now (and for the future) ?
MortenMacFly:
--- Quote from: jens on January 07, 2013, 07:05:00 pm ---What's the best way to handle this for now (and for the future) ?
--- End quote ---
I wasn't aware that there is a WX version... where? Is it wx 2.9.x?
MortenMacFly:
--- Quote from: MortenMacFly on January 07, 2013, 07:49:11 pm ---I wasn't aware that there is a WX version... where? Is it wx 2.9.x?
--- End quote ---
Aaaaaaaaaah! No I got it. Its still one of these f**** contrib includes I guess. These have to be removed (I did that for the wx29 projects already). None of our plugins uses contrib stuff and in wx2.9.x there is no contrib anymore. That would be the solution.
MortenMacFly:
....mmmmh. On seconds thoughts... How to do when you use wx-config? I suppose the include originate from this script, right? Is there a switch to suppress this particular include? ???
Jenna:
In wx-2.8.12 source-tree it is in contrib/include/wx/, but in the installed wxwidgets (at least on fedora) it is in /usr/include/wx-2.8/wx/.
So no way to exclude it.
Navigation
[0] Message Index
[#] Next page
Go to full version