How to install WxWidgets

We’re going to install WxWidgets on linux. I am using Debian-squeeze in this guide, so some minor alterations may be necessary for different distro’s.

Find WxWidget versions / links here. I use version 2.8.12 in the guide.

cd /var
wget -O wxWidgets-2.8.12.tar.gz http://sourceforge.net/projects/wxwindows/files/2.8.12/wxWidgets-2.8.12.tar.gz/download
tar -zxvf wxWidgets-2.8.12.tar.gz
cd wxWidgets-2.8.12
./configure

It’ll probably say you need GTK+, so install if you don’t have yet. Links here

cd /var
wget http://ftp.gnome.org/pub/gnome/sources/gtk+/3.0/gtk+-3.0.12.tar.bz2
tar -jxvf gtk+-3.0.12.tar.bz2
cd gtk+-3.0.12
./configure

Chances are you are missing some stuff to install GTK+. I had to install these:

apt-get install libperl-dev libgtk2.0-dev
ldconfig

So we configure gtk+ again

./configure

Unfortunately some stuff was outdated (for me, at least)
-glib
-cairo
-gdk-pixbuf

Install newer glib version from source

cd /var
wget http://ftp.gnome.org/pub/gnome/sources/glib/2.30/glib-2.30.1.tar.bz2
tar -jxvf glib-2.30.1.tar.bz2
cd glib-2.30.1
./configure

“No package libffi” error popped up for me. Get versions here.

cd /var
wget ftp://sourceware.org/pub/libffi/libffi-3.0.9.tar.gz
tar -zxvf libffi-3.0.9.tar.gz
cd libffi-3.0.9
./configure
make
make install
ldconfig

Try to configure & install glib again. It should work now.
Warning: “make” could take a little while (~5 min for me) with this one.

cd /var/glib-2.30.1
./configure
make
make install
ldconfig

Install newer cairo version from source Versions here.

First, install pixman

cd /var
wget http://cairographics.org/releases/pixman-0.24.0.tar.gz
tar -zxvf pixman-0.24.0.tar.gz
cd pixman-0.24.0
./configure
make
make install
ldconfig

After that, cairo itself

cd /var
wget http://cairographics.org/releases/cairo-1.10.2.tar.gz
tar -zxvf cairo-1.10.2.tar.gz
cd cairo-1.10.2
./configure
make
make install
ldconfig

Install newer gdk-pixbuf version from source Versions here.

First, install libtiff. Versions here.

cd /var
wget ftp://ftp.remotesensing.org/pub/libtiff/tiff-3.9.5.tar.gz
tar -zxvf tiff-3.9.5.tar.gz
cd tiff-3.9.5
./configure
make
make install
ldconfig

Next, install libjpeg 6b1-2. Versions for debian here.

Runtime

cd /var
wget http://ftp.us.debian.org/debian/pool/main/libj/libjpeg6b/libjpeg62_6b1-2_amd64.deb
dpkg -i libjpeg62_6b1-2_amd64.deb
ldconfig

Devel

cd /var
wget http://ftp.us.debian.org/debian/pool/main/libj/libjpeg6b/libjpeg62-dev_6b1-2_amd64.deb
dpkg -i libjpeg62-dev_6b1-2_amd64.deb
ldconfig

After that, gdk-pixbuf itself

cd /var
wget http://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/2.24/gdk-pixbuf-2.24.0.tar.bz2
tar -jxvf gdk-pixbuf-2.24.0.tar.bz2
cd gdk-pixbuf-2.24.0
./configure
make
make install
ldconfig

So now we can try to configure and install gtk+ again. It should work now.
Warning: “make” will take a while on this one, too. 5 minutes should do the trick.

cd /var/gtk+-3.0.12
./configure
make
make install
ldconfig

And finally we can install wxwidgets

cd /var/wxWidgets-2.8.12
./configure
make
make install
ldconfig

Unrelated:

This proved to be unnecessary, but here’s how to install libjpeg anyway. Versions here.

cd /var
wget -O jpegsrc.v6b.tar.gz http://sourceforge.net/projects/libjpeg/files/libjpeg/6b/jpegsrc.v6b.tar.gz/download
tar -zxvf jpegsrc.v6b.tar.gz
cd jpeg-6b
./configure
make
make install
ldconfig

Leave a Reply

Your email address will not be published. Required fields are marked *