Hello,
I am trying to install wxPython on Linux and am running into some problems that I can’t seem to fix. I am a user on Linux and therefore I do not have any super user privileges. So I am trying to do a local install. I first installed Python locally without any problems and then proceeded with wxPython. I tried installing the binaries but I am not too familiar with rpm and could not get it to install. Here is the command I tried for the rpm package:
rpm -i --prefix=/home/hall000s/Linux/local wxPython-common-gtk2-unicode-2.8.7.1-fc7_py2.5.i386.rpm
error: Failed dependencies:
python(abi) = 2.5 is needed by wxPython-common-gtk2-unicode-2.8.7.1-fc7_py2.5.i386
Now I assume that it cannot find python2.5, however that is the version which is installed. My local installation of python (bin, lib, include, share) are all located in the specified prefix path shown on the rpm invocation. I didn’t have much luck with this and decided to just build wxPython from the source code. So I read through the BUILD.txt and INSTALL.txt to install wxPython. As recommended by both documents I generated this script to invoke configure (I did this in a directory made solely for building wxPython).
…/configure --prefix=/home/hall000s/Linux/wxPython-2.8.7.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-monolithic \
--enable-unicode \
--with-libjpeg=builtin \
--with-libpng=builtin \
--with-libtiff=builtin \
--with-zlib=builtin \
--enable-rpath=/home/hall000s/Linux/wxPython-2.8.7.1/lib \
Then I called make in the recommended way:
make $*
&& make -C contrib/src/gizmos $* \
&& make -C contrib/src/stc $*
make install
All of this performed without error. Finally, I tried to install everything into the python site-directory:
python setup.py install
Keep in mind that the python I am invoking is my local installation. The setup.py is located in the folder wxPython which is located in my downloaded copy of wxPython. When this installation is invoked, it installs things normally and then a flood of errors occur. I have attached some of the errors I recieved:
.
.
.
contrib/stc/gtk/stc_wrap.cpp:21129: error: expected `>’ before ‘wxStyledTextEvent’
contrib/stc/gtk/stc_wrap.cpp:21129: error: expected `(’ before ‘wxStyledTextEvent’
contrib/stc/gtk/stc_wrap.cpp:21129: error: expected primary-expression before ‘>’ token
contrib/stc/gtk/stc_wrap.cpp:21129: error: expected `)’ before ‘;’ token
contrib/stc/gtk/stc_wrap.cpp:21132: error: expected primary-expression before ‘bool’
contrib/stc/gtk/stc_wrap.cpp:21132: error: expected `)’ before ‘bool’
contrib/stc/gtk/stc_wrap.cpp: In function ‘PyObject* _wrap_StyledTextEvent_GetControl(PyObject*, PyObject*)’:
contrib/stc/gtk/stc_wrap.cpp:21147: error: ‘wxStyledTextEvent’ was not declared in this scope
contrib/stc/gtk/stc_wrap.cpp:21147: error: ‘arg1’ was not declared in this scope
contrib/stc/gtk/stc_wrap.cpp:21147: error: expected primary-expression before ‘)’ token
contrib/stc/gtk/stc_wrap.cpp:21147: error: expected `;’ before numeric constant
contrib/stc/gtk/stc_wrap.cpp:21159: error: expected type-specifier before ‘wxStyledTextEvent’
contrib/stc/gtk/stc_wrap.cpp:21159: error: expected `>’ before ‘wxStyledTextEvent’
contrib/stc/gtk/stc_wrap.cpp:21159: error: expected `(’ before ‘wxStyledTextEvent’
contrib/stc/gtk/stc_wrap.cpp:21159: error: expected primary-expression before ‘>’ token
contrib/stc/gtk/stc_wrap.cpp:21159: error: expected `)’ before ‘;’ token
contrib/stc/gtk/stc_wrap.cpp:21162: error: expected primary-expression before ‘bool’
contrib/stc/gtk/stc_wrap.cpp:21162: error: expected `)’ before ‘bool’
contrib/stc/gtk/stc_wrap.cpp: In function ‘PyObject* _wrap_StyledTextEvent_GetAlt(PyObject*, PyObject*)’:
contrib/stc/gtk/stc_wrap.cpp:21177: error: ‘wxStyledTextEvent’ was not declared in this scope
contrib/stc/gtk/stc_wrap.cpp:21177: error: ‘arg1’ was not declared in this scope
contrib/stc/gtk/stc_wrap.cpp:21177: error: expected primary-expression before ‘)’ token
contrib/stc/gtk/stc_wrap.cpp:21177: error: expected `;’ before numeric constant
contrib/stc/gtk/stc_wrap.cpp:21189: error: expected type-specifier before ‘wxStyledTextEvent’
contrib/stc/gtk/stc_wrap.cpp:21189: error: expected `>’ before ‘wxStyledTextEvent’
contrib/stc/gtk/stc_wrap.cpp:21189: error: expected `(’ before ‘wxStyledTextEvent’
contrib/stc/gtk/stc_wrap.cpp:21189: error: expected primary-expression before ‘>’ token
contrib/stc/gtk/stc_wrap.cpp:21189: error: expected `)’ before ‘;’ token
contrib/stc/gtk/stc_wrap.cpp:21192: error: expected primary-expression before ‘bool’
contrib/stc/gtk/stc_wrap.cpp:21192: error: expected `)’ before ‘bool’
contrib/stc/gtk/stc_wrap.cpp: In function ‘void* _p_wxStyledTextEventTo_p_wxObject(void*)’:
contrib/stc/gtk/stc_wrap.cpp:21789: error: ‘wxStyledTextEvent’ was not declared in this scope
contrib/stc/gtk/stc_wrap.cpp:21789: error: expected primary-expression before ‘void’
contrib/stc/gtk/stc_wrap.cpp:21789: error: expected `)’ before ‘void’
contrib/stc/gtk/stc_wrap.cpp: In function ‘void* _p_wxStyledTextCtrlTo_p_wxObject(void*)’:
contrib/stc/gtk/stc_wrap.cpp:21825: error: ‘wxStyledTextCtrl’ was not declared in this scope
contrib/stc/gtk/stc_wrap.cpp:21825: error: expected primary-expression before ‘void’
contrib/stc/gtk/stc_wrap.cpp:21825: error: expected `)’ before ‘void’
contrib/stc/gtk/stc_wrap.cpp: In function ‘void* _p_wxStyledTextCtrlTo_p_wxWindow(void*)’:
contrib/stc/gtk/stc_wrap.cpp:22017: error: ‘wxStyledTextCtrl’ was not declared in this scope
contrib/stc/gtk/stc_wrap.cpp:22017: error: expected primary-expression before ‘void’
contrib/stc/gtk/stc_wrap.cpp:22017: error: expected `)’ before ‘void’
.
.
.
I have tried this several times with the same results. I feel that I have read the INSTALL and BUILD instructions thoroughly so I am at a loss as to what I am doing wrong. If anyone can offer any advice or point out what I am doing wrong I would greatly appreciate it. If there is any info that I may have left out that would help please let me know. Thank you all in advance.
Scott