I just upgraded my linux box to RHEL5, and am now trying to install wxpython from source, since there do not appear to be appropriate binaries.
1. I downloaded a new copy of the latest version of wxpython.
2. I created a build directory, and ran the configure/build/install steps
3. I then cd-ed to the wxpython subdirectory. I think something is not getting passed from wx-configure into setup.py properly. I'm running the script:
export WXDIR=/home/rmuller/Python/wxPython-src-2.8.9.1
cd $WXDIR/wxPython
export WX_CONFIG=/usr/local/bin/wx-config
export WXWIN=/home/rmuller/Python/wxPython-src-2.8.9.1
python setup.py build
I'm getting the following errors on building:
Warning: No config found to match: /usr/local/bin/wx-config --toolkit=gtk2 --u
nicode=yes --version=2.8 --cxxflags
in /usr/local/lib/wx/config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config --list to see all configs available in
the default prefix.
Warning: No config found to match: /usr/local/bin/wx-config --toolkit=gtk2 --u
nicode=yes --version=2.8 --libs
in /usr/local/lib/wx/config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config --list to see all configs available in
the default prefix.
Warning: No config found to match: /usr/local/bin/wx-config --toolkit=gtk2 --u
nicode=yes --version=2.8 --basename
in /usr/local/lib/wx/config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config --list to see all configs available in
the default prefix.
Warning: No config found to match: /usr/local/bin/wx-config --toolkit=gtk2 --u
nicode=yes --version=2.8 --release
in /usr/local/lib/wx/config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config --list to see all configs available in
the default prefix.
Warning: No config found to match: /usr/local/bin/wx-config --toolkit=gtk2 --u
nicode=yes --version=2.8 --prefix
in /usr/local/lib/wx/config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config --list to see all configs available in
the default prefix.
Warning: No config found to match: /usr/local/bin/wx-config --toolkit=gtk2 --u
nicode=yes --version=2.8 --libs
in /usr/local/lib/wx/config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config --list to see all configs available in
the default prefix.
Warning: No config found to match: /usr/local/bin/wx-config --toolkit=gtk2 --u
nicode=yes --version=2.8 --libs gl
in /usr/local/lib/wx/config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config --list to see all configs available in
the default prefix.
Found wx-config: /usr/local/bin/wx-config
Using flags: --toolkit=gtk2 --unicode=yes --version=2.8
Preparing CORE...
Preparing GLCANVAS...
Preparing STC...
Preparing GIZMOS...
running build
running build_py
copying wx/__version__.py -> build-gtk2.unicode/lib.linux-i686-2.4/wx
copying wx/build/build_options.py -> build-gtk2.unicode/lib.linux-i686-2.4/wx/bu
ild
package init file 'wx/tools/XRCed/plugins/__init__.py' not found (or not a regul
ar file)
package init file 'wx/tools/XRCed/plugins/__init__.py' not found (or not a regul
ar file)
running build_ext
building '_core_' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOU
RCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386
-mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC -DSWIG_TYP
E_TABLE=_wxPython_table -DSWIG_PYTHON_OUTPUT_TUPLE -DWXP_USE_THREAD=1 -UNDEBUG -
Iinclude -Isrc -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/
atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I
/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/us
r/include/python2.4 -c src/helpers.cpp -o build-gtk2.unicode/temp.linux-i686-2.4
/src/helpers.o -O3
In file included from src/helpers.cpp:16:
include/wx/wxPython/wxPython_int.h:19:19: error: wx/wx.h: No such file or direct
ory
include/wx/wxPython/wxPython_int.h:21:25: error: wx/busyinfo.h: No such file or
directory
include/wx/wxPython/wxPython_int.h:22:22: error: wx/caret.h: No such file or dir
ectory
include/wx/wxPython/wxPython_int.h:23:25: error: wx/choicebk.h: No such file or
(rest of the output deleted)
I tried hacking the setup.py script to explicitly include the location of the include file (it's in /usr/local/include/wx-2.8), but then it can't find setup.h. At this point I figured I'm doing something terribly wrong, and that I need to ask for help. Help!
Thanks in advance...
Rick
Rick Muller
rmuller@sandia.gov