Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Design Studio cmake build failed (unknown CMake command "qt_internal_add_qml_module")

Qt Design Studio cmake build failed (unknown CMake command "qt_internal_add_qml_module")

Scheduled Pinned Locked Moved Unsolved General and Desktop
cmakedesign studiobuild
1 Posts 1 Posters 401 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dpoblaci
    wrote on 13 Nov 2023, 09:22 last edited by dpoblaci
    #1

    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
    1 Reply Last reply
    0

    1/1

    13 Nov 2023, 09:22

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved