compile error in building wxPython

Eric Texier erict at millfilm.co.uk
Wed May 15 13:13:20 EDT 2002


If someone can understand what is going on, it will be great:
I followed the direction all the way by building Pyopengl, wxGTK
(PyOpenGL-2.0.0.44, wxGTK-2.3.1) but now I can compile the first
cpp of the wxPython (wxPython-2.3.2.1) file:

 %gcc --version
2.96

% python setup.py build
Preparing CORE...
Preparing GLCANVAS...
Usage: wx-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version]
                 [--libs] [--cppflags] [--cflags] [--cxxflags]
                 [--cc] [--cxx] [--ld]

wx-config returns configuration information about the installed
version of wxWindows. It may be used to query its version and
installation directories and also retrieve the C and C++ compilers
and linker which were used for its building and the corresponding
flags.
Preparing OGL...
Preparing STC...
Preparing XRC...
Preparing GIZMOS...
Preparing DLLWIDGET...
running build
running build_py
running build_ext
building 'wxc' extension
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DSWIG_GLOBAL
-DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -Isrc
-I/usr/people/erict/bin/include/python2.2 -c src/helpers.cpp -o
build/temp.linux-i686-2.2/src/helpers.o -I/usr/people/erict/bin/include
-I/usr/people/erict/bin/lib/wx/include -D__USE_WXCONFIG__
-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
src/helpers.cpp: In function `PyObject *wxPyMake_wxObject (wxObject *,
bool)':
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 `PyObject *wxPyMake_wxSizer (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 *&)'
src/helpers.cpp: In function `void wxPyEndBlockThreads ()':
src/helpers.cpp:537: warning: unused variable `PyThreadState *tstate'
src/helpers.cpp: In function `PyObject *PyFindClassWithAttr (PyObject
*, PyObject *)':
src/helpers.cpp:679: warning: control reaches end of non-void function
error: command 'gcc' failed with exit status 1





More information about the Python-list mailing list