[wxPython-users] `import wx.media' failed with an `undefined
symbol' error
Save Chai
chaisave at gmail.com
Wed Jun 7 00:53:59 PDT 2006
On 6/7/06, Robin Dunn <robin at alldunn.com> wrote:
> 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=/usr \
> > --cache-file=$(config_cache) \
> > --with-flavour=$(DEBIAN_WXFLAVOUR) \
> > --with-gtk \
> > --with-opengl \
> > --with-gnomeprint \
> > --with-zlib=sys \
> > --with-libjpeg=sys \
> > --with-libpng=sys \
> > --with-libtiff=sys \
> > --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.
It works!
Thank you very much, Robin!
--
Regards
Kov Chai
More information about the wxpython-users
mailing list