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. Qt6.11.1 / Ubuntu(latest), both debug and release are built on top of each other in same folder
Qt 6.11 is out! See what's new in the release blog

Qt6.11.1 / Ubuntu(latest), both debug and release are built on top of each other in same folder

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 4 Posters 3.3k 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.
  • D Offline
    D Offline
    drmhkelley
    wrote last edited by
    #1

    Long-time user of Qt on Windows but new to developing for Ubuntu. All Windows releases I have used build the releases in separate folders for debug and release - and that has seemed pretty sensible and convenient. I want a similar configuration on Ubuntu, but have failed in my attempts to do this. Does anyone know whether this is possible, and if so, where to find the relevant config details?

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

      Hi,

      How are you doing that on Linux ?
      Which project manager are you using ?

      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
      • D Offline
        D Offline
        drmhkelley
        wrote last edited by
        #3

        Don't understand your first question - I basically installed Qt started porting apps. Also don't know about which "project manager". Some projects are built using CMake, some using vanilla Make. I used the default QtCreator "Kit", but had to specify a few details like which compilers to use. Happy to provide any specific details, but there are lots of details and I haven't a clue which specific ones might be useful.

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote last edited by
          #4

          Why do you want Qt debug libs on Linux at all? It's just MS which needs separate debug and release libs. So on Linux simply compile as release or if you want as RelWithDebInfo

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          1
          • D Offline
            D Offline
            drmhkelley
            wrote last edited by
            #5

            Please correct me if this is incorrect, but my experience has led me to believe that the debug packages cannot be subjected to the same level of optimism as the release versions. so I always want actually to use the release versions - better performance. Unfortunately, despite my best efforts at testing, I occasionally find unexpected behaviors. It has proven quite convenient to have a debug version ready at hand to investigate a bit "under the hood".

            My existing linux install means I only have one version at any time - either fully optimized release version or debug version. And I always need to fully clean up and rebuild everything to switch between versions.

            Christian EhrlicherC 1 Reply Last reply
            0
            • JonBJ Online
              JonBJ Online
              JonB
              wrote last edited by JonB
              #6

              Maybe I am misunderstanding what it is that you build. Is it Qt itself, from sources, or is it your own apps linked with Qt libraries?

              If it is Qt itself I have never done that so cannot comment on where debug vs release might be placed in its build areas.

              But if it is your own apps built with Qt: certainly from Qt Creator, if that is your IDE, when you create a project you are set up initially with configurations for Debug, Release and some others. And these build into their own separate subdirectories, so do not interfere with each other.

              Screenshot 2026-07-09 080244.png

              The Build directory path changes at the end as you change the configuration type.

              Is that not what you are talking about?

              1 Reply Last reply
              0
              • D drmhkelley

                Please correct me if this is incorrect, but my experience has led me to believe that the debug packages cannot be subjected to the same level of optimism as the release versions. so I always want actually to use the release versions - better performance. Unfortunately, despite my best efforts at testing, I occasionally find unexpected behaviors. It has proven quite convenient to have a debug version ready at hand to investigate a bit "under the hood".

                My existing linux install means I only have one version at any time - either fully optimized release version or debug version. And I always need to fully clean up and rebuild everything to switch between versions.

                Christian EhrlicherC Offline
                Christian EhrlicherC Offline
                Christian Ehrlicher
                Lifetime Qt Champion
                wrote last edited by
                #7

                @drmhkelley said in Qt6.11.1 / Ubuntu(latest), both debug and release are built on top of each other in same folder:

                My existing linux install means I only have one version at any time

                Simply install/compile in two different directories

                either fully optimized release version or debug version.

                No, read my post above

                And I always need to fully clean up and rebuild everything to switch between versions.

                No, use different build directories if you really need a Qt debug only build for whatever reason.

                Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                Visit the Qt Academy at https://academy.qt.io/catalog

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  drmhkelley
                  wrote last edited by
                  #8

                  Thank you JonB and Christian Ehrlicher. I am travelling at the moment and do not have access to my linux box until I return to provide a bit more explicit detail about settings. JonB, I installed the binary Qt package and am building my own apps. What you suggest is precisely what I am trying to accomplish. To both, I have tried to duplicate on the linux system the settings on I have on the Windows platforms. I have set them to specify separate debug/release folders. Unfortunately, that is not what actually happens.
                  i presume that either 1) there is some setting[s] somewhere that I have not yet found and corrected that leads to the observed behavior or 2) the version of QtCreator delivered for Ubuntu is sufficiently different from that delivered with Windows to cause the problem. I am looking for an appropriately detailed description reference/tutorial/example of the part of QtCreator to figure out where the problem. everything I have is rather (putting it politely) terse, vague, and superficial.

                  JonBJ SGaistS 2 Replies Last reply
                  0
                  • D drmhkelley

                    Thank you JonB and Christian Ehrlicher. I am travelling at the moment and do not have access to my linux box until I return to provide a bit more explicit detail about settings. JonB, I installed the binary Qt package and am building my own apps. What you suggest is precisely what I am trying to accomplish. To both, I have tried to duplicate on the linux system the settings on I have on the Windows platforms. I have set them to specify separate debug/release folders. Unfortunately, that is not what actually happens.
                    i presume that either 1) there is some setting[s] somewhere that I have not yet found and corrected that leads to the observed behavior or 2) the version of QtCreator delivered for Ubuntu is sufficiently different from that delivered with Windows to cause the problem. I am looking for an appropriately detailed description reference/tutorial/example of the part of QtCreator to figure out where the problem. everything I have is rather (putting it politely) terse, vague, and superficial.

                    JonBJ Online
                    JonBJ Online
                    JonB
                    wrote last edited by
                    #9

                    @drmhkelley
                    It comes "out of the box" the way you want, separate directories for each configuration build. So you have presumably done something to alter that. When you return it should be easy enough to see in your setup, like the Build Settings screen I showed.

                    1 Reply Last reply
                    0
                    • D drmhkelley

                      Thank you JonB and Christian Ehrlicher. I am travelling at the moment and do not have access to my linux box until I return to provide a bit more explicit detail about settings. JonB, I installed the binary Qt package and am building my own apps. What you suggest is precisely what I am trying to accomplish. To both, I have tried to duplicate on the linux system the settings on I have on the Windows platforms. I have set them to specify separate debug/release folders. Unfortunately, that is not what actually happens.
                      i presume that either 1) there is some setting[s] somewhere that I have not yet found and corrected that leads to the observed behavior or 2) the version of QtCreator delivered for Ubuntu is sufficiently different from that delivered with Windows to cause the problem. I am looking for an appropriately detailed description reference/tutorial/example of the part of QtCreator to figure out where the problem. everything I have is rather (putting it politely) terse, vague, and superficial.

                      SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote last edited by
                      #10

                      @drmhkelley hi,
                      Check that you did not disable Shadow builds in Qt Creator.

                      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

                      • Login

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