[Qt-interest] qmake: Changing the destination directory of linker output

Jeroen Wijnhout jeroen.wijnhout at gmail.com
Sun Jul 12 19:54:54 CEST 2009


It is relatively straightforward, just set:
DESTDIR
and
OBJECTS_DIR

see http://doc.trolltech.com/4.5/qmake-variable-reference.html

If you want to change the output path of the moc and uic output as
well, you have to set
UI_DIR and MOC_DIR as well.

I have been doing this for a long time and it works well.

best,
Jeroen

On Sun, Jul 12, 2009 at 2:00 PM, Jeffrey
Brendecke<jwbrendecke at icanetix.com> wrote:
> Creating symbolic links of the project file and the sources into the external
> build directory and building from there is a viable alternative.
>
> However, in case it may be of use later, I would be interested if it is
> possible to configure qmake to change the target directory of linker output.
>
> ------------
> On Sunday 12 July 2009 13:29:58 Jeffrey Brendecke wrote:
>> Is it possible to configure a qmake project file to build from sources
>> without putting any linker output in the source tree?
>>
>> In my case, I am trying to build a shared library from sources on a CIFS
>> file share, and creating symbolic links to the generated shared library is
>> failing as the shared library is being built in with the sources on the
>> file share, where symbolic links are not supported.
>>
>> I can get all of the .o files to be compiled outside of the tree just file,
>> but not the output of the linker.
>>
>> I am using Qt 4.5.1 on Linux.
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>



More information about the Qt-interest-old mailing list