Skip to content

Instantly share code, notes, and snippets.

@carlohamalainen
Created November 24, 2012 07:21
Show Gist options
  • Save carlohamalainen/4138775 to your computer and use it in GitHub Desktop.
Save carlohamalainen/4138775 to your computer and use it in GitHub Desktop.
Install wxWidgets 2.9.4 on Debian Squeeze
#!/bin/bash
set -x
set -e
module load python/2.7.3
mkdir -p /opt/src
cd /opt/src
# wget -c http://downloads.sourceforge.net/project/wxwindows/2.9.4/wxWidgets-2.9.4.tar.bz2
apt-get install apt-file screen git build-essential gcc g++ tcl8.5-dev tk8.5 tk8.5-dev tcl8.5 tcl8.5-dev tk8.5 tk8.5-dev tcl8.5 libreadline6{,-dev} zlib1g-dev liblz-dev libx11-dev libbz2-dev sqlite3 libsqlite3-dev libgdbm-dev libgtk2.0-dev mesa-common-dev libglu1-mesa-dev python-setuptools python-dev libssl-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libgconf2-dev
# tar jxf wxPython-2.9.4.tar.bz2
cd wxWidgets-2.9.4
export WXDIR=`pwd`
rm -fr bld
mkdir bld
cd bld
../configure --prefix=/opt/sw/64bit/debian/wxpython/2.9.4 \
--with-gtk \
--with-gnomeprint \
--with-opengl \
--enable-debug \
--enable-debug_gdb \
--enable-geometry \
--enable-graphics_ctx \
--enable-sound --with-sdl \
--enable-mediactrl \
--enable-display \
--enable-unicode
make
make -C contrib/src/gizmos
make -C contrib/src/stc
make install
make -C contrib/src/gizmos install
make -C contrib/src/stc install
mkdir /opt/sw/64bit/debian/modules/3.2.9c/Modules/3.2.9/modulefiles/wxpython
cat > /opt/sw/64bit/debian/modules/3.2.9c/Modules/3.2.9/modulefiles/wxpython/2.9.4 <<EOF
#%Module1.0#####################################################################
module-whatis "wx 2.9.4"
prepend-path PATH /opt/sw/64bit/debian/wxpython/2.9.4/bin
prepend-path LD_LIBRARY_PATH /opt/sw/64bit/debian/wxpython/2.9.4/lib
EOF
module load wxpython/2.9.4
cd $WXDIR/wxPython
python setup.py build_ext --inplace --debug
python setup.py install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment