Qt Design Studio cmake build failed (unknown CMake command "qt_internal_add_qml_module")
Unsolved
General and Desktop
-
I'm trying to build a Qt Design Studio project with CMake but, when it's doing the configuration step, I get the following error:
Building designer components. -- The C compiler identification is GNU 11.4.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done CMake Error at build/_deps/ds-src/src/imports/compat/Extras/CMakeLists.txt:6 (qt_internal_add_qml_module): Unknown CMake command "qt_internal_add_qml_module".
I checked the bug https://bugreports.qt.io/browse/QTBUG-109003 and https://forum.qt.io/topic/136134/building-of-certain-modules-fails-with-unknown-cmake-command-qt_internal_add_qml_module but
<installdir>/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake
is correctly installed in my system.I've tested in the following configuration of two systems, with the same results in both of them:
- Qt 6.6.0 and 6.5.3
- Ubuntu 22.04 and 20.04
- Installed from online installer and built from
qteverywhere
- CMake 3.22.1 and 3.27.7
- GCC 11.4.0 and 9.4.0
- Qt Design Studio 4.3.1 Community Edition