Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Yocto Qt6: Qt6QuickTools dependency missing
Forum Update on Monday, May 27th 2025

Yocto Qt6: Qt6QuickTools dependency missing

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 223 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.
  • L Offline
    L Offline
    Lenni
    wrote on last edited by
    #1

    I'm working on getting Qt6 to work on an embedded system. But I am getting the following error:

    Qt6Quick could not be found because dependency Qt6QuickTools could not be found.
    Could NOT find Qt6QuickTools (missing: Qt6QuickTools_DIR) 
    

    Here is the Yocto recipe:

    SUMMARY = "Qt application recipe"   
    DESCRIPTION = "This recipe builds the Application"   
    LICENSE = "CLOSED"   
    LIC_FILES_CHKSUM = ""
    
    DEPENDS += "qtbase qtdeclarative qtcharts qtimageformats qtscxml qtmultimedia qtquick3d"
    
    RDEPENDS:${PN} += "qtsvg \
    qtdeclarative-qmlplugins \
    ttf-dejavu-sans \
    ttf-dejavu-serif \
    "
    
    SRC_URI = "github url"
    SRCREV = "github commit hash"
    
    S = "${WORKDIR}/git"
    
    inherit qt6-cmake
         
    do_install() {   
        install -d ${D}/opt/app/   
        install -m 0755 app ${D}/opt/app/   
        install -m 0755 ${S}/mod/setup.sh ${D}/opt/app/
        cp -r ${S}/*  ${D}/opt/app/
    }   
        
    FILES:${PN} += "/opt/app/* "
    

    Here is the CMake for the Qt project:

    cmake_minimum_required(VERSION 3.16)
    project(project VERSION 0.1 LANGUAGES CXX)
    
    set(CMAKE_CXX_STANDARD 17)
    set(CMAKE_CXX_STANDARD_REQUIRED ON)
    
    find_package(Qt6 REQUIRED COMPONENTS Quick)
    find_package(Qt6 REQUIRED COMPONENTS Core)
    find_package(Qt6 REQUIRED COMPONENTS QuickControls2)
    find_package(Qt6 REQUIRED COMPONENTS Qml)
    find_package(Qt6 REQUIRED COMPONENTS Charts)
    
    set(PROJECT_SOURCES
            main.cpp
            ...
            qml.qrc
    )
    
    qt_add_executable(project
        MANUAL_FINALIZATION
        ${PROJECT_SOURCES}
    )
    
    target_link_libraries(project PRIVATE Qt6::Core)
    target_link_libraries(project PRIVATE Qt6::Quick)
    target_link_libraries(project PRIVATE Qt6::QuickControls2)
    target_link_libraries(project  PRIVATE Qt6::Charts)
    target_link_libraries(project PRIVATE Qt6::Qml)
    
    
    if(QT_VERSION_MAJOR EQUAL 6)
        qt_import_qml_plugins(project)
        qt_finalize_executable(project)
    endif()
    

    I have tried several different versions of Qt. It works fine with Qt5, but fails with Qt6. Also, the Qt6 version runs and works fine during development on Windows. I have struggled to find anything online about Qt6QuickTools.

    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