Closed wxtrac closed 2 years ago
What configure options did you use for the wxGTK build?
./configure --prefix=/usr/local --enable-shared --enable-static --with-gtk --enable-gtk2 --with-opengl --enable-soname --enable-wave --enable-fraction --enable-wxprintfv --enable-std_iostreams --enable-xresources --enable-controls --enable-tabdialog --enable-iff --enable-calendar --with-sdl --enable-stl --with-libmspack=no
Note that this is the "original" wxGTK from wxwindows.org, not the one that comes bundled with wxPythonSrc.
Try it without the --enable-stl
Yup, that did the trick. Both 2.5.3.1rc3 and CVS build fine now. Thanks!
Issue migrated from trac ticket # 2032
component: wxPython | priority: normal
2004-11-09 09:32:13: zlatk0 created the issue
System info: Slackware-10.0, gcc-3.3.4, python-2.3.4, wxGTK-2.5.3 (self-compiled, installed in /usr/local). I'm trying to build wxPython-2.5.3.1rc3 from http://starship.python.net/crew/robind/wxPython/preview/2.5.3.1rc3/, and compilation fails as follows:
zlatko@disclosure:~/usrlocal/src/wxPython-src-2.5.3.1rc3/wxPython$ python setup.py build Found wx-config: /usr/local/bin/wx-config Using flags: --toolkit=gtk2 --unicode=no --version=2.5 Preparing CORE... Preparing GLCANVAS... Preparing OGL... Preparing STC... Preparing GIZMOS... running build running build_py [...] running build_ext building 'core' extension creating build-gtk2/temp.linux-i686-2.3 creating build-gtk2/temp.linux-i686-2.3/src creating build-gtk2/temp.linux-i686-2.3/src/gtk gcc -pthread -fno-strict-aliasing -DNDEBUG -O3 -march=i486 -mcpu=i686 -fPIC -DSWIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG -DGTK_NO_CHECK_CASTS -DWXGTK -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -Iinclude -Isrc -I/usr/local/lib/wx/include/gtk2-ansi-release-2.5 -I/usr/local/include/wx-2.5 -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/local/include/atk-1.0 -I/usr/local/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/include/python2.3 -c src/libpy.c -o build-gtk2/temp.linux-i686-2.3/src/libpy.o -O3 gcc -pthread -fno-strict-aliasing -DNDEBUG -O3 -march=i486 -mcpu=i686 -fPIC -DSWIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG -DGTK_NO_CHECK_CASTS -DWXGTK -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -Iinclude -Isrc -I/usr/local/lib/wx/include/gtk2-ansi-release-2.5 -I/usr/local/include/wx-2.5 -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/local/include/atk-1.0 -I/usr/local/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/include/python2.3 -c src/gtk/_core_wrap.cpp -o build-gtk2/temp.linux-i686-2.3/src/gtk/_core_wrap.o -O3 In file included from src/gtk/_core_wrap.cpp:400: include/wx/wxPython/wxPython_int.h:114: error:
wxListBase' was not declared in this scope include/wx/wxPython/wxPython_int.h:114: error:
list' was not declared in this scope include/wx/wxPython/wxPython_int.h:385: error:wxListBase' was not declared in this scope include/wx/wxPython/wxPython_int.h:385: error:
list' was not declared in this scope include/wx/wxPython/wxPython_int.h:385: error: variable declaration is not allowed here src/gtk/_core_wrap.cpp:600: error: too many initializers forwxPyCoreAPI' src/gtk/_core_wrap.cpp:600: error: cannot convert
PyObject' to ` wxString()(PyObject)' in initialization src/gtk/_core_wrap.cpp:600: error: invalid conversion fromwxString*(*)(PyObject*)' to
wxString ()(PyObject)' src/gtk/_core_wrap.cpp:600: error: invalid conversion fromwxString (*)(PyObject*)' to
PyObject()(const wxString&)' src/gtk/_core_wrap.cpp:600: error: invalid conversion fromPyObject*(*)(const wxString&)' to
byte()(PyObject)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from `byte()(PyObject) ' toint*(*)(PyObject*)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from
int()(PyObject)' to `long int()(PyObject)' src/gtk/_core_wrap.cpp:600: error: invalid conversion fromlong int*(*)(PyObject*)' to
char()(PyObject)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from ` char()(PyObject)' towxPoint*(*)(PyObject*, int*)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from
wxPoint()(PyObject, int)' towxBitmap**(*)(PyObject*)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from
wxBitmap()(PyObject)' towxString*(*)(PyObject*)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from
wxString()(PyObject)' to `wxAcceleratorEntry()(PyObject)' src/gtk/_core_wrap.cpp:600: error: invalid conversion fromwxAcceleratorEntry*(*)(PyObject*)' to
bool ()(PyObject, wxSize)' src/gtk/_core_wrap.cpp:600: error: invalid conversion frombool (*)(PyObject*, wxSize**)' to
bool ()(PyObject, wxPoint)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from `bool ()(PyObject, wxPoint)' tobool (*)(PyObject*, wxRealPoint**)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from
bool ()(PyObject, wxRealPoint)' to `bool ()(PyObject, wxRect)' src/gtk/_core_wrap.cpp:600: error: invalid conversion frombool (*)(PyObject*, wxRect**)' to
bool ()(PyObject, wxColour)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from `bool ()(PyObject, wxColour)' tobool (*)(PyObject*, wxPoint2DDouble**)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from
bool ()(PyObject, wxPoint2D*)' to `bool ()(PyObject, const wxChar, int)' src/gtk/_core_wrap.cpp:600: error: invalid conversion frombool (*)(PyObject*, const wxChar*, int)' to
bool ()(PyObject)' src/gtk/_core_wrap.cpp:600: error: invalid conversion frombool (*)(PyObject*) ' to
void ()(wxPyCallbackHelper&, PyObject, PyObject, int)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from `void ()(wxPyCallbackHelper&, PyObject, PyObject, int)' tobool (*)(const wxPyCallbackHelper&, const char*)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from
bool ()(const wxPyCallbackHelper&, const char)' toint (*)(const wxPyCallbackHelper&, PyObject*)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from
int ()(const wxPyCallbackHelper&, PyObject)' toPyObject*(*)(const wxPyCallbackHelper&, PyObject*)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from
PyObject()(const wxPyCallbackHelper&, PyObject)' to `void ()(wxPyCallbackHelper)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from `void ()(wxPyCallbackHelper)' to `PyObject()(wxObject, bool, bool)' src/gtk/_core_wrap.cpp:600: error: invalid conversion fromPyObject*(*)(wxObject*, bool, bool)' to
PyObject()(wxSizer, bool)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from ` PyObject()(wxSizer, bool)' tovoid (*)(const char*, const char*)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from
void ()(const char, const char)' to `bool ()(PyObject, int, int)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from `bool ()(PyObject, int, int)' to `bool ()(PyObject, int, int, int, int)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from `bool ()(PyObject, int, int, int, int)' to `PyObject()(const wxArrayString&)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from `PyObject()(const wxArrayString&)' to `PyObject()(const wxArrayInt&)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from `PyObject()(const wxArrayInt&)' to `void ()(wxPyClientData)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from `void ()(wxPyClientData)' to `void ()(wxPyUserData)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from `void ()(wxPyUserData)' to `void ()(wxPyOORClientData)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from `void ()(wxPyOORClientData)' to `wxPyCBInputStream()(PyObject, bool)' src/gtk/_core_wrap.cpp:600: error: invalid conversion fromwxPyCBInputStream*(*)(PyObject*, bool)' to
bool ()(PyObject)' src/gtk/_core_wrap.cpp:600: error: invalid conversion frombool (*)(PyObject*) ' to
bool ()()' src/gtk/_core_wrap.cpp: In function `PyObject wxWindow_GetChildren(wxWindow) ': src/gtk/_core_wrap.cpp:1571: error:wxPy_ConvertList' cannot be used as a function src/gtk/_core_wrap.cpp: In function
PyObject wxMenu_GetMenuItems(wxMenu)': src/gtk/_core_wrap.cpp:1643: error:wxPy_ConvertList' cannot be used as a function src/gtk/_core_wrap.cpp: In function
PyObject wxSizer_GetChildren(wxSizer*)': src/gtk/_core_wrap.cpp:1944: error: `wxPy_ConvertList' cannot be used as a function error: command 'gcc' failed with exit status 1The CVS version (2004/11/09, 09:20 CET) has the same problem. I didn't edit config.py and setup.py, neither in 2.5.3.1rc3 nor in the CVS version. wxPython-2.4.x always used to build fine against wxGTK-2.4.x using the same procedure.