How do I make qmake files portable?
-
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?
-
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
-
@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 -= qtSo 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.
-
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)
1/4