Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Cross Compile fails while building tools (moc)
QtWS25 Last Chance

Cross Compile fails while building tools (moc)

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
cross compiletoolsmocincludepath
2 Posts 1 Posters 1.2k Views
  • 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 Offline
    D Offline
    dogisfat
    wrote on 19 Jan 2017, 16:30 last edited by
    #1

    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
    0
    • D Offline
      D Offline
      dogisfat
      wrote on 19 Jan 2017, 16:36 last edited by
      #2

      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
      0

      1/2

      19 Jan 2017, 16:30

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved