wxWindows link error

Jp Calderone kuran42 at yahoo.com
Wed Nov 7 05:59:52 CET 2001


   Well after a few hours of looking around and rebuilding a few
times, this bug appears to have been due to wxPython's setup.py
script (directly? indirectly?  I have *no* clue how python's
distutil system works) using gcc instead of g++.  I fixed by
symlinking /usr/bin/g++ to ./gcc in the base directory and including
. in my path before anything else.  Clearly this is not the right
way to fix this.  Can anyone tell me what is (or point me to some
docs on distutils)?

Jp Calderone wrote:

> Just finished building wxPython 2.3.1 using GCC 3.0 and wxGTK 2.3.1.
> But to my dismay, I get the following:
> 
> ~$ python
> Python 2.1 (#6, Sep 25 2001, 04:43:19)
> [GCC 3.0] on linux2
> Type "copyright", "credits" or "license" for more information.
>  >>> import wxWindows
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> ImportError: No module named wxWindows
>  >>> import wxPython
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>   File "/usr/local/lib/python2.1/site-packages/wxPython/__init__.py", 
> line 20, in ?
>     import wxc
> ImportError: /usr/local/lib/libwx_gtk.so: undefined symbol: 
> __gxx_personality_v0
>  >>>
> 
> 
> Googling yields many results, none seem python related, most point to 
> gcc 3.0 as the cause.  Do I need a different version of GCC to use 
> wxPython (in other words, do I need to get a different windowing 
> library) or can someone show me how to fix this?
> 
>   Thanks in advance,
>    Jp Calderone
> 




More information about the Python-list mailing list