Select Qt Lib from command line for compile
-
I have 2 versions (Kits) of the Qt libs installed (5.9.9. and 5.15.2). I pick between them in Qt Creator (bottom left button) and that works fine while developing in Qt Creator. (I'm working in Linux)
When I build my product for release I do so from the command line (using bash script which calls qmake). How do I tell QMAKE which kit to use? I suspect qmake is using the wrong kit.
-
Hi,
You don't, you call the qmake executable that is provided with the Qt version you want to use.
That's what Qt Creator does as well.
-
You have to set env variables for QT_DIR/bin qmake and its QT_DIR/libs in order to build from command line. They are set in Qt Creator as well.
The commands can be found on compile output tab of Qt creator when run qmake is clicked in the project or in the Makefile which is located in the build folder -
Hi,
You don't, you call the qmake executable that is provided with the Qt version you want to use.
That's what Qt Creator does as well.