Qt - 'Shadow Building'?

QtBuild ProcessDesktop Application

Qt Problem Overview


I have a simple question - what is Shadow Building? I've seen it in Qt in Target Setup dialog, but don't know what it does or if I should use it.

It's also present in Projects tab, under General group.

Qt Solutions


Solution 1 - Qt

Shadow building is a technique used to build different Qt builds of the same version for different platforms/compilers/etc. Your compiled build is in a different directory, separate from the original Qt source directory.

I've created a shadow build for my MSVS2010 compiler. If I wanted to, I could create a new build for MinGW in a different build directory.

See the definition here, and more information about configuring your build here.

Solution 2 - Qt

Additional information for Mateen's answer.

> By default, Qt Creator builds projects in a separate directory from the source directory, as shadow builds. This keeps the files generated for each build and run kit separate. If you only build and run with a single kit, you can deselect the Shadow build checkbox.

https://doc.qt.io/qtcreator/creator-build-settings.html#qmake-build-configuration

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionxx77aBsView Question on Stackoverflow
Solution 1 - QtMateen UlhaqView Answer on Stackoverflow
Solution 2 - Qtli kiView Answer on Stackoverflow