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. how to build debug using commandline on macos
Forum Updated to NodeBB v4.3 + New Features

how to build debug using commandline on macos

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 148 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.
  • O Offline
    O Offline
    OtisLin
    wrote on last edited by
    #1

    I want use command to build project on terminal.
    I using qmake.exe, and make. but the output always release.
    how to change to debug?

    declare qmakePath=Qt/5.5/clang_64/bin/qmake
    declare proFilePath=/Users/Work/Project/Project.pro
    
    declare ReleaseOutput=/Users/Work/Build_Release
    mkdir -p ${ReleaseOutput}
    cd ${ReleaseOutput}
    ${qmakePath} ${proFilePath}
    make
    
    declare DebugOutput=/Users/Work/Build_Debug
    mkdir -p ${DebugOutput}
    cd ${DebugOutput}
    qmake -config debug
    ${qmakePath} ${proFilePath}
    make
    
    1 Reply Last reply
    0
    • O Offline
      O Offline
      OtisLin
      wrote on last edited by
      #2

      I got it!!!!!

      ${qmakePath} "CONFIG+=debug" ${proFilePath}
      
      1 Reply Last reply
      0

      • Login

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