Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. qmake -project INCLUDEPATH recursion
QtWS25 Last Chance

qmake -project INCLUDEPATH recursion

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
5 Posts 3 Posters 2.5k 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.
  • J Offline
    J Offline
    jschaub
    wrote on last edited by
    #1

    I am upgrading from Qt 4.8 to Qt 5.7. Our source tree changes frequently, so we currently use 'qmake -project' regurly to generate our .pro file to match the source tree. Remaining configuration options are kept in a .qmake.cache file.

    In the Qt 4.8 version of qmake, the resulting .pro file from 'qmake -project' would include all sub-directories from our source tree in INCLUDEPATH. In Qt 5.7, qmake -project no longer includes those sub-directories in the INCLUDEPATH. I've tried various combinations of command line options to 'qmake -project', but none work quite right. I'd like to ensure that we don't need to hand manipulate the resulting .pro file.

    qmake -project

    • does not include subdirectories in INCLUDEPATH

    qmake -project -recursive

    • does not include subdirectories in INCLUDEPATH

    qmake -project -recursive src

    • does include subdirectories in INCLUDEPATH
    • duplicates some directories in INCLUDEPATH with absolute path (i.e. src/main, /src/main). Also duplicates some of the header and source files with absolute path in SOURCES, HEADERS.
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Looks a bit like a regression. You should check the bug report system to see if there's something related to that.

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

      J 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi and welcome to devnet,

        Looks a bit like a regression. You should check the bug report system to see if there's something related to that.

        J Offline
        J Offline
        jschaub
        wrote on last edited by
        #3

        @SGaist Thanks, after reviewing the bug list, it looks like QTBUG-48342 is what is causing my issue.

        I'm guessing that using the 'qmake -project -recursive src' would work for us if not for that issue with the extra directory separator.

        It looks like it's been outstanding for since 5.5 so I'm not going to hold my breath for a fix anytime soon. I guess I'll have to come up with a plan 'B'.

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

          Thanks for sharing your findings !

          One thing you can do is to add your own glitch to the report, that might also help pinpoint the issue.

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

          R 1 Reply Last reply
          0
          • SGaistS SGaist

            Thanks for sharing your findings !

            One thing you can do is to add your own glitch to the report, that might also help pinpoint the issue.

            R Offline
            R Offline
            Randy Dellinger
            wrote on last edited by
            #5

            @SGaist I had the same issue but 'qmake -project -recursive src' still didn't work, so I simply ran 'qmake -project' with the old qt4 qmake and this worked for me.

            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