I am running Redhat 6.2 and just completed installing wxGTK-2.2.9. I had to install from
source because all the RPMS available come with glibc-2.2, and I am using 2.1. The installation
went fine and installed wxGTK to the default location which is /usr/local. I ran 'ldconfig' as
instructed. I am using Python 1.5.2.
I then downloaded wxPython 2.3.2.1 and after reading the install instructions decided to download
and install Disutils. This went fine. Then I began my install of wxPython. Here is what I got:
creating build/temp.linux-i686-1.5/src
gcc -g -O2 -fPIC -DSWIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -Isrc -I/usr/include/python1.5 -c src/helpers.cpp -o build/temp.linux-i686-1.5/src/helpers.o -I/usr/local/lib/wx/include/gtk-2.2 -I/usr/local/include -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_REENTRANT -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
src/helpers.cpp: In function `struct PyObject * wxPyMake_wxObject(class wxObject *, bool = 1)':
src/helpers.cpp:318: no matching function for call to `wxEvtHandler::GetClientObject ()'
src/helpers.cpp:339: no matching function for call to `wxEvtHandler::SetClientObject (wxPyClientData *)'
src/helpers.cpp: In function `struct PyObject * wxPyMake_wxSizer(class wxSizer *)':
src/helpers.cpp:362: no matching function for call to `wxSizer::GetClientObject ()'
src/helpers.cpp:371: no matching function for call to `wxSizer::SetClientObject (wxPyClientData *)'
error: command 'gcc' failed with exit status 1
Do I have to set some path that I haven't set. I read something about using LD_LIBRARY_PATH, but I don't
know what to set it to if this is, indeed, the problem. Can anyone help.
Also, after installing wxGTK, I deleted the install directory after running 'make install' and when I subsequently
untarred, unzipped, and tried to install wxDemos I got an error. From what I can tell (see errors below), make is
looking for something in a /src directory which I expect was in wxGTK before I deleted it. Is it possible to
install wxDemos, samples, etc without re-downloading and re-installing wxGTK? Thanks for any help you
can give.
Regards,
Jeff Stephens
# make
make[1]: Entering directory `/home/jeffs/wxDemos-2.2.9/bombs'
Makefile:21: ../../src/makeprog.env: No such file or directory
make[1]: *** No rule to make target `../../src/makeprog.env'. Stop.
make[1]: Leaving directory `/home/jeffs/wxDemos-2.2.9/bombs'
make[1]: Entering directory `/home/jeffs/wxDemos-2.2.9/dbbrowse'
Makefile:23: ../../src/makeprog.env: No such file or directory
make[1]: *** No rule to make target `../../src/makeprog.env'. Stop.
make[1]: Leaving directory `/home/jeffs/wxDemos-2.2.9/dbbrowse'
make[1]: Entering directory `/home/jeffs/wxDemos-2.2.9/forty'
Makefile:21: ../../src/makeprog.env: No such file or directory
make[1]: *** No rule to make target `../../src/makeprog.env'. Stop.
make[1]: Leaving directory `/home/jeffs/wxDemos-2.2.9/forty'
make[1]: Entering directory `/home/jeffs/wxDemos-2.2.9/fractal'
Makefile:21: ../../src/makeprog.env: No such file or directory
make[1]: *** No rule to make target `../../src/makeprog.env'. Stop.
make[1]: Leaving directory `/home/jeffs/wxDemos-2.2.9/fractal'
make[1]: Entering directory `/home/jeffs/wxDemos-2.2.9/life'
Makefile:23: ../../src/makeprog.env: No such file or directory
make[1]: *** No rule to make target `../../src/makeprog.env'. Stop.
make[1]: Leaving directory `/home/jeffs/wxDemos-2.2.9/life'
make[1]: Entering directory `/home/jeffs/wxDemos-2.2.9/poem'
Makefile:23: ../../src/makeprog.env: No such file or directory
make[1]: *** No rule to make target `../../src/makeprog.env'. Stop.
make[1]: Leaving directory `/home/jeffs/wxDemos-2.2.9/poem'
make: *** [all] Error 2
Also, after installing wxGTK, I deleted the install directory after
running 'make install' and when I subsequently
untarred, unzipped, and tried to install wxDemos I got an error. From
what I can tell (see errors below), make is
looking for something in a /src directory which I expect was in wxGTK
before I deleted it. Is it possible to
install wxDemos, samples, etc without re-downloading and re-installing
wxGTK?
I don't know. There used to be different makefiles for building the samples
out of the CVS tree, but I don't know the status any more.
Still have a problem, but compilation proceeded much further than before. I downloaded
wxPython-2.2.7 and ran 'python setup.py build'. Everything was going along fine until I got
the following error:
building 'glcanvasc' extension
creating build/temp.linux-i686-1.5/contrib
creating build/temp.linux-i686-1.5/contrib/glcanvas
creating build/temp.linux-i686-1.5/contrib/glcanvas/gtk
gcc -g -O2 -fPIC -DSWIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -Isrc -I/usr/include/python1.5 -c contrib/glcanvas/gtk/glcanvas.cpp -o build/temp.linux-i686-1.5/contrib/glcanvas/gtk/glcanvas.o -I/usr/local/lib/wx/include/gtk-2.2 -I/usr/local/include -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_REENTRANT -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
contrib/glcanvas/gtk/glcanvas.cpp: In function `struct PyObject * _wrap_new_wxGLContext(struct PyObject *, struct PyObject *, struct PyObject *)':
contrib/glcanvas/gtk/glcanvas.cpp:114: `wxGLContext' undeclared (first use this function)
contrib/glcanvas/gtk/glcanvas.cpp:114: (Each undeclared identifier is reported only once
contrib/glcanvas/gtk/glcanvas.cpp:114: for each function it appears in.)
contrib/glcanvas/gtk/glcanvas.cpp:114: `_result' undeclared (first use this function)
contrib/glcanvas/gtk/glcanvas.cpp:116: `wxGLCanvas' undeclared (first use this function)
contrib/glcanvas/gtk/glcanvas.cpp:116: `_arg1' undeclared (first use this function)
contrib/glcanvas/gtk/glcanvas.cpp:129: confused by earlier errors, bailing out
error: command 'gcc' failed with exit status 1
>
Still have a problem, but compilation proceeded much further than
before. I downloaded
wxPython-2.2.7 and ran 'python setup.py build'. Everything was going
along fine until I got
the following error:
PyObject *)':
contrib/glcanvas/gtk/glcanvas.cpp:114: `wxGLContext' undeclared (first
use this function)
Your wxGTK configure/build didn't find any OpenGL libraries. Set
BUILD_GLCANVAS in setup.py to 0.