Results 1 to 4 of 4

Thread: qMake Command Line and .pro.user file

  1. #1
    Join Date
    Dec 2007
    Location
    London
    Posts
    206
    Thanks
    40
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default qMake Command Line and .pro.user file

    Hi,

    I need to write a batch script to compile a series of projects. Some settings like "deploy folder" are kept in .pro.user file. When i run qmake from command line, it ignores all these settings. How can I make "qmake" use the .pro.user file?

    Thanks...

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

    Default Re: qMake Command Line and .pro.user file

    qmake does not use .pro.user files. These are used exclusively by Qt Creator. If you want to do deployment using qmake then you should alter the .pro file by adding installation directives that use qmake syntax. These are described in the docs.
    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.


  3. #3
    Join Date
    Dec 2007
    Location
    London
    Posts
    206
    Thanks
    40
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default Re: qMake Command Line and .pro.user file

    Hi Wysota, ok thanks, i will add the directives into .pro file.But i couldnt see a parameter for "Build Directory" and "Shadow Build" in qmake variables. How can i set these options in .pro file

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

    Default Re: qMake Command Line and .pro.user file

    They are not required. The build directory is the directory you are in when invoking qmake (specifying the path to the .pro file). Shadow build is essentially the same as specifying build directory outside of source directory.
    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. The following user says thank you to wysota for this useful post:

    yagabey (9th March 2015)

Similar Threads

  1. qmake: how to supply multiple variables via command-line?
    By eyeofhell in forum Qt Programming
    Replies: 1
    Last Post: 6th July 2014, 02:58
  2. Replies: 0
    Last Post: 22nd December 2013, 22:11
  3. Where is the command line for qmake commands?
    By Rakula in forum Installation and Deployment
    Replies: 1
    Last Post: 21st October 2010, 10:53
  4. Replies: 2
    Last Post: 28th May 2010, 09:16
  5. Replies: 2
    Last Post: 28th June 2009, 12:39

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.