Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.0.0
-
0ba45442f3f1102af73ec2666e4e5c24ed516331 (qt/qtquickcontrols2/dev)
Description
Cross compiling qtbase, qtdeclarative, etc. one by one against a Raspbian sysroot and gcc 7.4 (I know gcc 7 is too old for Qt 6 in theory but it should do for now) toolchain, on Ubuntu 20.04 and CMake 3.16.3.
cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DINPUT_opengl=es2 -DFEATURE_developer_build=ON -DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF -DCMAKE_TOOLCHAIN_FILE=/home/agocs/Data/rpi/toolchain.cmake -DQT_HOST_PATH=/home/agocs/Data/qtbase -DCMAKE_INSTALL_PREFIX=/usr/local/qt6 -DCMAKE_STAGING_PREFIX=/home/agocs/Data/rpi/qt6 .
Then after build and install I am just doing qt-cmake-private . && ninja && cmake --install . for modules like qtdeclarative, qtshadertools, qtquicktimeline, qtquick3d, qtquickcontrols2. The mentioned modules all build fine, except qtquickcontrols2, which fails with the following. I was using the HEAD of qtdeclarative and qtquickcontrols2 from 12/08.
CMake Warning at /home/agocs/Data/rpi/qt6/lib/cmake/Qt6/Qt6Config.cmake:77 (find_package): Could not find a configuration file for package "Qt6QmlTools" that is compatible with requested version "". The following configuration files were considered but not accepted: /home/agocs/Data/qtbase/lib/cmake/Qt6QmlTools/Qt6QmlToolsConfig.cmake, version: 6.0.0 (64bit) Call Stack (most recent call first): CMakeLists.txt:13 (find_package) CMake Warning at /usr/share/cmake-3.16/Modules/CMakeFindDependencyMacro.cmake:47 (find_package): Found package configuration file: /home/agocs/Data/rpi/qt6/lib/cmake/Qt6/Qt6Config.cmake but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT FOUND. Reason given by package: Failed to find Qt component "QmlTools" config file at "" Call Stack (most recent call first): /home/agocs/Data/rpi/qt6/lib/cmake/Qt6QuickTest/Qt6QuickTestDependencies.cmake:2 (find_dependency) /home/agocs/Data/rpi/qt6/lib/cmake/Qt6QuickTest/Qt6QuickTestConfig.cmake:38 (include) /home/agocs/Data/rpi/qt6/lib/cmake/Qt6/Qt6Config.cmake:77 (find_package) CMakeLists.txt:13 (find_package) CMake Error at CMakeLists.txt:13 (find_package): Found package configuration file: /home/agocs/Data/rpi/qt6/lib/cmake/Qt6/Qt6Config.cmake but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT FOUND. Reason given by package: Failed to find Qt component "QmlTools" config file at ""
This used to build fine a week ago. So perhaps something changed around QmlTools in declarative?
It could be something on my side as well. But as far as I can recall it was a clean build, with all modules purged, the staging install dir was removed, etc.
Attachments
For Gerrit Dashboard: QTBUG-86012 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
310117,2 | CMake: Don't find_package(Qt6QmlTools) directly for cross-builds | dev | qt/qtquickcontrols2 | Status: MERGED | +2 | 0 |