The versionAtLeast() qmake function you are using does not exist before Qt 5.10, which explains the "not recognized test function" message out of Qt 5.9. Something like this should work under any version of Qt 5
equals(QT_MAJOR_VERSION, 5):lessThan(QT_MINOR_VERSION, 9) {
message("Cannot use Qt $${QT_VERSION}")
error("Use Qt 5.9 or newer")
}
equals(QT_MAJOR_VERSION, 5):lessThan(QT_MINOR_VERSION, 9) {
message("Cannot use Qt $${QT_VERSION}")
error("Use Qt 5.9 or newer")
}
To copy to clipboard, switch view to plain text mode
I am focusing on the Linux environment (do not have a Mac)
You explicitly install most of Qt from a PPA that installs it under /opt/qt512 (qt512base qt512tools qt512serialport qt512svg qt512multimedia qt512connectivity qt512webengine qt512charts-no-lgpl qt512networkauth-no-lgpl qt512translations)
The PPA page advises:
Source /opt/qt512/bin/qt512-env.sh to set the correct environment.
I suspect if you arranged this before you called qmake you would have Qt 5.12
The Qwt libraries you install are from the Ubuntu repository (libqwt-qt5-dev libqwt-qt5-6), and these install into locations for the generic system Qt version. They are probably responsible for pulling in enough of Qt5.9 to satisfy qwt (you see this in the log file). The feature file installed by this version (i.e. qwt.prf) will not be visible in the Qt 5.12 install
As I see it, you have two options:
1. Use the Ubuntu system Qt, Qt Charts, Qt Web Engine and Qwt and build using Qt 5.9
2. Use the PPA Qt 5.12, which includes everything except Qwt, and work out how to build Qwt and install for that version of Qt in the GitHub environment.
Bookmarks