Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator: generate Makefile for non-Qt C++ projects?
Forum Updated to NodeBB v4.3 + New Features

Qt Creator: generate Makefile for non-Qt C++ projects?

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
2 Posts 1 Posters 2.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.
  • R Offline
    R Offline
    Robert Hairgrove
    wrote on 8 Oct 2016, 13:25 last edited by
    #1

    I love using Qt Creator not only for creating Qt projects, but also for non-Qt projects using generic C++ code. It is so much more intuitive for C++ than just about anything I have ever used before.

    When I deploy the code which needs to be compiled on a different machine where Qt is not installed but only g++ is available, I'd like to generate a makefile for that if possible (currently a CGI script for Apache2 running on Linux Debian, very similar to my Ubuntu development environment but probably too risky to consider delivering a pre-built binary). Browsing the qmake manual shows me a few variables such as MAKEFILE and QMAKE_MAKEFILE but also suggests not to change them since qmake handles it internally.

    I could write the Makefile manually, but ... Qt Creator does everything else so well ... anyway, it was just a thought ... or perhaps there is a way? The current project is fairly simple with no shared libraries to worry about, just a dozen or so source files in a src folder and header files in a separate include folder.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Robert Hairgrove
      wrote on 8 Oct 2016, 13:34 last edited by
      #2

      Well, I just realized that I can run qmake from a terminal and it will generate a Makefile -- it's the default behavior. :)

      1 Reply Last reply
      2

      1/2

      8 Oct 2016, 13:25

      • Login

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