Tue Sep 18, 2012 7:51 pm
OK, a little late for a reply but for the benefit of those searching for answers I got wxWidgets 2.9.4 to build on my Pi by doing the following steps:
Download the .tar.bz source tarball from wxWidgets.org
unzip to a local directory (I used ~/src/wx2_9_4)
first make sure everything is up to date:
sudo -E apt-get update
sudo -E apt-get upgrade
install the libraries that it needs to build wx:
sudo -E apt-get install libGTK2.0-dev libtiff5-dev libjpeg8-dev
If you want to build openGL support (I'm not sure if it will work but it does build) the also install mesa-common-dev and freeglut3-dev
You want to maximum amount of ram possible available for the build even then it will take 4+ hours. To do this run raspi-config and set the memory split to give the maximum amount of memory to the cpu. Reboot to a command line with no gui running.
cd to your wx directory
mkdir relaseBuild
cd releaseBuild
../configure
[wait about 5 minutes]
make
[wait 4-5 hours]
sudo make install
sudo ldconfig
The reason for doing the configure and make in a different directory is that if you want to make a debug version of the libraries or one with different options you can build them in a different location. Then when switching between versions you only need to cd to the correct directory and do the make install and ldconfig steps. You burn some storage space but it saves a painfully slow recompile every time you want to go from debug to release versions and back.