Results 1 to 2 of 2

Thread: how do i configure a .pro file to generate make files with different permissions?

  1. #1
    Join Date
    Oct 2011
    Posts
    7
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default how do i configure a .pro file to generate make files with different permissions?

    qmake seem to default to generating makefiles that end up installing binaries with 755 permissions.

    I am creating an suid program and i want one of the executables to be installed with 4755 permission. Just this one executable out of two my projects creates.

    What line should i add to .pro file to make this happen? I have looked in qt documentation pages and i did not find any mention of this ability

  2. #2
    Join Date
    Jul 2010
    Posts
    53
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how do i configure a .pro file to generate make files with different permissions?

    If you are using QtCreator you can add custom build step(Projects pannel -> build window -> Add Build Step -> Custom Process Step) to do that.

    Example:

    Qt Code:
    1. Command: chmod
    2. Working directory: %{buildDir}
    3. Arguments: 4755 myapp
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. How to make my changes to configure file take effect?
    By jack_liu in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 16th September 2011, 09:24
  2. Replies: 4
    Last Post: 18th March 2011, 05:17
  3. Replies: 1
    Last Post: 27th September 2008, 20:12
  4. Replies: 1
    Last Post: 20th June 2008, 18:43
  5. make--dosn't generate an .exe file
    By Nora in forum Installation and Deployment
    Replies: 11
    Last Post: 12th November 2007, 01:26

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.