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. Custom Build Settings in Qt Creator
Qt 6.11 is out! See what's new in the release blog

Custom Build Settings in Qt Creator

Scheduled Pinned Locked Moved Qt Creator and other tools
3 Posts 3 Posters 2.7k 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.
  • C Offline
    C Offline
    Code_ReaQtor
    wrote on last edited by
    #1

    Greetings!

    As we always encounter in Qt Creator, the build settings for a certain version are separated into debug and release version, e.g. Qt 4.8.3 (mingw) Debug, Qt 4.8.3 (mingw) Release, Qt 4.8.3 (msvc2008) Debug,... etc. You can build your app in debug or release but you cannot do both at the same time.

    In qmake, you can do this "Config += debug_and_release" w/c builds both debug and release. e.g. a library project will produce mylib.dll and mylibd.dll

    In short I want to do the same thing in Qt Creator. Although there is a feature where you can clone a build setting, I can't configure/edit it in the way I want it to be.

    Somebody knows how to do this? Thanks in advance.

    Please visit my open-source projects at https://github.com/Code-ReaQtor.

    1 Reply Last reply
    0
    • JeroentjehomeJ Offline
      JeroentjehomeJ Offline
      Jeroentjehome
      wrote on last edited by
      #2

      Hi there, please move this post to the tools section!
      Greetz

      Greetz, Jeroen

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tobias.hunger
        wrote on last edited by
        #3

        The reason for not doing a debug and release build in Qt Creator is that it takes twice as long as a normal build. We consider it important to have as fast turn-around times as possible during development, so we try to keep compile times to the minimum.

        You are free to add another build configuration (or change an existing one) to do debug and release builds by changing the qmake step to do that. I think the simplest way to do so is to add "CONFIG+=debug_and_release" as an argument.

        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