I noticed the following when compiling a qt5-based application.
qt5-qtbase-devel provides both /usr/bin/qmake-qt5 and
/usr/lib64/qt5/bin/qmake.
These are both the same file, but because they are located in different
directories, they behave differently (or rather one works, the other
doesn't).
It seems that the binary uses dirname to locate where the rest of
qt5-related files are located. This is apparent when I run qmake-qt5 in
debug-mode (-d):
DEBUG 1: visiting file /usr/lib64/qt5/mkspecs/features/qt_config.prf
DEBUG 1: /usr/lib64/qt5/mkspecs/features/qt_config.prf: entering block
DEBUG 1: /usr/lib64/qt5/mkspecs/features/qt_config.prf:4: QMAKE_QT_CONFIG
:= /usr/bin/mkspecs/qconfig.pri
DEBUG 1: /usr/lib64/qt5/mkspecs/features/qt_config.prf:5: NOT
DEBUG 1: /usr/lib64/qt5/mkspecs/features/qt_config.prf:5: evaluating test
function "exists"
DEBUG 1: /usr/lib64/qt5/mkspecs/features/qt_config.prf:5: calling built-in
exists(/usr/bin/mkspecs/qconfig.pri)
DEBUG 1: /usr/lib64/qt5/mkspecs/features/qt_config.prf:5: test function
returned false
....
DEBUG 1: /usr/lib64/qt5/mkspecs/features/qt_config.prf:6: calling built-in
debug(1, "Cannot load qconfig.pri!")
DEBUG 1: Project DEBUG: Cannot load qconfig.pri!
As a result, the execution fails, as it does not find any components:
$ qmake-qt5/usr/lib64/qt5/bin/qmake
Project ERROR: Unknown module(s) in QT: core gui network svg printsupport
concurrent webkitwidgets webkit
If, however I run the /usr/lib64/qt5/bin/qmake (which is used by the other
qt5-* packages), the base directory is correct, and the qmake exits
succesfully.
Poltsi
--
Paul-Erik Törrönen "When science and the Bible differ,
poltsi(a)777-team.org science has obviously misinterpreted
+358 40 703 1231 its data"
http://poltsi.fi/ Henry Morris, father of 'modern creationism'