Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qt Quick with CMake Error
Qt 6.11 is out! See what's new in the release blog

Qt Quick with CMake Error

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 485 Views 1 Watching
  • 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.
  • S Offline
    S Offline
    steamedboat
    wrote on last edited by
    #1

    I am new to Qt and used the Qt Installer to install the Qt Creator, Qt Design Studio, etc. Although I do not have this problem on my other PC, whenever I create a new project for Qt Quick, using CMake on my Windows 11 machine, I receive the error "Failed to scan target for QML imports." I have reinstalled Qt several times, in case I did something wrong in the installation, but I always get this error. (I even tried a 3rd machine and was successful in that installation with Qt Quick and CMake working. The issue seems to only occur on the machine that I am trying to develop on.) I'm hoping that someone might be able to look at the cmake output and recognize why I might be getting this error. Below is the printout that I receive indicating the failure from _qt_internal_scan_qml_imports:

    C:\Qt\6.8.2\mingw_64\lib\cmake\Qt6Core\Qt6CoreMacros.cmake:792:EVAL:1: error:
    Call stack:
    C:/Qt/6.8.2/mingw_64/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:792:EVAL:1 (qt6_finalize_target)
    C:/Qt/6.8.2/mingw_64/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:823 (_qt_internal_finalize_executable)
    C:/Qt/6.8.2/mingw_64/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:745 (cmake_language)
    C:/Qt/6.8.2/mingw_64/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:745 (qt6_import_qml_plugins)
    C:/Qt/6.8.2/mingw_64/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:4168 (_qt_internal_scan_qml_imports)
    C:/Qt/6.8.2/mingw_64/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:4113 (message)

    1 Reply Last reply
    0

    • Login

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