[wxPython-users] `import wx.media' failed with an `undefined
symbol' error
Robin Dunn
robin at alldunn.com
Tue Jun 6 09:13:48 PDT 2006
Save Chai wrote:
> Hi all,
> It may be an installation problem.
> I compiled wxPython 2.6.3.2.1 for python2.3 from source which was
> fetched via `apt-get source python-wxgtk2.6'. Yes, I'm using Debian
> sid (uptodate). The options to configure are:
> =
> ../configure --prefix=3D/usr \
> --cache-file=3D$(config_cache) \
> --with-flavour=3D$(DEBIAN_WXFLAVOUR) \
> --with-gtk \
> --with-opengl \
> --with-gnomeprint \
> --with-zlib=3Dsys \
> --with-libjpeg=3Dsys \
> --with-libpng=3Dsys \
> --with-libtiff=3Dsys \
> --enable-unicode \
> --enable-mediactrl \
> --enable-display \
> --disable-reserved_virtual
> =
> I added `--enable-mediactrl' and `--enable-display' options besides
> the default setting of Debian package to enable wx.media. After the
> long compiling and installation wait, I tried the following commands,
> but no luck:
>>>> import wx.media
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File =
> "/usr/lib/python2.3/site-packages/wx-2.6-gtk2-unicode/wx/media.py", line
> 8, in ?
> import _media
> ImportError: =
> /usr/lib/python2.3/site-packages/wx-2.6-gtk2-unicode/wx/_media.so:
> undefined symbol: wxEVT_MEDIA_LOADED
The problem is that the wx_gtk2u_media-2.6 lib is not specified when =
linking the _media extension. (This is not a problem with the =
monolithic builds that I usually do since the media classes are included =
in the core library then.) The attached patch should fix it for you.
-- =
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: monolithic.patch
Type: text/x-patch
Size: 4009 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20060=
606/4afd450d/monolithic.bin
More information about the wxpython-users
mailing list