Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.9.0 Beta3
-
None
Description
I faced this issue when I setup my ubuntu on new machine. I installed missing libs, but the last one missing (xkb) was not explicitly listed for 6.9.0 version. Please review if you consider it is an issue.
Linux Ubuntu 22.04.3 / Wayland
Qt Creator 15.0.1
- Remove xkb lib 'sudo apt remove --purge libxkbcommon-dev' if it's installed.
- Open Qt Creator and open any graph example, I used Graph Gallery.
- Configure it using Qt 6.9.0
- See error output
- Configure it using Qt 6.8.2
- See error output.
- Install xkb "sudo apt install libxkbcommon-dev" and reconfigure for 6.9.0 -> no issue
Expected: As for 6.8.2 - the error should explicitly show what's missing
Actual: There is no info what's missing.
Logs from 6.9.0:
Generating compilation database for Clang-Tidy at "/tmp/QtCreator-nlGloy/Clang-Tidy.SOgVIq" ... Compilation database for Clang-Tidy successfully generated at "/tmp/QtCreator-nlGloy/Clang-Tidy.SOgVIq". Generating compilation database for Clazy at "/tmp/QtCreator-nlGloy/Clazy.mUCqbO" ... Compilation database for Clazy successfully generated at "/tmp/QtCreator-nlGloy/Clazy.mUCqbO". Generating compilation database for Clang-Tidy at "/tmp/QtCreator-nlGloy/Clang-Tidy.SOgVIq" ... Compilation database for Clang-Tidy successfully generated at "/tmp/QtCreator-nlGloy/Clang-Tidy.SOgVIq". Generating compilation database for Clazy at "/tmp/QtCreator-nlGloy/Clazy.mUCqbO" ... Compilation database for Clazy successfully generated at "/tmp/QtCreator-nlGloy/Clazy.mUCqbO". Generating compilation database for Clang-Tidy at "/tmp/QtCreator-nlGloy/Clang-Tidy.SOgVIq" ... Compilation database for Clang-Tidy successfully generated at "/tmp/QtCreator-nlGloy/Clang-Tidy.SOgVIq". Generating compilation database for Clazy at "/tmp/QtCreator-nlGloy/Clazy.mUCqbO" ... Compilation database for Clazy successfully generated at "/tmp/QtCreator-nlGloy/Clazy.mUCqbO". [cmake] Running /usr/bin/cmake -S /home/lukasz/Qt/Examples/Qt-6.8.2/graphs/3d/widgetgraphgallery -B /home/lukasz/Qt/Examples/Qt-6.8.2/graphs/3d/widgetgraphgallery/build/Desktop_Qt_6_9_0-Debug in /home/lukasz/Qt/Examples/Qt-6.8.2/graphs/3d/widgetgraphgallery/build/Desktop_Qt_6_9_0-Debug. [cmake] -- Found WrapVulkanHeaders: /usr/include [cmake] -- Configuring done (0.5s) [cmake] CMake Error at /home/lukasz/Qt/6.9.0/gcc_64/lib/cmake/Qt6QuickPrivate/Qt6QuickPrivateTargets.cmake:61 (set_target_properties): [cmake] The link interface of target "Qt6::QuickPrivate" contains: [cmake] [cmake] Qt6::GuiPrivate [cmake] [cmake] but the target was not found. Possible reasons include: [cmake] [cmake] * There is a typo in the target name. [cmake] * A find_package call is missing for an IMPORTED target. [cmake] * An ALIAS target is missing. [cmake] [cmake] Call Stack (most recent call first): [cmake] /home/lukasz/Qt/6.9.0/gcc_64/lib/cmake/Qt6QuickPrivate/Qt6QuickPrivateConfig.cmake:48 (include) [cmake] /home/lukasz/Qt/6.9.0/gcc_64/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake:71 (find_package) [cmake] /usr/share/cmake-3.28/Modules/CMakeFindDependencyMacro.cmake:76 (find_package) [cmake] /home/lukasz/Qt/6.9.0/gcc_64/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:137 (find_dependency) [cmake] /home/lukasz/Qt/6.9.0/gcc_64/lib/cmake/Qt6Graphs/Qt6GraphsDependencies.cmake:45 (_qt_internal_find_qt_dependencies) [cmake] /home/lukasz/Qt/6.9.0/gcc_64/lib/cmake/Qt6Graphs/Qt6GraphsConfig.cmake:43 (include) [cmake] /home/lukasz/Qt/6.9.0/gcc_64/lib/cmake/Qt6/Qt6Config.cmake:206 (find_package) [cmake] CMakeLists.txt:26 (find_package) [cmake] [cmake] [cmake] CMake Error at /home/lukasz/Qt/6.9.0/gcc_64/lib/cmake/Qt6QuickShapesPrivate/Qt6QuickShapesPrivateTargets.cmake:61 (set_target_properties): [cmake] The link interface of target "Qt6::QuickShapesPrivate" contains: [cmake] [cmake] Qt6::GuiPrivate [cmake] [cmake] but the target was not found. Possible reasons include: [cmake] [cmake] * There is a typo in the target name. [cmake] * A find_package call is missing for an IMPORTED target. [cmake] * An ALIAS target is missing. [cmake] [cmake] Call Stack (most recent call first): [cmake] /home/lukasz/Qt/6.9.0/gcc_64/lib/cmake/Qt6QuickShapesPrivate/Qt6QuickShapesPrivateConfig.cmake:55 (include) [cmake] /usr/share/cmake-3.28/Modules/CMakeFindDependencyMacro.cmake:76 (find_package) [cmake] /home/lukasz/Qt/6.9.0/gcc_64/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:137 (find_dependency) [cmake] /home/lukasz/Qt/6.9.0/gcc_64/lib/cmake/Qt6Graphs/Qt6GraphsDependencies.cmake:45 (_qt_internal_find_qt_dependencies) [cmake] /home/lukasz/Qt/6.9.0/gcc_64/lib/cmake/Qt6Graphs/Qt6GraphsConfig.cmake:43 (include) [cmake] /home/lukasz/Qt/6.9.0/gcc_64/lib/cmake/Qt6/Qt6Config.cmake:206 (find_package) [cmake] CMakeLists.txt:26 (find_package) [cmake] [cmake] [cmake] -- Generating done (0.0s) [cmake] CMake Generate step failed. Build files cannot be regenerated correctly. [cmake] [cmake] The command "/usr/bin/cmake -S /home/lukasz/Qt/Examples/Qt-6.8.2/graphs/3d/widgetgraphgallery -B /home/lukasz/Qt/Examples/Qt-6.8.2/graphs/3d/widgetgraphgallery/build/Desktop_Qt_6_9_0-Debug" terminated with exit code 1. [cmake] [cmake] Elapsed time: 00:01.
Qt 6.8.2:
[cmake] Running /home/lukasz/Qt/Tools/CMake/bin/cmake -S /home/lukasz/Qt/Examples/Qt-6.8.2/graphs/3d/widgetgraphgallery -B /home/lukasz/Qt/Examples/Qt-6.8.2/graphs/3d/widgetgraphgallery/build/Desktop_Qt_6_8_2-Debug in /home/lukasz/Qt/Examples/Qt-6.8.2/graphs/3d/widgetgraphgallery/build/Desktop_Qt_6_8_2-Debug. [cmake] -- Could NOT find XKB (missing: XKB_LIBRARY XKB_INCLUDE_DIR) (Required is at least version "0.5.0") [cmake] -- Found WrapVulkanHeaders: /usr/include [cmake] -- Configuring done (0.4s) [cmake] CMake Error at /home/lukasz/Qt/6.8.2/gcc_64/lib/cmake/Qt6Gui/Qt6GuiTargets.cmake:100 (set_target_properties): [cmake] The link interface of target "Qt6::GuiPrivate" contains: [cmake] [cmake] XKB::XKB [cmake] [cmake] but the target was not found. Possible reasons include: [cmake] [cmake] * There is a typo in the target name. [cmake] * A find_package call is missing for an IMPORTED target. [cmake] * An ALIAS target is missing. [cmake] [cmake] Call Stack (most recent call first): [cmake] /home/lukasz/Qt/6.8.2/gcc_64/lib/cmake/Qt6Gui/Qt6GuiConfig.cmake:55 (include) [cmake] /home/lukasz/Qt/6.8.2/gcc_64/lib/cmake/Qt6/Qt6Config.cmake:190 (find_package) [cmake] CMakeLists.txt:24 (find_package) [cmake] [cmake] [cmake] -- Generating done (0.0s) [cmake] CMake Generate step failed. Build files cannot be regenerated correctly. [cmake] [cmake] The command "/home/lukasz/Qt/Tools/CMake/bin/cmake -S /home/lukasz/Qt/Examples/Qt-6.8.2/graphs/3d/widgetgraphgallery -B /home/lukasz/Qt/Examples/Qt-6.8.2/graphs/3d/widgetgraphgallery/build/Desktop_Qt_6_8_2-Debug" terminated with exit code 1. [cmake] [cmake] Elapsed time: 00:00.
Attachments
Issue Links
- relates to
-
QTBUG-118111 Make a platform doc page for Linux/Wayland like we have for all others
-
- Reported
-
-
QTQAINFRA-6991 Qt Test Attack - 02, 2025
-
- Open
-