Compile a Qt project from command Line

Compile a Qt project from command Line

Asked on January 3, 2019 in Qt.
Add Comment


  • 3 Answer(s)

    Qt project from command Line takes the first two qt creator:

    1. By creating the build output directory.
    2.  Build the CD output directory (KEY STEP).
    3. Make a Call qmake  assign  the .pro file.
    4.  make a call.

    To  build the  directory first and then call the  qmake etc. And  to build  the  files already compiled it and  error to make them by  clean the build directory to execute different.

    Answered on January 3, 2019.
    Add Comment

    To initialize the window:

    • cd ~/your_project_folder/
    • The qmake -project
    • The qmake
    • To make
    Answered on January 3, 2019.
    Add Comment

    The actual project is  qmake -project  but it is wrong  then check the “qmake –help”:

    qmake -makefile
    make
    

    When it is a large project then make a  -j4  to easy.

     

    Answered on January 3, 2019.
    Add Comment


  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.