wxWidgets / wxWidgets

Cross-Platform C++ GUI Library
https://www.wxwidgets.org/
6.15k stars 1.77k forks source link

wxPython-2.5.3.1rc3/CVS build problem with wxGTK-2.5.3 #21397

Closed wxtrac closed 2 years ago

wxtrac commented 20 years ago

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 for wxPyCoreAPI' src/gtk/_core_wrap.cpp:600: error: cannot convertPyObject' to ` wxString()(PyObject)' in initialization src/gtk/_core_wrap.cpp:600: error: invalid conversion from wxString*(*)(PyObject*)' towxString ()(PyObject)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from wxString (*)(PyObject*)' toPyObject()(const wxString&)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from PyObject*(*)(const wxString&)' tobyte()(PyObject)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from `byte()(PyObject) ' to int*(*)(PyObject*)' src/gtk/_core_wrap.cpp:600: error: invalid conversion fromint()(PyObject)' to `long int()(PyObject)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from long int*(*)(PyObject*)' tochar()(PyObject)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from ` char()(PyObject)' to wxPoint*(*)(PyObject*, int*)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from wxPoint()(PyObject, int)' to wxBitmap**(*)(PyObject*)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from wxBitmap()(PyObject)' to wxString*(*)(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 from wxAcceleratorEntry*(*)(PyObject*)' tobool ()(PyObject, wxSize)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from bool (*)(PyObject*, wxSize**)' tobool ()(PyObject, wxPoint)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from `bool ()(PyObject, wxPoint)' to bool (*)(PyObject*, wxRealPoint**)' src/gtk/_core_wrap.cpp:600: error: invalid conversion frombool ()(PyObject, wxRealPoint)' to `bool ()(PyObject, wxRect)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from bool (*)(PyObject*, wxRect**)' tobool ()(PyObject, wxColour)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from `bool ()(PyObject, wxColour)' to bool (*)(PyObject*, wxPoint2DDouble**)' src/gtk/_core_wrap.cpp:600: error: invalid conversion frombool ()(PyObject, wxPoint2D*)' to `bool ()(PyObject, const wxChar, int)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from bool (*)(PyObject*, const wxChar*, int)' tobool ()(PyObject)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from bool (*)(PyObject*) ' tovoid ()(wxPyCallbackHelper&, PyObject, PyObject, int)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from `void ()(wxPyCallbackHelper&, PyObject, PyObject, int)' to bool (*)(const wxPyCallbackHelper&, const char*)' src/gtk/_core_wrap.cpp:600: error: invalid conversion frombool ()(const wxPyCallbackHelper&, const char)' to int (*)(const wxPyCallbackHelper&, PyObject*)' src/gtk/_core_wrap.cpp:600: error: invalid conversion fromint ()(const wxPyCallbackHelper&, PyObject)' to PyObject*(*)(const wxPyCallbackHelper&, PyObject*)' src/gtk/_core_wrap.cpp:600: error: invalid conversion fromPyObject()(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 from PyObject*(*)(wxObject*, bool, bool)' toPyObject()(wxSizer, bool)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from ` PyObject()(wxSizer, bool)' to void (*)(const char*, const char*)' src/gtk/_core_wrap.cpp:600: error: invalid conversion fromvoid ()(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 from wxPyCBInputStream*(*)(PyObject*, bool)' tobool ()(PyObject)' src/gtk/_core_wrap.cpp:600: error: invalid conversion from bool (*)(PyObject*) ' tobool ()()' 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 functionPyObject wxMenu_GetMenuItems(wxMenu)': src/gtk/_core_wrap.cpp:1643: error: wxPy_ConvertList' cannot be used as a function src/gtk/_core_wrap.cpp: In functionPyObject 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 1

The 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.

wxtrac commented 20 years ago

2004-11-09 16:20:14: @RobinD42 commented


What configure options did you use for the wxGTK build?

wxtrac commented 20 years ago

2004-11-10 00:03:23: zlatk0 commented


./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.

wxtrac commented 20 years ago

2004-11-10 03:41:10: @RobinD42 commented


Try it without the --enable-stl

wxtrac commented 20 years ago

2004-11-10 08:57:59: zlatk0 commented


Yup, that did the trick. Both 2.5.3.1rc3 and CVS build fine now. Thanks!