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 and run a Qt application from the command line?
Qt 6.11 is out! See what's new in the release blog

How to build and run a Qt application from the command line?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 798 Views 1 Watching
  • 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.
  • B Offline
    B Offline
    bloodviper9000
    wrote on last edited by
    #1

    I'm trying to create a simple Qt project. I have a .ui file, a .pro file , main.cpp file and various other files
    How can I run the project using a Terminal in Ubuntu?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      That should be enough:
      @
      cd path/to/the/project
      qmake
      make
      ./executableName
      @

      You can use -j flag with make to speed up compilation.

      (Z(:^

      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