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. Both debug and release settings generates debug/ and release/ sub-folder (total 4 folders), why not just two?
Forum Updated to NodeBB v4.3 + New Features

Both debug and release settings generates debug/ and release/ sub-folder (total 4 folders), why not just two?

Scheduled Pinned Locked Moved General and Desktop
5 Posts 4 Posters 1.0k 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.
  • R Offline
    R Offline
    robinh3123
    wrote on last edited by
    #1

    [ Related post: "debug_and_release: how to get rid of autogenerated debug/release folders":http://qt-project.org/forums/viewthread/14082 ]

    I am compiling/debugging C++ on PC Desktop. My folder structure is like this:

    @+ ProjectHome
    + build
    + debug
    + debug <== created by QtCreator
    + release <== created by QtCreator
    + release
    + debug <== created by QtCreator
    + release <== created by QtCreator@

    And my settings ask QtCreator to do shadow builds: The folder to build for debug settings is set to ProjectHome/build/debug, while the folder to build for release settings is set to ProjectHome/build/release.

    My question is that, why QtCreator creates all four sub-folders, while only two are used? In my situation, ProjectHome/build/release/debug/ is empty after build, and ProjectHome/build/debug/release is also empty after build. Only the other two of them are non-empty containing binaries (executable and object files) after build.

    Why QtCreator need those 4 sub-folders? Can anyone explain this for me? Thanks in advance.

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

      As far as I know, this is one of the brilliant ideas Microsoft Visual C++ compiler has. Qt has no influnece over this policy. Other platforms and compilers do not behave like this.

      (Z(:^

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

        Hi,

        From the looks of it you are using Visual Studio package. It's Microsoft folder layout for building applications/libraries and there's nothing you can do about that.

        [edit: That's synchronisation :D]

        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
        • R Offline
          R Offline
          robinh3123
          wrote on last edited by
          #4

          Not Microsoft compiler. I am using MinGW gcc/g++.

          1 Reply Last reply
          0
          • C Offline
            C Offline
            cuzn1024
            wrote on last edited by
            #5

            I avoid this problem by redefining build directories. For example, X:\Project\build\test. No debug or release name followed.

            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