Just tested with Ubuntu Karmic:
(1) Install the multilib support for g++ and gcc (synaptic or sudo apt-get install):
g++-multilib
gcc-multilib
(2) Get the .deb 32 bit packages - donwload, not through synaptic:
libwxbase2.8-0_2.8.10.1-1_i386.deb
libwxbase2.8-dbg_2.8.10.1-1_i386.deb
libwxbase2.8-dev_2.8.10.1-1_i386.deb
libwxgtk2.8-0_2.8.10.1-1_i386.deb
libwxgtk2.8-dev_2.8.10.1-1_i386.deb
wx2.8-headers_2.8.10.1-1_i386.deb
wx2.8-i18n_2.8.10.1-1_all.deb
wx-common_2.8.10.1-1_i386.deb
This is important, if you use synaptic or apt-get to get the binaries, you'll only see the 64-bit versions
(3) Unpack each of them, and then for each unpack the data.tar.gz file.
They can't be installed with gdebi or other package manager, because they will (correctly) show as a wrong architecture, and even if it did, things would probably go to the wrong places.
(4) Move the directories:
move the directory ./lib to /usr/lib32
move the directory ./include to /usr/i32 (or some other name that is not include)
discard the rest
(5) Set build options:
compiler/other options
-m32 -I/usr/lib32/wx/include/gtk2-unicode-release-2.8 -I/usr/i32/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread
Note the -I/usr/i32; if a different name is chosen, it should be used there.
I believe the same effect could be achieved setting up something or other in the wx-config script, but I don't know how. Suggestions are welcome.
linker/other options
-m32 `wx-config --libs`
Et voilĂ . The interesting thing is that when the multilib support is installed, the 32 bit apps will also run under the 64 bit distro.
Note: I haven't tested debugging yet.
Enjoy,
Ken