Hi,
I try to build Qcad 2.2.1 pro on Ubuntu 9.04 with Qt4.4.3 built statically. All modules of Qcad were built except qcad. The compilation of qcad module went alright but I got stuck at linking with the error below:

I installed dev packages of X11 using Synaptic. Not only qapplication_x11.cpp but also other .cpp files throw such errors at this linking stage. I cheked the files in qt4.4.3/src/gui/kernel, there the files are. What can be the cause, any solution suggestion?

Briefly, adding parameters -lX11 and -lrt to LIBS variable solves these link problems. Note that, it's a kind of workaround, since the Makefile is automatically generated using .pro file and qmake command. The exact solution is supposed to be related to .pro file, not to Makefile.