[wxPython] Build Problem

I've been attemting to build from CVS and would like advice about how to go about identifying the problem I'm having. I'm not looking for the fish, but knowlege of "how to fish".

I have the Mesa Open GL libraries built and installed
and build wxWindows and wxPython using the following script:

cd wxWindows # or whatever your top-level directory is called
#mkdir build
cd build
rm *.cache
../configure --with-gtk --with-opengl --prefix /usr/lib
make
make install
/sbin/ldconfig
cd ../wxPython
python setup.py build
python setup.py install

This is failing with

gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DSWIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -Isrc -I/usr/include/python2.2 -c src/gtk/wx.cpp -o build/temp.linux-ppc-2.2/src/gtk/wx.o -I/usr/local/lib/wx/include/gtk-2.3 -I/usr/local/include -DGTK_NO_CHECK_CASTS -D__WXGTK__ -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -UNDEBUG
src/gtk/wx.cpp: In function `struct PyObject * ptrset(PyObject *, PyObject *, int, char *)':
src/gtk/wx.cpp:375: warning: unused variable `struct PyObject * obj'
src/gtk/wx.cpp: In function `struct PyObject * ptradd(PyObject *, int)':
src/gtk/wx.cpp:461: warning: `struct PyObject * obj' might be used uninitialized in this function
src/gtk/wx.cpp: In function `void initwxc(...)':
src/gtk/wx.cpp:2124: `wxTIMER_CONTINUOUS' undeclared (first use this function)
src/gtk/wx.cpp:2124: (Each undeclared identifier is reported only once
src/gtk/wx.cpp:2124: for each function it appears in.)
src/gtk/wx.cpp:2125: `wxTIMER_ONE_SHOT' undeclared (first use this function)
src/gtk/wx.cpp: At top level:
src/gtk/wx.cpp:61: warning: `struct PyObject * t_output_helper(PyObject *, PyObject *)' defined but not used
error: command 'gcc' failed with exit status 1

I've been attemting to build from CVS and would like advice
about how to go about identifying the problem I'm having.
I'm not looking for the fish, but knowlege of "how to fish".

I have the Mesa Open GL libraries built and installed
and build wxWindows and wxPython using the following script:

cd wxWindows # or whatever your top-level directory is called
#mkdir build
cd build
rm *.cache
../configure --with-gtk --with-opengl --prefix /usr/lib

                                          ^^^^^^^^^^^^^^^
You probably want just /usr here, otherwise you'll get bin, lib, include,
and etc. dirs under /usr/lib

make
make install
/sbin/ldconfig
cd ../wxPython
python setup.py build
python setup.py install

This is failing with

gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DSWIG_GLOBAL
-DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -Isrc -I/usr/include/python2.2
-c src/gtk/wx.cpp -o build/temp.linux-ppc-2.2/src/gtk/wx.o -
I/usr/local/lib/wx/include/gtk-2.3 -I/usr/local/include

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Looks like you've got an older version of wxGTK installed to /usr/local, and
that is the wx-config that setup.py is finding.

···

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

So the bottom line here is when I have a build problem like this it might be a configuration mess. Examine:

1. Where stuff needed to build really is
2. Where the build actually gets the things it uses when building
3. How many different versions of stuff you have laying about

Thanks Robin.

-Pat

···

On Tue, 11 Jun 2002 20:56:40 -0700 "Robin Dunn" <robin@alldunn.com> wrote:

> I've been attemting to build from CVS and would like advice
> about how to go about identifying the problem I'm having.
> I'm not looking for the fish, but knowlege of "how to fish".
>
> I have the Mesa Open GL libraries built and installed
> and build wxWindows and wxPython using the following script:
>
> cd wxWindows # or whatever your top-level directory is called
> #mkdir build
> cd build
> rm *.cache
> ../configure --with-gtk --with-opengl --prefix /usr/lib
                                          ^^^^^^^^^^^^^^^
You probably want just /usr here, otherwise you'll get bin, lib, include,
and etc. dirs under /usr/lib

> make
> make install
> /sbin/ldconfig
> cd ../wxPython
> python setup.py build
> python setup.py install

>
> This is failing with
>
> gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DSWIG_GLOBAL
> -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -Isrc -I/usr/include/python2.2
> -c src/gtk/wx.cpp -o build/temp.linux-ppc-2.2/src/gtk/wx.o -
> I/usr/local/lib/wx/include/gtk-2.3 -I/usr/local/include
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Looks like you've got an older version of wxGTK installed to /usr/local, and
that is the wx-config that setup.py is finding.

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