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. Having to rebuild after switching build configurations.
Forum Updated to NodeBB v4.3 + New Features

Having to rebuild after switching build configurations.

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 2 Posters 1.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.
  • J Offline
    J Offline
    Jaeger Bomb
    wrote on last edited by
    #1

    Hi all,

    I have been using Qt Creator for some time now, and it has been doing a great job of allowing me to make all kinds of cool applications. I do have one question, however. If I build a project in release mode, and then switch to debug and simply build again, it doesn't seem to recompile the project. I managed to prove this by having a project that in release mode would build a library file named 'xxx' and for debug it would be called 'xxx_d'. I switched to release, and it compiled fine. I then switched to debug, and hit "build project", and sure enough, the xxx_d file was created. However, it was exactly the same as the xxx file (file sizes were identical, no debugging info). It was not until I hit "rebuild project", under debug, that the debugging information was including and the library was then much larger. Is there an option that I can select to ensure that the projects will be rebuilt after switching cofigurations? The workaround is fine, but I thought maybe I was missing something.

    Thanks!

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

      That is true: If you build in source then you need to make sure that the files are all gone when rebuilding. It is not trivial to decide for the IDE when you need to clean files and when not (in general you do not want that since it increases build times a lot when you clean all the object files), so Creator does not try.

      For this reason we encourage the use of shadow build directories whenever possible: Those allow to keep the different build configurations separate from each other. That is the only way we see to really make working with different build configurations safe.

      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