Author Topic: CB with Solaris  (Read 4636 times)

murlock

  • Guest
CB with Solaris
« 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

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: CB with Solaris
« Reply #1 on: November 01, 2006, 08:31:34 am »
Great news, Michael :)
Be patient!
This bug will be fixed soon...

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5494
Re: CB with Solaris
« Reply #2 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:

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: CB with Solaris
« Reply #3 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

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5494
Re: CB with Solaris
« Reply #4 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.

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: CB with Solaris
« Reply #5 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...

murlock

  • Guest
Re: CB with Solaris
« Reply #6 on: November 01, 2006, 10:38:34 am »
I'll try this patch, thanks

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: CB with Solaris
« Reply #7 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)