Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I change the build output directory in QT Creator?

Tags:

qt-creator

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.

like image 728
Nick Bolton Avatar asked May 31 '10 14:05

Nick Bolton


People also ask

How do I change the build directory in QT?

Also recently, newer versions of Qt have another little button on the right hand side of the "build directory" input field. It is has like a blue arrow on mine. Click it and you can view all the global build variables.

How do I change the build output directory in Visual Studio?

Right-click on the project node in Solution Explorer and select Properties. Expand the Build section, and select the Output subsection. Find the Base output path for C#, and type in the path to generate output to (absolute or relative to the root project directory), or choose Browse to browse to that folder instead.

How do you open a QT Creator?

Navigate to the project you wish to open in your file system, then just double-click on the . pro file (i.e. Warmup.pro ). This will open Qt Creator for you with this project.


1 Answers

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.

like image 95
Juan Melo Avatar answered Oct 23 '22 23:10

Juan Melo