Maybe this will help:
To build Qt from its source code, you will also need to install the development packages for these libraries for your system.
From here: http://doc.qt.nokia.com/4.6/requirem...i-dependencies