Ran into this issue on the pull-tester machine cross-compiling for win32, where /usr/bin/moc-qt4 was for QT 4.6, which was used in preference to the moc in the --with-qt-bindir directory.
Workaround was to create a moc-qt4 link in the --with-qt-bindir directory.