[wxPython] undefined symbol: gdk_draw_bitmap

On my Linux box I installed

  glib 1.2.8
  gtk 1.2.8
  wxGTK 2.1.16
  wxPython 2.1.16

(in the order listed above, all from source).

If I type

  from wxPython.wx import *

on the Python prompt I get the error message

  ImportError: /usr/local/lib/libwx_gtk.so: undefined symbol:
  gdk_draw_bitmap

Any idea what's wrong?

The GTK folks broke binary compatibility with 1.2.8. You'll either have to
rebuild everything yourself or move back a rev or two of gtk and glib (I use
1.2.6).

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com
http://wxpython.org Java give you jitters?
http://wxpros.com Relax with wxPython!

> On my Linux box I installed
>
> glib 1.2.8
> gtk 1.2.8
> wxGTK 2.1.16
> wxPython 2.1.16
>
> (in the order listed above, all from source).

                                ^^^^^^^^^^^^^^^^
I didn't see that comment before. In this case I'm not sure. I read on
wx-devel that it had been fixed, maybe there is a newer version of the wxGTK
sources that has the fix. Try getting
ftp://wesley.informatik.uni-freiburg.de/pub/linux/wxxt/source/wxGTK-2.1.16.t
gz and rebuilding it. If that doesn't help then try asking on
wx-devel@wxwindows.org.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com
http://wxpython.org Java give you jitters?
http://wxpros.com Relax with wxPython!

The GTK folks broke binary compatibility with 1.2.8. You'll either have to
rebuild everything yourself or move back a rev or two of gtk and glib (I use
1.2.6).

Thanks. I will try that.

This answer made me think a little. After previous "trouble" with GTK
(pure GTK, not related to wxWindows/wxPython) I am wondering: is there a
wxPython binding to wxMotif? So far I found only the one to wxGTK.
If this is not done (yet), how hard would it be to tweak the SWIG files?

Juerg

I am wondering: is there a
wxPython binding to wxMotif? So far I found only the one to wxGTK.
If this is not done (yet), how hard would it be to tweak the SWIG files?

wxMotif is not as complete as wxGTK, so there will be a fair amount of
methods and things that need to get ifdef'ed out. Also there are some
tweaks that need to get done to the wxMotif initialization code so wxPython
can call the right bits when the module is loaded.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com
http://wxpython.org Java give you jitters?
http://wxpros.com Relax with wxPython!