Results 1 to 10 of 10

Thread: Multiple destination target

  1. #1
    Join Date
    Mar 2007
    Posts
    29
    Thanks
    2

    Default Multiple destination target

    Hi all,
    I need that on the end of compiling the target should be copied on multiple destination paths. May I specify it in .pro file?

    I use

    target.path = $DESTDIR
    INSTALLS += targer

    for specify destination dir.

    I've tried to specify multiple destination paths in target.path variable but it doesn't work.

    Any idea?
    Thanks,
    Michele De Candia

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Multiple destination target

    I don't know if this is possible, and I would be surprised if it was.
    What do you need that for?
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Multiple destination target

    Why don't you make a script for each platform on which you plan running your app?

  4. #4
    Join Date
    Mar 2007
    Posts
    29
    Thanks
    2

    Default Re: Multiple destination target

    Hi need to distribute the target executable on more machines by nfs shared partitions and the idea is to make it by "make install"

  5. #5
    Join Date
    Mar 2007
    Posts
    29
    Thanks
    2

    Default Re: Multiple destination target

    What about if I need to execute some batch command at the end of install process and I want to do that into "make install" command?

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

    Default Re: Multiple destination target

    I use something like this to perform a regular install:

    INSTALL_SPECS += wwwidgets.prf
    mkspecs.files = $$INSTALL_SPECS
    mkspecs.path = $$[QT_INSTALL_DATA]/mkspecs/features
    INSTALLS += mkspecs
    I think that you can use the ".command" property to issue the command to be executed. I'm not sure of that though, but it's worth to try. If not, then simply provide multiple install entries, possibly using some kind of stencil.

  7. #7
    Join Date
    Mar 2007
    Posts
    29
    Thanks
    2

    Default Re: Multiple destination target

    Quote Originally Posted by wysota View Post
    I use something like this to perform a regular install:

    INSTALL_SPECS += wwwidgets.prf
    mkspecs.files = $$INSTALL_SPECS
    mkspecs.path = $$[QT_INSTALL_DATA]/mkspecs/features
    INSTALLS += mkspecs
    I think that you can use the ".command" property to issue the command to be executed. I'm not sure of that though, but it's worth to try. If not, then simply provide multiple install entries, possibly using some kind of stencil.
    I can't find documentation about ".command" property . Where I can fid it?

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

    Default Re: Multiple destination target

    It might not be documented. First try if it works at all, because it might not. It holds the command to execute. Usually it's used to define external compilers, but there is a chance install targets are implemented as such as well.

  9. #9
    Join Date
    Mar 2007
    Posts
    29
    Thanks
    2

    Default Re: Multiple destination target

    On which variable I may try .command property?

  10. #10
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Multiple destination target

    On an install target.
    J-P Nurmi

Similar Threads

  1. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21
  2. Multiple target patterns in Makefile
    By mea36 in forum Newbie
    Replies: 12
    Last Post: 15th November 2006, 07:47
  3. Qtopia host side development environment for ARM target.
    By hvreddy1110 in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 11th October 2006, 15:05
  4. how to corss compile for windows in Linux
    By safknw in forum Qt Programming
    Replies: 24
    Last Post: 13th May 2006, 05:23

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.