Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt - 'Shadow Building'?

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.

like image 242
xx77aBs Avatar asked Sep 10 '11 17:09

xx77aBs


People also ask

What is shadow build in Qt?

Shadow building means building a project in a separate directory, the build directory. The build directory is different from the source directory. One of the benefits of shadow building is that it keeps your source directory clean, which makes it faster to switch between build configurations.

What is Qt build?

Qt Creator can open projects that use the Autotools build system. You can build and run the projects directly from Qt Creator. Setting Up a Generic Project. Qt Creator supports generic projects, so you can import existing projects that do not use qmake or CMake.

How do I turn off shadow build in Qt?

In the build settings pane (the larger portion of the screen) there's a checkbox next to "Shadow build" (there's separate option depending on the debug/release configuration).

What is a kit in Qt?

Each kit consists of a set of values that define one environment, such as a device, compiler, Qt version, and debugger command to use, and some metadata, such as an icon and a name for the kit. Once you have defined kits, you can select them to build and run projects.


1 Answers

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.

like image 155
Mateen Ulhaq Avatar answered Sep 27 '22 23:09

Mateen Ulhaq