Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Building subdirs in one build.

Building subdirs in one build.

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 393 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.
  • B Offline
    B Offline
    Brian S
    wrote on last edited by
    #1

    Hello,

    I am a bit new to QT, but so far I really like what i see.
    I am working on a project where there is 25-30 subdirs which is being build with qmake.
    I have a question about the way qmake is building all this.
    It seems to me that qmake is building every subdir separately.
    If that is right; is there a way to make qmake see it at one big project and build it all at once?
    I am asking because we tried to use ICECC (https://github.com/icecc/icecream) to build with, but ICECC is not very efficient when building small projects (the subdirs).

    I hope that you can make me a bit wiser on how buildsystems work.

    With kind regards
    Bryan

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Yes, qmake treats all subdirs separately. Try adding CONFIG+=ordered maybe it will help a bit, although I doubt it.

      Alternatively, rewrite your project to include your subdirs as .pri files instead (it may be impossible, though - depends on details about your project).

      Alternatively again - use cmake.

      (Z(:^

      aha_1980A 1 Reply Last reply
      0
      • sierdzioS sierdzio

        Yes, qmake treats all subdirs separately. Try adding CONFIG+=ordered maybe it will help a bit, although I doubt it.

        Alternatively, rewrite your project to include your subdirs as .pri files instead (it may be impossible, though - depends on details about your project).

        Alternatively again - use cmake.

        aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @sierdzio

        Please don't recomment CONFIG+=ordered. With CONFIG+=ordered you will destroy all parallel building.

        See: https://blog.rburchell.com/2013/10/every-time-you-configordered-kitten-dies.html

        @Brian-S : The link above explains how to create ordering dependencies for you subdirs project.

        At least when building local, multiple subdirs can run in parallel if the dependency chain is correctly set up and the projects don't depend on each other. Don't know how that works with ICECC, though.

        Regards

        Qt has to stay free or it will die.

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          OK, thanks for info. I knew the danger but thought it might help in this case.

          (Z(:^

          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