I have a large C++ project built using eclipse and bjam.
The project relies heavily on qt4.7.4. Everything was going
swimmingly (ie. project built successfully and executed fine)
until I upgraded my Ubuntu release to 12.04 LTS.

After the upgrade linking the project with qt libraries gives 100's (1000's) of
errors or undefined symbols that should be defined in various X11
libraries. I've checked and the appropriate X11 libraries exist and they do
define the procedures that Qt is complaining about. However, under the new OS release they have different
version numbers and are in different directories than the previous OS release.

example of error:
/usr/share/qt4.7.4/lib/libQtGui.a(qnativeimage.o): In function
`QNativeImage::QNativeImage(int, int, QImage::Format, bool, QWidget*)':
qnativeimage.cpp:(.text+0x32d): undefined reference to `XShmCreateImage'


Sooo I'm pretty sure the Qt libraries refer to (archives were created
referring to) X11 libraries that have been replaced, relocated, or
renamed in the upgraded OS. I can't figure out how to rebuild the Qt
libraries to refer to the new X11 libraries.

I've tried using Synaptic Package Manager to uninstall and reinstall the
libraries but that doesn't work. I'm guessing that there is some magic
incantation involving app-get, config, make that will do the trick. Any
suggestions?