qmake-qt5 and qmake from qt5-qtbase-devel behaves differently on F21

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx   science has obviously misinterpreted
+358 40 703 1231      its data"
http://poltsi.fi/     Henry Morris, father of 'modern creationism'

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux