Using QtCreator on Ubuntu
Hello, i'd been using Qt on Windows XP and decided to port my project to Ubuntu, using QtCreator.
There was very little work involved, but I did get a surprise that all the object files were being created in the same directory as the source files as well as the executable.
All of this despite the fact that if I right-clicked on the project icon and looked at the item "Define the compilation configuration" I had
"Debug" as I had in Windows.
I had expected the object and executable to be created in the Debug subdirectory.
Re: Using QtCreator on Ubuntu
On unix systems the compilation is traditionally done in the same directory as the source files (or to be more precise in the "current" directory) and I'm not speaking about Qt but programming in general. If you wish to override this behaviour, add appropriate entries about the DESTDIR and optionally a couple of other variables to your project file.
Re: Using QtCreator on Ubuntu
Thanks,
Looking into the manual I adapted an example to do this:
CONFIG += debug_and_release
CONFIG(debug, debug|release) {
TARGET = myApp
DESTDIR = debug
} else {
TARGET = myApp
DESTDIR = release
}