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. Empty unused build folders ...
Forum Updated to NodeBB v4.3 + New Features

Empty unused build folders ...

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
8 Posts 2 Posters 1.0k Views 2 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.
  • ademmlerA Offline
    ademmlerA Offline
    ademmler
    wrote on last edited by
    #1

    Hi there, in my *.pro file I use

    CONFIG(debug, debug|release) {
        DESTDIR      = $$PWD/build/debug/
    } else {
        DESTDIR      = $$PWD/build/release/
    }
    

    On Mac OS X I get only the two expected folders:

    "myproject/build/debug"
    "myproject/build/release"
    

    On Windows I get additional empty folders (4 in total):

    "myproject/debug"
    "myproject/release"
    

    How can I prevent this?

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

      Hi,

      IIRC, that's because of VS and you can't change that.

      In any case, I would suggest to avoid hard coding the build parts in your sources. You should rather take advantage of out of source builds.

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

      ademmlerA 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        IIRC, that's because of VS and you can't change that.

        In any case, I would suggest to avoid hard coding the build parts in your sources. You should rather take advantage of out of source builds.

        ademmlerA Offline
        ademmlerA Offline
        ademmler
        wrote on last edited by
        #3

        @SGaist thx for response.

        VS = Visual Studio you mean - right?

        "In any case, I would suggest to avoid hard coding the build parts in your sources. You should rather take advantage of out of source builds."

        This part I have not understood - can you explain a bit more?

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

          @ademmler said in Empty unused build folders ...:

          DESTDIR = $$PWD/build/debug/

          This points DESTDIR to be in your sources. You should avoid that. Keeping the source clean from build artefacts is good habit.

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

          ademmlerA 1 Reply Last reply
          0
          • SGaistS SGaist

            @ademmler said in Empty unused build folders ...:

            DESTDIR = $$PWD/build/debug/

            This points DESTDIR to be in your sources. You should avoid that. Keeping the source clean from build artefacts is good habit.

            ademmlerA Offline
            ademmlerA Offline
            ademmler
            wrote on last edited by
            #5

            @SGaist I see - I got this advice from an "older qt developer" to do the opposite :-)
            By the way - what are the shadow builds for -I ran into problems, when I keep those activated.

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

              Shadow builds are out of source builds so if you start forcing stuff within your sources then you'll have trouble.

              You can still control some stuff by using the "OUT_PWD" variable which should point to the build build tree. That can be useful for example when you use a SUBDIRS project and would like to have all the build libraries in on folder that you can easily access from the other projects.

              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
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @ademmler said in Empty unused build folders ...:

                "older qt developer"

                Out of curiosity, how old would that be ? :-)

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

                ademmlerA 1 Reply Last reply
                0
                • SGaistS SGaist

                  @ademmler said in Empty unused build folders ...:

                  "older qt developer"

                  Out of curiosity, how old would that be ? :-)

                  ademmlerA Offline
                  ademmlerA Offline
                  ademmler
                  wrote on last edited by
                  #8

                  @SGaist He does Qt since many years ... but he is in many aspects not up to date ;-)

                  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