Problems building wxpython 2.8.9.1 from source on RHEL5 with python 2.4

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

Richard Muller wrote:

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.

What do you get if you run "wx-config --list" ?

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

$ wx-config --list

     Default config is gtk2-ansi-release-2.8

   Default config will be used for output

···

On Nov 10, 2008, at 12:49 PM, Robin Dunn wrote:

Richard Muller wrote:

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.

What do you get if you run "wx-config --list" ?

Richard Muller wrote:

Richard Muller wrote:

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.

What do you get if you run "wx-config --list" ?

$ wx-config --list

    Default config is gtk2-ansi-release-2.8

You either need to configure wx with --enable-unicode and rebuild, or rebuild wxPython with UNICODE=0

···

On Nov 10, 2008, at 12:49 PM, Robin Dunn wrote:

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Much better. However, in the wxpython build I now get...

building '_stc' 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 -
D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -Iinclude -Isrc -I/usr/local//l
ib/wx/include/gtk2-unicode-release-2.8 -I/usr/local//include/wx-2.8 -I/usr/inclu
de/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cair
o -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/usr/include/python2.4 -c cont
rib/stc/gtk/stc_wrap.cpp -o build-gtk2.unicode/temp.linux-i686-2.4/contrib/stc/g
tk/stc_wrap.o -pthread -O3
contrib/stc/gtk/stc_wrap.cpp:2679:24: error: wx/stc/stc.h: No such file or direc
tory

Did I forget something else? wx-config --list now yields:

     Default config is gtk2-unicode-release-2.8

   Default config will be used for output

   Alternate matches:
     gtk2-ansi-release-2.8

···

On Nov 10, 2008, at 12:59 PM, Robin Dunn wrote:

Richard Muller wrote:

On Nov 10, 2008, at 12:49 PM, Robin Dunn wrote:

Richard Muller wrote:

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.

What do you get if you run "wx-config --list" ?

$ wx-config --list

   Default config is gtk2-ansi-release-2.8

You either need to configure wx with --enable-unicode and rebuild, or
rebuild wxPython with UNICODE=0

Richard Muller wrote:

Much better. However, in the wxpython build I now get...

building '_stc' 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 -
D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -Iinclude -Isrc -I/usr/local//l
ib/wx/include/gtk2-unicode-release-2.8 -I/usr/local//include/wx-2.8 -I/usr/inclu
de/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cair
o -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/usr/include/python2.4 -c cont
rib/stc/gtk/stc_wrap.cpp -o build-gtk2.unicode/temp.linux-i686-2.4/contrib/stc/g
tk/stc_wrap.o -pthread -O3
contrib/stc/gtk/stc_wrap.cpp:2679:24: error: wx/stc/stc.h: No such file or direc
tory

Did I forget something else?

wxPython by default requires the stc and gizmos wx contrib libs to be available. You can either turn off using them by setting additional flags on the setup.py command line, or you can build them as part of your wxGTK build. To do so you just need to run make install in the contrib/src/gizmos and contrib/src/stc dirs under your build dir. See step #2 at http://wxpython.org/builddoc.php

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Thanks, Robin. Everything worked fine.

Rick

···

On Nov 10, 2008, at 3:41 PM, Robin Dunn wrote:

Richard Muller wrote:

Much better. However, in the wxpython build I now get...

building '_stc' 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 -
D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -Iinclude -Isrc
-I/usr/local//l
ib/wx/include/gtk2-unicode-release-2.8 -I/usr/local//include/wx-2.8
-I/usr/inclu
de/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/cair
o -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/usr/include/python2.4
-c cont
rib/stc/gtk/stc_wrap.cpp -o
build-gtk2.unicode/temp.linux-i686-2.4/contrib/stc/g
tk/stc_wrap.o -pthread -O3
contrib/stc/gtk/stc_wrap.cpp:2679:24: error: wx/stc/stc.h: No such file
or direc
tory

Did I forget something else?

wxPython by default requires the stc and gizmos wx contrib libs to be
available. You can either turn off using them by setting additional
flags on the setup.py command line, or you can build them as part of
your wxGTK build. To do so you just need to run make install in the
contrib/src/gizmos and contrib/src/stc dirs under your build dir. See
step #2 at http://wxpython.org/builddoc.php

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

Rick Muller
rmuller@sandia.gov