qt


Qt 5: Debug\release and Release\debug directories


I use Qt 5.0.1 with Windows SDK 7.1. If I create a new application, the Kits page of the New app wizard offers to create Debug and Release directories:
Debug: C:\Projects\MyProject-build-Desktop_Qt_5_0_1_MSVC2010_32bit-Debug
Release: C:\Projects\MyProject-build-Desktop_Qt_5_0_1_MSVC2010_32bit-Release
1) If I compile the app in Debug mode, Qt Creator creates two directories:
C:\Projects\MyProject-build-Desktop_Qt_5_0_1_MSVC2010_32bit-Debug\debug
C:\Projects\MyProject-build-Desktop_Qt_5_0_1_MSVC2010_32bit-Debug\release
The executable will be created in the former, C:\...-Debug\debug.
2) If I compile the app in Release mode, I will get another pair of directories:
C:\Projects\MyProject-build-Desktop_Qt_5_0_1_MSVC2010_32bit-Release\debug
C:\Projects\MyProject-build-Desktop_Qt_5_0_1_MSVC2010_32bit-Release\release
In this case, the executable will be placed in the latter, C:\...-Release\release.
What is the logic behind this nested directory structure? When does the IDE use the directories C:\...-Debug\release and C:\...-Release\debug?
UPDATE
#phyatt pointed out that turning off shadow building in project settings eliminates the problem. The debug and release directories will be generated inside the project's source directory:
C:\Projects\MyProject\debug
C:\Projects\MyProject\release
Unfortunately, this doesn't answer the above question. Moreover, now the project settings page displays a warning:
An incomplete build exists in C:\Projects\MyProject, which will be
overwritten.
If you are only using a single compiler, I would go into the Projects tab > Build > General > Shadow Build, and uncheck Shadow Build.
This will simplify the configuration and folder structure, and may fix the bug for you.
Maybe go in and do a build clean for good measure.
Hope that helps.

Related Links

Connect to a SLOT in Qt
Custom drawing of a QSlider (Qt)
Warning while building project using Qt 5.1 on OSX
Qlabel and Qtimer (need to make image blink)
Range of QVector
how to pass qobject as argument from signal to slot in qt connect
setViewportMargins() and “locked” rows and columns
Unable to connect signal to slot in another class
TCP network communication security risks
QT getting the screen resolution without the extended monitor
Gtk skip_taskbar_hint (seen in Glade-ui-Designer) äquivalent in Qt
change text in another class by button
Use boost build bjam for building Qt stuff
I want to use gdb with my Qt project..But I received “Permission denied” message?
qmake: could not find a Qt installation of '' - Setting up qmake?
qt file menu with vertical separator to make recent column

Categories

HOME
python-2.7
opengl
svn
vagrant
facebook-messenger
haproxy
tcsh
hdfs
apk
vsts-build
android-emulator
yql
fogbugz
ag-grid
firebase-database
native-base
static-analysis
selection
sap-fiori
csrf
fresco
twisted
bnf
rpmbuild
gravity
bsd
backtracking
kaggle
websphere-portal
software-packaging
dragula
clipboard
android-service
microprocessors
winsock
premake
windowsiot
publishing
fotorama
counting
serversocket
winrm
autoencoder
cordys-opentext
jade4j
djcelery
fastlane
gitolite
netapp
slideshow
pyttsx
optionaldataexception
notesview
virtual-memory
beeline
sonicmq
openstack-glance
punctuation
google-news
email-forwarding
1010
apache-modules
mechanicalturk
finder
oid
petsc
yargs
java-2d
maximize
apple-configurator
mathnet
utf-16
gulp-uglify
enunciate
helm
opencyc
asp.net-web-api-helppages
screen-orientation
mixins
featuretoggle
apple
gql
scala-swing
jolie
cakephp-2.2
flurry-analytics
multivariate-testing
nidaqmx
lumia-imaging-sdk
maven-central
screwturn
redpitaya
ivalueconverter
property-injection
iosched
code39
spring-security-acl
apache-shindig
rautomation
insertonsubmit
unicoins
prototypal-inheritance
netstream
yuidoc
will-paginate
server-variables
nosetests
upshot
simile
git-log
hungarian-notation
solandra
android-2.1-eclair
.net-services
getimagesize
suggestbox
word-automation
webclient.uploaddata

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile