FS#34140 - FindQt4.cmake fails to find qt4
Attached to Project:
Arch Linux
Opened by Gian (gidoca) - Monday, 04 March 2013, 11:03 GMT
Last edited by Andrea Scarpino (BaSh) - Monday, 04 March 2013, 12:00 GMT
Opened by Gian (gidoca) - Monday, 04 March 2013, 11:03 GMT
Last edited by Andrea Scarpino (BaSh) - Monday, 04 March 2013, 12:00 GMT
|
Details
Description:
FindQt4.cmake fails to find Qt 4 and instead finds Qt 5, giving the following error message: CMake Error at /usr/share/cmake-2.8/Modules/FindQt4.cmake:1216 (message): Found unsuitable Qt version "5.0.1" from /usr/bin/qmake, this code requires Qt 4.x Call Stack (most recent call first): CMakeLists.txt:4 (find_package) -- Configuring incomplete, errors occurred! Additional info: This is using qt4-4.8.4-13 and cmake-2.8.10.2-4. Steps to reproduce: echo 'find_package(Qt4 REQUIRED)' > CMakeLists.txt; mkdir build; cd build; cmake .. |
This task depends upon
Closed by Andrea Scarpino (BaSh)
Monday, 04 March 2013, 12:00 GMT
Reason for closing: Duplicate
Additional comments about closing: FS#34111
Monday, 04 March 2013, 12:00 GMT
Reason for closing: Duplicate
Additional comments about closing:
Please maintainers fix your PKGBUILDs so they build on systems with both qt4
and qt5-base installed; when your PKGBUILD needs qt4 and:
* use qmake, you can replace it with qmake-qt4
* use cmake, you can add -DQT_QMAKE_EXECUTABLE=qmake-qt4 to the cmake options