8

I'm trying to change the build output directory in QT Creator (i.e. instead of outputting to ./debug, I want to output to ../../bin/debug). I've tried to edit the build output directory via the Projects mode, but it's read only. Looking at the .pro file doesn't seem to have anything obvious for me to edit.

4

2 Answers 2

9

I was having a permissions problem and Qt was unable to run the compiled program in my windows partition so I had to change the build path to run in Linux, to do this I edited the {projectName}.pro.user located in the project folder and changed the following variable(s) which may vary depending on you project settings):

<value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/new/path</value>

this value will belong to one specific target (release or debug) just see where tag belongs to.

Sign up to request clarification or add additional context in comments.

1 Comment

Many thanks, I was having hell! First off, finding where the heck the built binaries ended up, second off, figuring out how to change the location (they were getting stuck in an ugly long folder in my $HOME)
5

You can also do it directly from inside QtCreator. Go to Projects | Build & Run | Build | General | Build Directory. When you enter a new directory path, the text will turn red - indicating that the directory the as yet unmade output build will be in does not exist yet. When you build the project, however, it will turn black.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.