Rick Knight wrote:
Robin Dunn wrote:
Rick Knight wrote:
Help. I'm trying to build wxPython on Slackware-9.0. I've downloaded versions 2.5.3.1, 2.5.1.5 and 2.4.2.4. Everything goes fine until I try to build wxPython with "python setup.py install" or "python setup.py build_ext --inplace --debug". Every time I get an error and the build aborts. I've attached a log of the build in bz2 format. Can anyone tell me what to do to get this to build?
My guess is that the wxPython build is trying to use an older version of wxWidgets.
What configure flags did you use when building wxWidgets?
What is the output of the following commands:
which wx-config
wx-config --version
wx-config --list
wx-config --cxxflags
wx-config --libsThanks Robin for yor reply,
I'm trying to build the wxPython that's included with wx-widgets in wxPython-2.5.3.1. (I've also tried 2.5.1.5 and 2.4.2.4 with similar results) The configure flags I'm using are "--prefix=/opt/wx --with-gtk --with-opengl --disable-monolithic".
Output of which wx-config is
/usr/local/bin/wx-config
This is the problem. You have an older version of wxWidgets installed
in /usr/local and it is being used instead of the one in /opt/wx which
is what you specified in your configure step.
You can either add /opt/wx/bin to your PATH such that it is found before
/usr/local/bin, or you can tell setup.py to use the correct version by
adding "WX_CONFIG=/opt/wx/bin/wx-config" to the command line.
There is also another option: unless you need to have the other version
of wxWidgets for some reason just reconfigure wxWidgets to use a
/usr/local prefix and bebuild and reinstall it and overwrite the one you
have in /usr/local.
ยทยทยท
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!