Hi everyone
I've managed to run the current SVN of CB under Solaris 10...
I've found the line (yes, one line !!!) that crash CB :
in src/src/wxAUI/manager.cpp, line 748 in bool isMouseDown() :
gdk_window_get_pointer !
I don't know if the problem is this function when called (or initialised) or because bad linking (gcc complains with undefined gdk_window_get_pointer and I've added -lgdk)
I'll try to change that with wxGetMouseState() ( or check in wxWidgets what they use )
I'll post a guideline to compile CB under Solaris 10 after more test
Thanks,
Michael Bonfils
Great news, Michael :)
super cool.
btw :
QuoteI've found the line (yes, one line !!!) that crash CB
Most of our bugs are like that :twisted: :twisted: :mrgreen:
Quote from: murlock on November 01, 2006, 01:36:48 AM
I've found the line (yes, one line !!!) that crash CB :
in src/src/wxAUI/manager.cpp, line 748 in bool isMouseDown() :
gdk_window_get_pointer !
I don't know if the problem is this function when called (or initialised) or because bad linking (gcc complains with undefined gdk_window_get_pointer and I've added -lgdk)
We have the same problem on Mac OS X / Darwin, as it is wxAUI
that is using gdk internals without importing the proper libs... :evil:
Here is the patch that I use in order to build it for wxGTK:
http://www.algonet.se/~afb/wx/codeblocks-wxauigtk.patch
Is that patch you mention solid enough for the other platforms too ?? If so, I will apply it.
I guess the other platforms would have to try it ;-)
http://www.algonet.se/~afb/wx/codeblocks-wxauigtk.patch
But on Mac OS X (wxGTK), without it you instead get a:
/usr/bin/ld: Undefined symbols:
_gdk_window_get_pointer
We also have plugin linking problems on Mac OS X,
as you might have seen from the forums/bug reports.
(i.e. we need to add all the wxWidgets libraries too,
in order to be able to link the Code::Blocks plugins)
http://www.algonet.se/~afb/wx/codeblocks-rev3146_pluginslib.patch
So those patches "work" for Mac OS X, but I would be
very happy to work towards a solution for all platforms...
I'll try this patch, thanks
For extra credit, it would be nice to get the usage of pkg-config autotoolized so that Code::Blocks would avoid calling it when it isn't to be used. It just gives a harmless warning, but it doesn't look "pretty" if you stare at the output :-)
The only showstopper on Mac OS X (and probably MinGW too?) is the part where it was required during the configure, but I already patched that out - as well.
http://www.algonet.se/~afb/wx/codeblocks-rev2970_pkgconfig.patch
I would link to the same patches at BerliOS, but it seems to be grumpy (again)