I am developing a 3D game/graphics/simulation engine on 64-bit ubuntu 12.04 LTS. The 64-bit version of my application compiles, links and executes just fine. However, I cannot build a 32-bit version of my application. I get the following build errors:
ld : cannot find -lX11 ld : cannot find -lcairo ld : cannot find -lpango ld : cannot find -lfreetype ld : cannot find -lfmodex
My assumption is, I do not have 32-bit versions of some libraries installed. However, when I look for files with -i386 or :i386 suffix in "ubuntu software center", I don't see any. For example, if I enter "libcairo" in the search field, it shows:
libcairo2 libcairo2-dev libcairo2-doc libcairo2-dbg plus a other irrelevant files (bindings for other languages).
No matter how I search, I cannot see any package names that imply 32-bit libraries.
How, exactly, are we supposed to develop 32-bit executables on 64-bit linux circa 2012 and beyond (ubuntu 12.04 LTS in my case)?