I would guess that the configure script couldn't detect the makespec. Did you set QMAKESPEC env variable? It should be "linux-g++".