I've tried to install 2.9.3.1 using two different approaches on RHEL6:
build script and source RPM. I'll start with the issue that I ran
into with the build script.
------------------------------------------------BUILD SCRIPT
ISSUES--------------------------------------------------------------
Using the following command:
/disk01/data/davidsj2/wxPython-src-2.9.3.1/wxPython > ./build-
wxpython.py --build_dir=../bld
I'm able to build locally without issue. Now, if I try to install
using: ./build-wxpython.py --build_dir=../bld --install
As expected, the build fails because I'm not root and can't modify my
system python distribution. So, if I try to run as root: sudo ./build-
wxpython.py --build_dir=.. --install
The build fails on the very first source file compilation:
building '_core_' extension
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-
D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-
size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g
-pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --
param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -
fwrapv -fPIC -DSWIG_TYPE_TABLE=_wxPython_table -
DSWIG_PYTHON_OUTPUT_TUPLE -DWXP_USE_THREAD=1 -UNDEBUG -
D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -Iinclude -Isrc -I/usr/
local/lib/wx/include/gtk2-unicode-2.9 -I/usr/local/include/wx-2.9 -I/
usr/include/gtk-2.0 -I/usr/lib64/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/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/
include/freetype2 -I/usr/include/libpng12 -I/usr/include/python2.6 -c
src/helpers.cpp -o build/temp.linux-x86_64-2.6/src/helpers.o -pthread -
O3
In file included from src/helpers.cpp:17:
include/wx/wxPython/wxPython_int.h:35:19: error: wx/wx.h: No such file
or directory
You can see that it's not adding -I../include to the include path like
it should be (wx/wx.h is in ../include). *IF* I set my CPATH variable
to hard code that path I *can* get the build to work, but I'm not sure
why that's required.
building '_core_' extension
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-
D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-
size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g
-pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --
param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -
fwrapv -fPIC -DSWIG_TYPE_TABLE=_wxPython_table -
DSWIG_PYTHON_OUTPUT_TUPLE -DWXP_USE_THREAD=1 -UNDEBUG -
D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -Iinclude -Isrc -I/usr/
local/lib/wx/include/gtk2-unicode-2.9 -I/usr/local/include/wx-2.9 -I/
usr/include/gtk-2.0 -I/usr/lib64/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/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/
include/freetype2 -I/usr/include/libpng12 -I/usr/include/python2.6 -c
src/helpers.cpp -o build/temp.linux-x86_64-2.6/src/helpers.o -pthread -
O3
In file included from /disk01/data/davidsj2/wxPython-src-2.9.3.1/
include/wx/defs.h:28,
from /disk01/data/davidsj2/wxPython-src-2.9.3.1/
include/wx/wx.h:15,
from include/wx/wxPython/wxPython_int.h:35,
from src/helpers.cpp:17:
/disk01/data/davidsj2/wxPython-src-2.9.3.1/include/wx/platform.h:
181:22: error: wx/setup.h: No such file or directory
------------------------------------------------RPM
ISSUES--------------------------------------------------------------
So, if I try to build from the source RPM using the following:
/disk01/data/davidsj2/rpmbuild > rpmbuild --rebuild --define "_topdir /
disk01/data/davidsj2/rpmbuild" wxPython2.9-2.9.3.1-1.src.rpm
The build spins right along until we get to:
g++ -o wxrc wxrc_wxrc.o -L/disk01/data/davidsj2/rpmbuild/BUILD/
wxPython-src-2.9.3.1/bld/lib -pthread -lwx_baseu_xml-2.9 -
lwx_baseu-2.9 -lwxregexu-2.9 -lwxexpat-2.9 -pthread -Wl,--
version-script,/disk01/data/davidsj2/rpmbuild/BUILD/wxPython-
src-2.9.3.1/bld/version-script -lz -ldl -lm -lz -ldl -lm
make[1]: Leaving directory `/disk01/data/davidsj2/rpmbuild/BUILD/
wxPython-src-2.9.3.1/bld/utils/wxrc'
+ make -C contrib/src/gizmos
make: *** contrib/src/gizmos: No such file or directory. Stop.
error: Bad exit status from /var/tmp/rpm-tmp.o9e6ua (%build)
RPM build errors:
user robind does not exist - using root
group robind does not exist - using root
user robind does not exist - using root
group robind does not exist - using root
Bad exit status from /var/tmp/rpm-tmp.o9e6ua (%build)
When I search the top directory for gizmos, I see:
[davidsj2@scts01] /disk01/data/davidsj2/rpmbuild > find . -name gizmos
./BUILD/wxPython-src-2.9.3.1/wxPython/contrib/gizmos
./BUILD/wxPython-src-2.9.3.1/wxPython/contrib/gizmos/wxCode/src/gizmos
./BUILD/wxPython-src-2.9.3.1/wxPython/contrib/gizmos/wxCode/include/wx/
gizmos
So there is a contrib/gizmos, but no contrib/src/gizmos.
The next step in the spec file is: make -C contrib/src/stc
I think that may also run into issues:
[davidsj2@scts01] /disk01/data/davidsj2/rpmbuild > find . -name stc
./BUILD/wxPython-src-2.9.3.1/src/stc
./BUILD/wxPython-src-2.9.3.1/include/wx/stc
./BUILD/wxPython-src-2.9.3.1/interface/wx/stc
./BUILD/wxPython-src-2.9.3.1/bld/samples/stc
./BUILD/wxPython-src-2.9.3.1/samples/stc