Cannot Install wxPython2.8.10.1

Hello I am attempting to update my wxPython version. Currently I have
wxPython 2.8.8.1 installed. I am following the instructions as they
are itemized in the BUILD/INSTALL instructions. Here are
the .configure and .make files

.configure

../configure --prefix=/usw/ude/Linux/wx/2.8.10.1 \
             --with-gtk \
             --with-gnomeprint \
             --with-opengl \
             --enable-optimize \
             --enable-debug_gdb \
             --enable-geometry \
             --enable-graphics_ctx \
             --enable-sound --with-sdl \
             --enable-mediactrl \
             --enable-display \
             --enable-unicode \
             --enable-debug_flag \
             --with-libjpeg=builtin \
             --with-libpng=builtin \
             --with-libtiff=builtin \
             --with-zlib=builtin \
             --enable-rpath=/usw/ude/Linux/wx/2.8.10.1/lib

.make

make $* \
    && make -C contrib/src/gizmos $* \
    && make -C contrib/src/stc $*

I have no problems with configure, .make and .make install. When I
continue down the instructions and try to implement the python
setup.py build_ext --inplace --debug I get the following error message

WARNING: WXWIN not set in environment. Assuming '..'
Found wx-config: /usw/ude/Linux/wx/2.8.10.1/bin/wx-config
    Using flags: --toolkit=gtk2 --unicode=yes --version=2.8
Preparing CORE...
Preparing GLCANVAS...
Preparing STC...
Preparing GIZMOS...
running build_ext
building '_core_' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -
Wstrict-prototypes -fPIC -g -DSWIG_TYPE_TABLE=_wxPython_table -
DSWIG_PYTHON_OUTPUT_TUPLE -DWXP_USE_THREAD=1 -UNDEBUG -
D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -
D__WXDEBUG__ -D__WXGTK__ -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -
Iinclude -Isrc -I/usw/ude/Linux/wx/2.8.10.1/lib/wx/include/gtk2-
unicode-debug-2.8 -I/usw/ude/Linux/wx/2.8.10.1/include/wx-2.8 -I/usr/
include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/X11R6/include -I/
usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -
I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib64/
glib-2.0/include -I/usw/ude/Linux/python/include/python2.6 -c src/gtk/
_core_wrap.cpp -o build-gtk2.unicode/temp.linux-x86_64-2.6/src/gtk/
_core_wrap.o -pthread -g -O0
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
src/gtk/_core_wrap.cpp: In function ‘PyObject* wxPyMakeSwigPtr(void*,
const wxChar*)’:
src/gtk/_core_wrap.cpp:960: error: ‘SWIG_PackVoidPtr’ was not declared
in this scope
src/gtk/_core_wrap.cpp: In function ‘bool wxPySwigInstance_Check
(PyObject*)’:
src/gtk/_core_wrap.cpp:985: error: ‘PySwigObject_Check’ was not
declared in this scope
src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_wxPoint2D___iadd__
(PyObject*, PyObject*, PyObject*)’:
src/gtk/_core_wrap.cpp:6127: error: ‘$self’ was not declared in this
scope
src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_wxPoint2D___isub__
(PyObject*, PyObject*, PyObject*)’:
src/gtk/_core_wrap.cpp:6162: error: ‘$self’ was not declared in this
scope
src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_wxPoint2D___imul__
(PyObject*, PyObject*)’:
src/gtk/_core_wrap.cpp:6194: error: ‘$self’ was not declared in this
scope
src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_wxPoint2D___idiv__
(PyObject*, PyObject*)’:
src/gtk/_core_wrap.cpp:6225: error: ‘$self’ was not declared in this
scope
src/gtk/_core_wrap.cpp: In function ‘PyObject*
_wrap_wxMemoryFSHandler_AddFileWithMimeType(PyObject*, PyObject*,
PyObject*)’:
src/gtk/_core_wrap.cpp:10976: error: ‘temp4’ was not declared in this
scope
src/gtk/_core_wrap.cpp:10986: error: ‘temp4’ was not declared in this
scope
src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_wxImage_Rescale
(PyObject*, PyObject*, PyObject*)’:
src/gtk/_core_wrap.cpp:12853: error: ‘$self’ was not declared in this
scope
src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_wxImage_Resize
(PyObject*, PyObject*, PyObject*)’:
src/gtk/_core_wrap.cpp:12900: error: ‘$self’ was not declared in this
scope
src/gtk/_core_wrap.cpp: In function ‘PyObject*
_wrap_wxGetAccelFromString(PyObject*, PyObject*, PyObject*)’:
src/gtk/_core_wrap.cpp:26266: warning: ‘wxGetAccelFromString’ is
deprecated (declared at /usw/ude/Linux/wx/2.8.10.1/include/wx-2.8/wx/
utils.h:571)
src/gtk/_core_wrap.cpp:26266: warning: ‘wxGetAccelFromString’ is
deprecated (declared at /usw/ude/Linux/wx/2.8.10.1/include/wx-2.8/wx/
utils.h:571)
src/gtk/_core_wrap.cpp: In function ‘PyObject*
_wrap_wxSizerFlags_Proportion(PyObject*, PyObject*, PyObject*)’:
src/gtk/_core_wrap.cpp:39973: error: ‘$self’ was not declared in this
scope
src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_wxSizerFlags_Align
(PyObject*, PyObject*, PyObject*)’:
src/gtk/_core_wrap.cpp:40004: error: ‘$self’ was not declared in this
scope
src/gtk/_core_wrap.cpp: In function ‘PyObject*
_wrap_wxSizerFlags_Expand(PyObject*, PyObject*, PyObject*)’:
src/gtk/_core_wrap.cpp:40034: error: ‘$self’ was not declared in this
scope
src/gtk/_core_wrap.cpp: In function ‘PyObject*
_wrap_wxSizerFlags_Centre(PyObject*, PyObject*, PyObject*)’:
src/gtk/_core_wrap.cpp:40064: error: ‘$self’ was not declared in this
scope
src/gtk/_core_wrap.cpp: In function ‘PyObject*
_wrap_wxSizerFlags_Center(PyObject*, PyObject*, PyObject*)’:
src/gtk/_core_wrap.cpp:40094: error: ‘$self’ was not declared in this
scope
src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_wxSizerFlags_Left
(PyObject*, PyObject*, PyObject*)’:
src/gtk/_core_wrap.cpp:40124: error: ‘$self’ was not declared in this
scope
src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_wxSizerFlags_Right
(PyObject*, PyObject*, PyObject*)’:
src/gtk/_core_wrap.cpp:40154: error: ‘$self’ was not declared in this
scope
src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_wxSizerFlags_Top
(PyObject*, PyObject*, PyObject*)’:
src/gtk/_core_wrap.cpp:40184: error: ‘$self’ was not declared in this
scope
src/gtk/_core_wrap.cpp: In function ‘PyObject*
_wrap_wxSizerFlags_Bottom(PyObject*, PyObject*, PyObject*)’:
src/gtk/_core_wrap.cpp:40214: error: ‘$self’ was not declared in this
scope
src/gtk/_core_wrap.cpp: In function ‘PyObject*
_wrap_wxSizerFlags_Shaped(PyObject*, PyObject*, PyObject*)’:
src/gtk/_core_wrap.cpp:40244: error: ‘$self’ was not declared in this
scope
src/gtk/_core_wrap.cpp: In function ‘PyObject*
_wrap_wxSizerFlags_FixedMinSize(PyObject*, PyObject*, PyObject*)’:
src/gtk/_core_wrap.cpp:40274: error: ‘$self’ was not declared in this
scope
src/gtk/_core_wrap.cpp: In function ‘PyObject*
_wrap_wxSizerFlags_ReserveSpaceEvenIfHidden(PyObject*, PyObject*,
PyObject*)’:
src/gtk/_core_wrap.cpp:40304: error: ‘$self’ was not declared in this
scope
src/gtk/_core_wrap.cpp: In function ‘PyObject*
_wrap_wxSizerFlags_Border(PyObject*, PyObject*, PyObject*)’:
src/gtk/_core_wrap.cpp:40336: error: ‘$self’ was not declared in this
scope
src/gtk/_core_wrap.cpp: In function ‘PyObject*
_wrap_wxSizerFlags_DoubleBorder(PyObject*, PyObject*, PyObject*)’:
src/gtk/_core_wrap.cpp:40367: error: ‘$self’ was not declared in this
scope
src/gtk/_core_wrap.cpp: In function ‘PyObject*
_wrap_wxSizerFlags_TripleBorder(PyObject*, PyObject*, PyObject*)’:
src/gtk/_core_wrap.cpp:40398: error: ‘$self’ was not declared in this
scope
src/gtk/_core_wrap.cpp: In function ‘PyObject*
_wrap_wxSizerFlags_HorzBorder(PyObject*, PyObject*, PyObject*)’:
src/gtk/_core_wrap.cpp:40428: error: ‘$self’ was not declared in this
scope
src/gtk/_core_wrap.cpp: In function ‘PyObject*
_wrap_wxSizerFlags_DoubleHorzBorder(PyObject*, PyObject*, PyObject*)’:
src/gtk/_core_wrap.cpp:40458: error: ‘$self’ was not declared in this
scope
src/gtk/_core_wrap.cpp: At global scope:
src/gtk/_core_wrap.cpp:204: warning: ‘swig_type_info*
SWIG_Python_TypeDynamicCast(swig_type_info*, void**)’ defined but not
used
src/gtk/_core_wrap.cpp:216: warning: ‘const char* SWIG_Python_TypeName
(const swig_type_info*)’ defined but not used
src/gtk/_core_wrap.cpp:568: warning: ‘void* SWIG_Python_MustGetPtr
(PyObject*, swig_type_info*, int, int)’ defined but not used
src/gtk/_core_wrap.cpp:576: warning: ‘int SWIG_Python_ConvertPacked
(PyObject*, void*, int, swig_type_info*, int)’ defined but not used
error: command 'gcc' failed with exit status 1

I did not run accross this problem when I installed version 2.8.8.1.
Any assistance in this matter would be greatly appreciated. Just to
be clear I am trying to install this on Red Hat 4.

Thank you

Scott Hall wrote:

Hello I am attempting to update my wxPython version. Currently I have
wxPython 2.8.8.1 installed. I am following the instructions as they
are itemized in the BUILD/INSTALL instructions.

I have no problems with configure, .make and .make install. When I
continue down the instructions and try to implement the python
setup.py build_ext --inplace --debug I get the following error message

src/gtk/_core_wrap.cpp: In function ‘PyObject* wxPyMakeSwigPtr(void*,
const wxChar*)’:
src/gtk/_core_wrap.cpp:960: error: ‘SWIG_PackVoidPtr’ was not declared
in this scope
src/gtk/_core_wrap.cpp: In function ‘bool wxPySwigInstance_Check
(PyObject*)’:
src/gtk/_core_wrap.cpp:985: error: ‘PySwigObject_Check’ was not
declared in this scope

Did you happen to specify USE_SWIG=1 on a previous build? If so you probably have the wrong version of swig installed. Extract the wxPython sources from the tarball again so you have the distributed versions of these files and then try building again without letting SWIG run.

···

--
Robin Dunn
Software Craftsman

I did not specify the USE_SWIG flag on my previous build or this
build. I am not too familiar with swig, how exactly do I build it
without letting swig run?

···

On Jul 27, 6:03 pm, Robin Dunn <ro...@alldunn.com> wrote:

Scott Hall wrote:
> Hello I am attempting to update my wxPython version. Currently I have
> wxPython 2.8.8.1 installed. I am following the instructions as they
> are itemized in the BUILD/INSTALL instructions.
> I have no problems with configure, .make and .make install. When I
> continue down the instructions and try to implement the python
> setup.py build_ext --inplace --debug I get the following error message

> src/gtk/_core_wrap.cpp: In function ‘PyObject* wxPyMakeSwigPtr(void*,
> const wxChar*)’:
> src/gtk/_core_wrap.cpp:960: error: ‘SWIG_PackVoidPtr’ was not declared
> in this scope
> src/gtk/_core_wrap.cpp: In function ‘bool wxPySwigInstance_Check
> (PyObject*)’:
> src/gtk/_core_wrap.cpp:985: error: ‘PySwigObject_Check’ was not
> declared in this scope

Did you happen to specify USE_SWIG=1 on a previous build? If so you
probably have the wrong version of swig installed. Extract the wxPython
sources from the tarball again so you have the distributed versions of
these files and then try building again without letting SWIG run.

--
Robin Dunn
Software Craftsmanhttp://wxPython.org

Scott Hall wrote:

I did not specify the USE_SWIG flag on my previous build or this
build. I am not too familiar with swig, how exactly do I build it
without letting swig run?

It should be that way by default, but you can ensure it is not trying to use swig by adding USE_SWIG=0 on the setup.py command line.

···

--
Robin Dunn
Software Craftsman