Make the one line configure fix and then let the debian tools do all the work. From scratchbox in the FREMANTLE_ARMEL target: Code: mkdir qt chdir qt apt-get source libqt4-dev chdir qt4-x11-4.7.0~git20100909 sed -i 's/linux-host-g++/linux-g++-maemo5/' configure dpkg-buildpackage -b -d -nc -rfakeroot No other changes are needed in order to create qmake moc rcc and uic.
mkdir qt chdir qt apt-get source libqt4-dev chdir qt4-x11-4.7.0~git20100909 sed -i 's/linux-host-g++/linux-g++-maemo5/' configure dpkg-buildpackage -b -d -nc -rfakeroot