Details
-
Bug
-
Resolution: Incomplete
-
P2: Important
-
None
-
6.8.0 Beta3
-
None
-
Ubuntu Noble
Clang-18
QT built from source with these commands:
git clone --branch 6.8 git://code.qt.io/qt/qt5.git qt6
cd qt6/
./configure -init-submodules -static -release -prefix /opt/qt-static -opensource -confirm-license -nomake tests -nomake examples -no-shared -openssl-linked
cmake --build . --parallel
cmake --install .Ubuntu Noble Clang-18 QT built from source with these commands: git clone --branch 6.8 git://code.qt.io/qt/qt5.git qt6 cd qt6/ ./configure -init-submodules -static -release -prefix /opt/qt-static -opensource -confirm-license -nomake tests -nomake examples -no-shared -openssl-linked cmake --build . --parallel cmake --install .
Description
CMake Error at src/NextAppUi/CMakeLists.txt:47 (find_package):
[cmake] Found package configuration file:
[cmake]
[cmake] /opt/qt-static/lib/cmake/Qt6/Qt6Config.cmake
[cmake]
[cmake] but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
[cmake] FOUND. Reason given by package:
[cmake]
[cmake] Failed to find required Qt component "ProtobufQuick".
[cmake]
[cmake] Expected Config file at
[cmake] "/opt/qt-static/lib/cmake/Qt6ProtobufQuick/Qt6ProtobufQuickConfig.cmake"
[cmake] does NOT exist
From CmakeLists.txt:
{{}}
find_package(Qt6 6.7 REQUIRED COMPONENTS Core Gui Quick QuickControls2 Svg Test Grpc Concurrent Test Multimedia)if(Qt6Core_VERSION VERSION_LESS "6.8.0")
message("Using an old QT version. 6.8 is required for the current grpc plugin")
find_package(Qt6 6.8 REQUIRED COMPONENTS Protobuf)
else ()
find_package(Qt6 6.8 REQUIRED COMPONENTS ProtobufQuick)
set (PROTOBUF_QML_DEPENDENCY Qt::ProtobufQuick)
endif()
CMakeLists.txt that fails: https://github.com/jgaa/next-app/blob/6f277f01e340c3f4cfed7a1226e5085e266f7cb5/src/NextAppUi/CMakeLists.txt
Note that the same error occur when compiling for Android with QT 6.8 beta 3. See https://bugreports.qt.io/browse/QTBUG-126383
Building with Qt 6.8 beta 2/3 for Desktop (Linux, MacOS, Windows) work fine using QT downloaded with }}the "QT Maintenance Tool". {{