Qt Creator 2.0 Run Settings: wrong executable
Qt Creator 2.0 is coming up with the wrong executable in a QMake project with subdirs. The top-level project file (neurolab_all.pro):
[INDENT]TEMPLATE = subdirs
SUBDIRS = griditems neurolab neurogui neurolib automata thirdparty[/INDENT]
All the sub-projects are library projects except for neurolab, whose project file is:
[INDENT]QT += gui
TARGET = neurolab
TEMPLATE = app
SOURCES += main.cpp
release { BUILDDIR=release }
debug { BUILDDIR=debug }
DESTDIR = $$OUT_PWD/../$$BUILDDIR
TEMPDIR = $$OUT_PWD/$$BUILDDIR
OBJECTS_DIR = $$TEMPDIR
MOC_DIR = $$TEMPDIR
UI_DIR = $$TEMPDIR
RCC_DIR = $$TEMPDIR[/INDENT]
In the Run Settings for the project, Qt Creator tries to have
[INDENT]neurolab_all-build-desktop/neurolab/debug/neurolab.exe[/INDENT]
for the executable, instead of the correct
[INDENT]neurolab_all-build-desktop/debug/neurolab.exe[/INDENT]
Due to the [B]utterly brain-dead[/B] decision for Qt Creator to put absolute path names in the .pro.user files, I cannot put the .user files in source control. I want a system that works upon checking out the code without a lot of fiddling.
Qt itself is a great product, which I have been using with great success for over 10 years. Qt Creator, on the other hand, is getting more annoying and less functional with each release.
Re: Qt Creator 2.0 Run Settings: wrong executable
I have the exact same problem so I am unable to use Qt Creator.
(Posted afew days ago here: [url]http://discussion.forum.nokia.com/forum/showthread.php?204119-Qt-Creator-2.0-project-settings-problem[/url])
Re: Qt Creator 2.0 Run Settings: wrong executable
Try with the following pro file:
[CODE]
QT += gui
TARGET = neurolab
TEMPLATE = app
SOURCES += main.cpp
[/CODE]
Don't try to do more. Qt Creator automatically does shadow builds in 2.0, which is why it probably breaks for you. Leave it to Creators build configurations to do the right thing.
Also stuff like
[QUOTE]
release { BUILDDIR=release }
debug { BUILDDIR=debug }
[/QUOTE]
is simply wrong. The proper way is to do this:
[CODE]
CONFIG( debug, debug|release ) {
# debug
} else {
# release
}
[/CODE]
But before messing with this, try the basic example first