Project

General

Profile

Bug #1547

[qt5-quickcontrols2] cmake is confused about QtQuick version

bill-auger - over 6 years ago - . Updated about 6 years ago.

Status:
not-a-bug
Priority:
bug
Assignee:
-
% Done:

0%


Description

while compiloing a cmake-based program that requires 'qt5-quickcontrols


CMake Error at /usr/lib64/cmake/Qt5QuickControls2/Qt5QuickControls2Config.cmake:102 (find_package):
  Could not find a configuration file for package "Qt5Quick" that is
  compatible with requested version "5.9.3".

  The following configuration files were considered but not accepted:

    /usr/lib64/cmake/Qt5Quick/Qt5QuickConfig.cmake, version: 5.9.2

Call Stack (most recent call first):
  /usr/lib64/cmake/Qt5/Qt5Config.cmake:28 (find_package)
  CMakeLists.txt:91 (FIND_PACKAGE)

-- Configuring incomplete, errors occurred!

$ sudo pacman -Ss qt5 | grep quick
extra/qt5-quickcontrols 5.9.3-1 (qt qt5)
extra/qt5-quickcontrols2 5.9.3-1 (qt qt5) [installed]

the 'Qt5QuickConfig' config file mentions only v5.9.2 and the directory /usr/include/qt/QtQuick/5.9.2 - /usr/include/qt/QtQuick/ has a subdir for 5.9.2 but not for 5.9.3
that directory does not appear to be associated with the 'qt5-quickcontrols2' package though (or any package according to pkgfile) and still exists after the 'qt5-quickcontrols2' package is removed


$ grep 5.9.2 /usr/lib64/cmake/Qt5Quick/Qt5QuickConfig.cmake
        "${_qt5Quick_install_prefix}/include/qt/QtQuick/5.9.2" 
        "${_qt5Quick_install_prefix}/include/qt/QtQuick/5.9.2/QtQuick" 
                5.9.2 ${_Qt5Quick_FIND_VERSION_EXACT}
    _populate_Quick_target_properties(RELEASE "libQt5Quick.so.5.9.2" "" )

$ ls /usr/include/qt/QtQuick/ | grep 5.9.
5.9.2

$ pkgfile /usr/include/qt/QtQuick/5.9.2/QtQuick/private/qquicktextnode_p.h
<empty>

$ pkgfile /usr/include/qt/QtQuick/5.9.2/
<empty>

History

#1

Updated by bill-auger over 6 years ago

  • Description updated (diff)
#2

Updated by bill-auger over 6 years ago

  • Description updated (diff)
  • Subject changed from [qt5-quickcontrols2] package v5.9.3 actually installs v5.9.2 - confuses cmake to [qt5-quickcontrols2] cmake is confused about QtQuick version
#3

Updated by bill-auger over 6 years ago

explicitly installing v5.9.2 from the archive allows the build to complete

https://archive.archlinux.org/packages/q/qt5-quickcontrols2/qt5-quickcontrols2-5.9.2-2-x86_64.pkg.tar.xz

#4

Updated by oaken-source about 6 years ago

  • Status changed from open to not-a-bug

qt5-quickcontrol* is provided by arch, and I'm not sure there is something we could fix here. I'm closing this as invalid for this reason, but feel free to reopen.

Also available in: Atom PDF