Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Cross Compile fails while building tools (moc)

    Installation and Deployment
    cross compile tools moc includepath
    1
    2
    974
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dogisfat last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • D
        dogisfat last edited by

        I was able to fix the problem by adding this to the qmake.conf file for the device:

        QMAKE_INCDIR_QT += $$[QT_INSTALL_HEADERS]

        1 Reply Last reply Reply Quote 0
        • First post
          Last post