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. Where does qmake get it's include directories from ?
Qt 6.11 is out! See what's new in the release blog

Where does qmake get it's include directories from ?

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 2 Posters 2.5k Views 1 Watching
  • 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.
  • clogwogC Offline
    clogwogC Offline
    clogwog
    wrote on last edited by
    #1

    i cross compiled qt5.1.1 in my ~/Downloads/qt/qt-everywhere... / directory
    it installed it to ~/Downloads/qt/rootfs/opt/qt5.1.1-armel/ (the rootfs of the device)
    it also installed qmake to /opt/qt5.1.1-armel/

    but when i call /opt/qt5.1.1-armel/qmake myproject.pro the Makefile that gets generates still points to the rootfs of for INCPATH

    @INCPATH = -I/opt/qt5.1.1-armel/mkspecs/arm-none-linux-gnueabi-g++ -I../src -I/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/arm-fsl-linux-gnueabi/multi-libs/default/usr/include -I../src -I../../../../../../Downloads/qt/rootfs/opt/qt5.1.1-armel/include -I../../../../../../Downloads/qt/rootfs/opt/qt5.1.1-armel/include/QtWidgets -I../../../../../../Downloads/qt/rootfs/opt/qt5.1.1-armel/include/QtGui -I../../../../../../Downloads/qt/rootfs/opt/qt5.1.1-armel/include/QtCore -I. -I. -I.@

    i've exported QTDIR and QT_INSTALL_PREFIX before i call qmake but it makes no difference

    i would like to redistribute the whole qt directory with all the dependencies to all the other developers areound here using 1 /opt/qt5.1.1-armel/ directory

    how can i point qmake to look at /opt/qt5.1.1-armel/ instead ? or is this hard coded in qmake once it is built ?

    1 Reply Last reply
    0
    • clogwogC Offline
      clogwogC Offline
      clogwog
      wrote on last edited by
      #2

      mmm no answer,
      how about is there a way to set the standard qt include directories ?

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        You could try using "qt.conf":http://qt-project.org/doc/qt-4.8/qt-conf.html

        What I generally do is install Qt on the host and copy the needed files on the target (there are some things that are not needed)

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • clogwogC Offline
          clogwogC Offline
          clogwog
          wrote on last edited by
          #4

          thanks Samuel ! i'll give that a try.

          1 Reply Last reply
          0

          • Login

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