Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Compilation Process in Qt Creator using command prompt.
Qt 6.11 is out! See what's new in the release blog

Compilation Process in Qt Creator using command prompt.

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 3 Posters 1.0k 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.
  • S Offline
    S Offline
    Sharathkumar T
    wrote on last edited by
    #1

    Hi, I am trying to run my qt project(Qt creator IDE ) on my windows system using command prompt. I want to run my project using command line execution to understand the qt compilation process.

    I have tried running my project, .pro file using qmake, so makefile and stash files are generated.
    but, I am failing to run next command, the following attached screenshot to generate build path and how executables are generated.

    I have my projects in E drive and I am running them in the same directory and I am able to get the make and stash file, then later for the second step of process to give myClass.Debug file to the compiler so I am trying to run them on mingw, C path directory providing my debug file path and running qmake.

    Screenshot (103).png Screenshot (102).png

    jsulmJ 1 Reply Last reply
    0
    • S Sharathkumar T

      Hi, I am trying to run my qt project(Qt creator IDE ) on my windows system using command prompt. I want to run my project using command line execution to understand the qt compilation process.

      I have tried running my project, .pro file using qmake, so makefile and stash files are generated.
      but, I am failing to run next command, the following attached screenshot to generate build path and how executables are generated.

      I have my projects in E drive and I am running them in the same directory and I am able to get the make and stash file, then later for the second step of process to give myClass.Debug file to the compiler so I am trying to run them on mingw, C path directory providing my debug file path and running qmake.

      Screenshot (103).png Screenshot (102).png

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by jsulm
      #2

      @Sharathkumar-T After running qmake you simply run make or mingw32-make.exe. I don't know what you're trying to achieve with "qmake.exe E:\ExampleCode..." - this does not make sense.
      Also, on windows you need to add .exe suffix to make.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      D 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Sharathkumar-T After running qmake you simply run make or mingw32-make.exe. I don't know what you're trying to achieve with "qmake.exe E:\ExampleCode..." - this does not make sense.
        Also, on windows you need to add .exe suffix to make.

        D Offline
        D Offline
        domenicpetit
        wrote on last edited by
        #3

        @jsulm said in Compilation Process in Qt Creator using command prompt.:

        @Sharathkumar-T After running qmake you simply run make or mingw32-make.exe. I don't know what you're trying to achieve with "qmake.exe E:\ExampleCode..." - this does not make sense.
        Also, on windows you need to add .exe suffix to make.

        Thanks a lot for your advice

        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