Results 1 to 5 of 5

Thread: How to compile a project, with the same folder structure as the source code.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to compile a project, with the same folder structure as the source code.

    You can set DESTDIR to have the final build artifact in a different directory than where the build happens.

    E.g. in your Library_1.pro you could try
    Qt Code:
    1. DESDIR= ..
    2. # or
    3. DESTDIR = ../
    4. # or
    5. DESTDIR = $$PWD/..
    To copy to clipboard, switch view to plain text mode 

    Cheers,
    _

  2. #2
    Join Date
    Jan 2015
    Location
    Barquisimeto, Venezuela
    Posts
    24
    Thanks
    2
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Android

    Default Re: How to compile a project, with the same folder structure as the source code.

    Many thanks anda_skoa, with your guidance and rereading the qmake documentation now if I have managed to understand how the compilation process works for an end application.

    In effect with

    Qt Code:
    1. DESTDIR = ../path/where/we/want/our/library/or/binary/
    To copy to clipboard, switch view to plain text mode 

    Now everything is where I want.

    I hope this post will serve to anyone who has the same doubt as me.

    Thank you again, theme solved.

    I do not know how to put it solved in the title

Similar Threads

  1. QT Project source code
    By darpan in forum Qt Programming
    Replies: 3
    Last Post: 27th December 2012, 16:16
  2. How do I add a qt source code library to my project ?
    By Paulo Fernando Pimenta in forum Newbie
    Replies: 5
    Last Post: 14th January 2011, 21:33
  3. Replies: 0
    Last Post: 13th October 2010, 04:27
  4. Qt Creator How to make Creator be aware of the Qt source code project?
    By kartwall in forum Qt Tools
    Replies: 5
    Last Post: 27th September 2010, 08:39
  5. compile source code file
    By eva in forum Qt Programming
    Replies: 6
    Last Post: 16th March 2009, 11:15

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.