I’m using Arch linux and trying to build wxPython 2.8.9.2 from source, because it’s not available at ours repository.
I’m using a PKGBUILD file to automate the process and it’s the same as the 2.8.9.1 build, changing only the version number and checksums. The older version builds correctly.
The error output is the following:
WARNING: WXWIN not set in environment. Assuming ‘…’
Found wx-config: /usr/bin/wx-config
Using flags: --toolkit=gtk2 --unicode=yes --version=2.8
Preparing CORE…
Preparing GLCANVAS…
Preparing STC…
Preparing GIZMOS…
running build
running build_pycopying wx/version.py → build-gtk2.unicode/lib.linux-i686-2.6/wx
copying wx/build/build_options.py → build-gtk2.unicode/lib.linux-i686-2.6/wx/build
package init file ‘wx/tools/XRCed/plugins/init.py’ not found (or not a regular file)package init file ‘wx/tools/XRCed/plugins/init.py’ not found (or not a regular file)
running build_ext
building ‘core’ extension
gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=i686 -mtune=generic -O2 -pipe -fPIC -DSWIG_TYPE_TABLE=wxPython_table -DSWIG_PYTHON_OUTPUT_TUPLE -DWXP_USE_THREAD=1 -UNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK_ -Iinclude -Isrc -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/python2.6 -c src/gtk/_core_wrap.cpp -o build-gtk2.unicode/temp.linux-i686-2.6/src/gtk/_core_wrap.o -pthread -O3cc1plus: warning: command line option “-Wstrict-prototypes” is valid for C/ObjC but not for C++
src/gtk/_core_wrap.cpp: In constructor ‘swig::PyObject_ptr::PyObject_ptr(PyObject*, bool)’:
src/gtk/_core_wrap.cpp:2670: warning: suggest explicit braces to avoid ambiguous ‘else’src/gtk/_core_wrap.cpp: In function ‘bool wxSizer_Remove(wxSizer*, PyObject*)’:
src/gtk/_core_wrap.cpp:4657: warning: ‘virtual bool wxSizer::Remove(wxWindow*)’ is deprecated (declared at /usr/include/wx-2.8/wx/sizer.h:513)src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_GetAccelFromString(PyObject*, PyObject*, PyObject*)’:
src/gtk/_core_wrap.cpp:33822: warning: ‘wxAcceleratorEntry* wxGetAccelFromString(const wxString&)’ is deprecated (declared at /usr/include/wx-2.8/wx/utils.h:571)src/gtk/_core_wrap.cpp:33822: warning: ‘wxAcceleratorEntry* wxGetAccelFromString(const wxString&)’ is deprecated (declared at /usr/include/wx-2.8/wx/utils.h:571)
src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_Window_DragAcceptFiles(PyObject*, PyObject*, PyObject*)’:src/gtk/_core_wrap.cpp:42358: error: ‘class wxWindow’ has no member named ‘DragAcceptFiles’
error: command ‘gcc’ failed with exit status 1
The PKGBUILD file is attached.
Is it a known problem on the 2.8.9.2 version or I’m missing something?
PKGBUILD (812 Bytes)