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. How do I make qmake files portable?
QtWS25 Last Chance

How do I make qmake files portable?

Scheduled Pinned Locked Moved Qt Creator and other tools
qmake makefile
4 Posts 3 Posters 1.8k 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.
  • C Offline
    C Offline
    cbruner
    wrote on 28 May 2015, 18:31 last edited by
    #1

    I have a cli program that I want to build on older machines (that don't have qt installed). My main development machine has QT and I use qt-creator to do most of my work, however when going to these older machines and running make, the makefile that is generated by qmake expects qmake to be available. These machines are limited, so I don't want to install qt on them. I just want a unix style makefile that doesn't expect qmake to be present.

    How do I make qmake files portable?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      t3685
      wrote on 28 May 2015, 19:45 last edited by
      #2

      Hi,

      How are you going to compile your Qt applications without having Qt installed? If you are using Qt Creator just as an IDE I believe you need to choose the appropriate project type in "New Project" wizard.

      Greetings,

      t3685

      C 1 Reply Last reply 29 May 2015, 13:59
      0
      • T t3685
        28 May 2015, 19:45

        Hi,

        How are you going to compile your Qt applications without having Qt installed? If you are using Qt Creator just as an IDE I believe you need to choose the appropriate project type in "New Project" wizard.

        Greetings,

        t3685

        C Offline
        C Offline
        cbruner
        wrote on 29 May 2015, 13:59 last edited by
        #3

        @t3685 I'm only using qt creator as an ide. The project type is console, and in my .pro file has
        CONFIG += console
        CONFIG -= app_bundle
        CONFIG -= qt

        So the project is configured as non-qt. The problem is that I can make the project under QT using qmake, but moving to a different machine that doesn't have qt won't compile because the make file expects qmake to be available.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mcosta
          wrote on 29 May 2015, 14:05 last edited by
          #4

          Hi and welcome to devnet,

          your project uses Qt to build so you need it.
          In your case I suggest to move to CMake (but still you need to install it on the build machines)

          Once your problem is solved don't forget to:

          • Mark the thread as SOLVED using the Topic Tool menu
          • Vote up the answer(s) that helped you to solve the issue

          You can embed images using (http://imgur.com/) or (http://postimage.org/)

          1 Reply Last reply
          0

          1/4

          28 May 2015, 18:31

          • Login

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