Results 1 to 2 of 2

Thread: How to run shell command after compile finished in pro file?

  1. #1
    Join Date
    Jun 2009
    Posts
    74
    Thanks
    23
    Thanked 2 Times in 2 Posts

    Question How to run shell command after compile finished in pro file?

    Hi,

    Suppose I want to execute chmod command or execute the output binary file, or do some other operations after compile finished.

    What shall I do to the pro file?

    Thanks.

  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: How to run shell command after compile finished in pro file?

    AFAIK you can't, since the pro file is a project definition file and it is use the qmake to generate make files - so why should it start some programs after generating make files?
    What you can do is create a shell script that calls qmake/make, and afterward call anything else you wish.
    ==========================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.

Similar Threads

  1. How to compile from command line?
    By tonnot in forum Newbie
    Replies: 6
    Last Post: 15th March 2011, 14:55
  2. Replies: 0
    Last Post: 17th August 2010, 12:37
  3. Shell command from Qt 4.5.2 by QProcess
    By Rajeshsan in forum Newbie
    Replies: 5
    Last Post: 21st December 2009, 16:03
  4. Replies: 2
    Last Post: 28th June 2009, 12:39
  5. running shell command from C++ code problem
    By alex chpenst in forum Qt Programming
    Replies: 4
    Last Post: 31st July 2008, 10:41

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