Unsolved Cross Compile fails while building tools (moc)
I am trying to cross compile qt 5.3.2 for an ARM target. I have successfully cross compiled and produced working binaries however I first had to install all of the Qt headers in the emulated chroot environment before I successfully cross compile. The issue occurs when compiling the moc host tool.
I cannot seem to figure out what the correct include path should be to allow the compile to succeed and where to add the include path. I have tried adding additional include paths to the qmake.conf in the devices mkspec directory but the moc makefile doesn't include the additional QMAKE_INCDIR paths despite re-configuring and rebuilding.
I was able to fix the problem by adding this to the qmake.conf file for the device:
QMAKE_INCDIR_QT += $$[QT_INSTALL_HEADERS]