Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Specifying the build directory when compiling through command line

Specifying the build directory when compiling through command line

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 3 Posters 5.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lolo67
    wrote on last edited by
    #1

    When the application is compiled through Qt Creator, the object files are generated in the directory (build-%{CurrentProject:Name}-%{CurrentKit:FileSystemName}-%{CurrentBuild:Name}) speicified in Qt Creator -> Tools -> Options -> Build and Run

    I am looking for the qmake/jom opion or qmake variable to speciffy the build directory when the application is compiled through command line, f.e. with the following commands:

    • qmake.exe pam.pro -spec win32-msvc2015 "CONFIG+=debug" "CONFIG+=qml_debug"
    • C:\Qt\Tools\QtCreator\bin\jom.exe qmake_all
    • C:\Qt\Tools\QtCreator\bin\jom.exe
    mrjjM 1 Reply Last reply
    0
    • L Lolo67

      When the application is compiled through Qt Creator, the object files are generated in the directory (build-%{CurrentProject:Name}-%{CurrentKit:FileSystemName}-%{CurrentBuild:Name}) speicified in Qt Creator -> Tools -> Options -> Build and Run

      I am looking for the qmake/jom opion or qmake variable to speciffy the build directory when the application is compiled through command line, f.e. with the following commands:

      • qmake.exe pam.pro -spec win32-msvc2015 "CONFIG+=debug" "CONFIG+=qml_debug"
      • C:\Qt\Tools\QtCreator\bin\jom.exe qmake_all
      • C:\Qt\Tools\QtCreator\bin\jom.exe
      mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Lolo67

      Hi
      i think you can do it via the .pro file
      http://stackoverflow.com/questions/2580934/how-to-specify-different-debug-release-output-directories-in-qmake-pro-file

      1 Reply Last reply
      2
      • VRoninV Offline
        VRoninV Offline
        VRonin
        wrote on last edited by
        #3

        there is no particular parameter, just create the folder, move to it and then call qmake with the path to the .pro file. in your case:

        mkdir build
        cd build
        qmake.exe ..\pam.pro -spec win32-msvc2015 "CONFIG+=debug" "CONFIG+=qml_debug"
        C:\Qt\Tools\QtCreator\bin\jom.exe qmake_all
        C:\Qt\Tools\QtCreator\bin\jom.exe
        

        "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
        ~Napoleon Bonaparte

        On a crusade to banish setIndexWidget() from the holy land of Qt

        1 Reply Last reply
        2

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved