Results 1 to 8 of 8

Thread: Shadow build directory relative to the project file?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Shadow build directory relative to the project file?

    Sure it's possible. Qt Creator is Open Source - feel free to change it. Adding support for using environment variables in the proper place or even a full-blown per-platform configuration should be pretty easy.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. #2
    Join Date
    Jul 2009
    Location
    Italy, Pieve Ligure (GE)
    Posts
    55
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    7
    Thanked 6 Times in 6 Posts

    Default Re: Shadow build directory relative to the project file?

    Quote Originally Posted by wysota View Post
    Qt Creator is Open Source - feel free to change it. Adding support for using environment variables in the proper place or even a full-blown per-platform configuration should be pretty easy.
    This is definitely a possibility, once I have finished my current projects and met a few deadlines and once I have got familiarized with the few code lines of its source code...

    Seriously, thanks for your reply: different perspective and attitudes are always an enrichment, particularly when they come from a far greater experience than I have.

    M.

  3. #3
    Join Date
    Nov 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    2

    Default Re: Shadow build directory relative to the project file?

    I had the same problem, and although 'Guru' wysota is - of course - right, I did find a *workable* solution for a newbie (like me).

    You can edit the .pro file, and add the following lines:

    OBJECTS_DIR=$$builddir
    DESTDIR=$$builddir

    I tested this with a lib build. This will make sure that the binaries will go into the ./release and ./debug directories respectively (if nothing else edited).

    Another option is to set these variables conditionally in the .pro file:
    win32: { DESTDIR = dir1 }
    linux: { DESTDIR = dir1 }
    ...

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Shadow build directory relative to the project file?

    Ok, but your solution has nothing to do with shadow build.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Nov 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    2

    Default Re: Shadow build directory relative to the project file?

    You are right - and it doesn't even work (the first 'solution' that is). I messed up my settings so that it seemed to work. Sorry about that...

Similar Threads

  1. Replies: 3
    Last Post: 29th June 2007, 08:32
  2. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21
  3. QApplication: No such file or directory
    By Dolinski in forum Newbie
    Replies: 4
    Last Post: 24th May 2007, 05:13
  4. .h file for each form in QT 3.3.5 project??
    By darpan in forum Qt Programming
    Replies: 1
    Last Post: 23rd March 2006, 11:59
  5. create file in another directory
    By raphaelf in forum Qt Programming
    Replies: 3
    Last Post: 16th February 2006, 10:04

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.