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. [resolved] Debug or release or debug or release?
Forum Updated to NodeBB v4.3 + New Features

[resolved] Debug or release or debug or release?

Scheduled Pinned Locked Moved Qt Creator and other tools
7 Posts 3 Posters 3.1k 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
    ronM71
    wrote on last edited by
    #1

    Something I don't quite get. In my project file, I can have

    @CONFIG += release@

    or

    @CONFIG += debug@

    But then, in Qt-Creator, each new project comes with a "debug" or "release" targets. Is the definition in the ".Pro" file a master switch? what happens if I choose "config += debug" in the .pro file, but choose a "debug" output in the Qt-Creator gui?

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

      I'm not sure about build conf, but in terms of OBJECTS_DIR and DEST_DIR, .pro definition is superior to settings specified in .pro.user.

      (Z(:^

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andre
        wrote on last edited by
        #3

        For the build config, the setting in the .pro file overrules the one in set on the command line (that is what the QtCreator setting does; it modifies the commandline for QMake).

        1 Reply Last reply
        0
        • R Offline
          R Offline
          ronM71
          wrote on last edited by
          #4

          So If I remove the "CONFIG += debug" (or release) from the .pro file, it would just build for the target I specify in the Qt-Creator GUI?

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

            [quote author="ronM71" date="1313592168"]So If I remove the "CONFIG += debug" (or release) from the .pro file, it would just build for the target I specify in the Qt-Creator GUI?[/quote]

            yes.

            (Z(:^

            1 Reply Last reply
            0
            • R Offline
              R Offline
              ronM71
              wrote on last edited by
              #6

              excellent. thanks.

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

                If that's it, please add [Solved] to thread's subject :)

                (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