Linux HOWTOs

About | Home | Search


HOWTO: wxpython
Description: The wxWidgets C++ library for Python
Click here for ChangeLog
NOTE: I use GNU tar >= 1.13.25 so it's -j for .tar.bz2 files,
it's safe to assume that make, gcc, binutils, fileutils/coreutils, gawk, sed, and grep are prerequisites for almost everything


# wxPython 2.6.3.3
# ================
# Some things that I know of that use wxPython:
# BitTorrent
# PDesk

# Prerequisites:
# grep
# XFree86 or X.org
# zlib >= 1.1.4
# libpng >= 0.90
# libjpeg
# libtiff
# expat
# libmspack (optional)
# GTK+ >= 2.0.0
# pkg-config
# pango's pangoft2
# OpenGL or Mesa3D (included with X) and PyOpenGL (optional)
# libiconv
# esd
# SDL
# Python
# cppunit (optional; I haven't tried it)
# gstreamer-0.8 (optional)
# libgnomeprint (if you pass --with-gnomeprint)

cd
test -f installed/wxPython-src-2.6.3.3.tar.bz2 &&
 mv installed/wxPython-src-2.6.3.3.tar.bz2 .
test ! -f wxPython-src-2.6.3.3.tar.bz2 &&
 wget http://download.sf.net/wxpython/wxPython-src-2.6.3.3.tar.bz2
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "wxPythonSrc-*" -o -name "wxPython-src-*" \
 -exec rm -r {} \;
tar xjvf ~/wxPython-src-2.6.3.3.tar.bz2
cd wxPython-src-2.6.3.3
test $UID = 0 && chown -R root:root .
chmod -R u+w .
mkdir bld
cd bld

# I had to add --without-libmspack to get previous versions to build, but
# it was OK with 2006-09-20 this time.

../configure \
 --with-gtk \
 --with-opengl \
 --with-gnomeprint \
 --enable-debug \
 --enable-geometry \
 --enable-sound --with-sdl \
 --enable-mediactrl \
 --enable-display \
 --enable-unicode
cat << EOF >.make
make \$* &&
 make -C contrib/src/animate \$* &&
 make -C contrib/src/gizmos \$* &&
 make -C contrib/src/stc \$*
EOF
sh ./.make
su -c "sh ./.make install"
cd ../wxPython
python setup.py build_ext --inplace --debug UNICODE=1
su -c "python setup.py install UNICODE=1"
cd
mkdir -p -m 0700 installed
rm -f installed/wxPythonSrc-*.tar.* installed/wxPython-src-*.tar.*
mv wxPython-src-2.6.3.3.tar.bz2 installed/

Back to the list


Last updated: Tue, 07 Aug 2018 12:06:17 -0400
Jason Englander <jason at englanders dot us>