Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: murlock on November 01, 2006, 01:36:48 am

Title: CB with Solaris
Post by: murlock on November 01, 2006, 01:36:48 am
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
Title: Re: CB with Solaris
Post by: mandrav on November 01, 2006, 08:31:34 am
Great news, Michael :)
Title: Re: CB with Solaris
Post by: killerbot on November 01, 2006, 09:56:30 am
super cool.

btw :
Quote
I've found the line (yes, one line !!!) that crash CB

Most of our bugs are like that  :twisted: :twisted: :mrgreen:
Title: Re: CB with Solaris
Post by: afb on November 01, 2006, 10:00:00 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
Title: Re: CB with Solaris
Post by: killerbot on November 01, 2006, 10:04:28 am
Is that patch you mention solid enough for the other platforms too ?? If so, I will apply it.
Title: Re: CB with Solaris
Post by: afb on November 01, 2006, 10:36:24 am
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:
Code
/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...
Title: Re: CB with Solaris
Post by: murlock on November 01, 2006, 10:38:34 am
I'll try this patch, thanks
Title: Re: CB with Solaris
Post by: afb on November 01, 2006, 10:46:35 am
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)