[Qt-interest] qmake: how to find Qt libraries / Qt home directory? [SOLVED]

Oliver.Knoll at comit.ch Oliver.Knoll at comit.ch
Fri Jan 7 14:46:27 CET 2011


On 2011-01-07 ITS-CMT-SL-SFR-FIN-DEV Knoll Oliver, ITS-CMT-SL-SFR-FIN-DEV wrote:

> ... But why not provide it in the first place, or at least the "Qt base directory"? :)

Ahhh, I was simply looking at the wrong qmake documentation page!

Here we go: http://doc.qt.nokia.com/latest/qmake-advanced-usage.html#variables

"The special $$[...] operator can be used to access various configuration options that were set when Qt was built:"

 message(Qt version: $$[QT_VERSION])
 message(Qt is installed in $$[QT_INSTALL_PREFIX])
 message(Qt resources can be found in the following locations:)
 message(Documentation: $$[QT_INSTALL_DOCS])
 message(Header files: $$[QT_INSTALL_HEADERS])
 etc.
"

I /knew/ there had to be a way to query these "build-in" values, but I was being distracted by qmake-variable-reference.html ;)

"I shall read the /entire/ manual, I shall read the /entire/ manual, I shall read..."

Also refer to: http://bugreports.qt.nokia.com/browse/QTBUG-16510

Thanks,
  Oliver
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22





More information about the Qt-interest-old mailing list