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. Failed to find required Qt component "Quick".
Forum Updated to NodeBB v4.3 + New Features

Failed to find required Qt component "Quick".

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 3 Posters 1.5k 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.
  • L Offline
    L Offline
    LeonardoL
    wrote on last edited by
    #1

    I'm building a SDK to crosscompile AM62P processor, but im' having this issue.

    I'm using Qt 6.5.6lts and Qt Creator 14.0.1

    CMake Warning:
      No source or binary directory provided.  Both will be assumed to be the
      same as the current working directory, but note that this warning will
      become a fatal error in future CMake releases.
    
    
    -- The CXX compiler identification is GNU 13.2.0
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/c++ - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
    -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
    -- Check if compiler accepts -pthread
    -- Check if compiler accepts -pthread - no
    -- Looking for pthread_create in pthreads
    -- Looking for pthread_create in pthreads - found
    -- Found Threads: TRUE  
    -- Performing Test HAVE_STDATOMIC
    -- Performing Test HAVE_STDATOMIC - Failed
    -- Performing Test HAVE_STDATOMIC_WITH_LIB
    -- Performing Test HAVE_STDATOMIC_WITH_LIB - Failed
    -- Found WrapAtomic: TRUE  
    -- Performing Test HAVE_EGL
    -- Performing Test HAVE_EGL - Failed
    -- Could NOT find EGL (missing: HAVE_EGL) (found version "1.5")
    -- Performing Test HAVE_GLESv2
    -- Performing Test HAVE_GLESv2 - Failed
    -- Could NOT find GLESv2 (missing: HAVE_GLESv2 HAVE_GLESv2) 
    CMake Warning at /usr/share/cmake-3.28/Modules/CMakeFindDependencyMacro.cmake:76 (find_package):
      Found package configuration file:
    
        /home/sergio.r/sdkqt6-AM62P/sysroots/aarch64-oe-linux/usr/lib/cmake/Qt6Gui/Qt6GuiConfig.cmake
    
      but it set Qt6Gui_FOUND to FALSE so package "Qt6Gui" is considered to be
      NOT FOUND.  Reason given by package:
    
      Qt6Gui could not be found because dependency GLESv2 could not be found.
    
      Configuring with --debug-find-pkg=GLESv2 might reveal details why the
      package was not found.
    
      Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some
      of the path variables that find_package uses to try and find the package.
    
    Call Stack (most recent call first):
      /home/sergio.r/sdkqt6-AM62P/sysroots/aarch64-oe-linux/usr/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:111 (find_dependency)
      /home/sergio.r/sdkqt6-AM62P/sysroots/aarch64-oe-linux/usr/lib/cmake/Qt6Quick/Qt6QuickDependencies.cmake:39 (_qt_internal_find_qt_dependencies)
      /home/sergio.r/sdkqt6-AM62P/sysroots/aarch64-oe-linux/usr/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake:50 (include)
      /home/sergio.r/sdkqt6-AM62P/sysroots/aarch64-oe-linux/usr/lib/cmake/Qt6/Qt6Config.cmake:177 (find_package)
      CMakeLists.txt:17 (find_package)
    
    
    CMake Warning at /home/sergio.r/sdkqt6-AM62P/sysroots/aarch64-oe-linux/usr/lib/cmake/Qt6/Qt6Config.cmake:177 (find_package):
      Found package configuration file:
    
        /home/sergio.r/sdkqt6-AM62P/sysroots/aarch64-oe-linux/usr/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake
    
      but it set Qt6Quick_FOUND to FALSE so package "Qt6Quick" is considered to
      be NOT FOUND.  Reason given by package:
    
      Qt6Quick could not be found because dependency Qt6Gui could not be found.
    
      Configuring with --debug-find-pkg=Qt6Gui might reveal details why the
      package was not found.
    
      Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some
      of the path variables that find_package uses to try and find the package.
    
    Call Stack (most recent call first):
      CMakeLists.txt:17 (find_package)
    
    
    CMake Error at CMakeLists.txt:17 (find_package):
      Found package configuration file:
    
        /home/sergio.r/sdkqt6-AM62P/sysroots/aarch64-oe-linux/usr/lib/cmake/Qt6/Qt6Config.cmake
    
      but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
      FOUND.  Reason given by package:
    
      Failed to find required Qt component "Quick".
    
      Expected Config file at
      "/home/sergio.r/sdkqt6-AM62P/sysroots/aarch64-oe-linux/usr/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake"
      exists
    
    
    
      Configuring with --debug-find-pkg=Qt6Quick might reveal details why the
      package was not found.
    
      Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some
      of the path variables that find_package uses to try and find the package.
    
    
    
    -- Configuring incomplete, errors occurred!
    
    

    My CMakeList.txt has this content:

    cmake_minimum_required(VERSION 3.16)
    
    #set(CMAKE_TRY_COMPILE_TARGET_TYPE "STATIC_LIBRARY")
    
    project(untitled6 VERSION 0.1 LANGUAGES CXX)
    
    set(QT_HOST_PATH "/home/sergio.r/sdkqt6-AM62P/sysroots" CACHE PATH "Path to host Qt installation")
    #set(QT_HOST_PATH_CMAKE_DIR "/home/sergio.r/sdkqt6-AM62P/sysroots/x86_64-arago-linux/usr/lib/cmake" CACHE PATH "Path to host Qt cmake directory")
    set(QT_HOST_PATH_CMAKE_DIR "/home/sergio.r/sdkqt6-AM62P/sysroots/aarch64-oe-linux/usr/lib/cmake" CACHE PATH "Path to host Qt cmake directory")
    #set(CMAKE_SYSROOT /home/sergio.r/sdkqt6-AM62P/sysroots/aarch64-oe-linux)
    #link_directories(/home/sergio.r/sdkqt6-AM62P/sysroots/aarch64-oe-linux/usr/lib)
    #set(QT6_DIR "/home/sergio.r/sdkqt6-AM62P/sysroots/aarch64-oe-linux/usr/lib/cmake/Qt6")
    #set(CMAKE_PREFIX_PATH /home/sergio.r/sdkqt6-AM62P/sysroots/aarch64-oe-linux/usr/lib/cmake/Qt6/Qt6Config.cmake)
    #set(QT6_CMAKE_PREFIX_PATH /home/sergio.r/sdkqt6-AM62P/sysroots/aarch64-oe-linux/usr/lib/cmake/Qt6/Qt6Config.cmake)
    
    set(CMAKE_CXX_STANDARD_REQUIRED ON)
    
    find_package(Qt6 6.5 REQUIRED COMPONENTS Quick)
    
    qt_standard_project_setup(REQUIRES 6.5)
    
    qt_add_executable(appuntitled
        main.cpp
    )
    
    qt_add_qml_module(appuntitled
        URI untitled
        VERSION 1.0
        QML_FILES
            Main.qml
    )
    
    # Qt for iOS sets MACOSX_BUNDLE_GUI_IDENTIFIER automatically since Qt 6.1.
    # If you are developing for iOS or macOS you should consider setting an
    # explicit, fixed bundle identifier manually though.
    set_target_properties(appuntitled PROPERTIES
    #    MACOSX_BUNDLE_GUI_IDENTIFIER com.example.appuntitled
        MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
        MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
        MACOSX_BUNDLE TRUE
        WIN32_EXECUTABLE TRUE
    )
    
    target_link_libraries(appuntitled
        PRIVATE Qt6::Quick
    )
    
    include(GNUInstallDirs)
    install(TARGETS appuntitled
        BUNDLE DESTINATION .
        LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
        RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
    )
    
    

    BR,

    1 Reply Last reply
    0
    • L Offline
      L Offline
      LeonardoL
      wrote on last edited by
      #8

      Hi I've discovered what happend it was my CMAKE_SYSROOT was pointing to sysroots/x86_64 but the correct path is aarch64-oe-linux

      Thank you all

      1 Reply Last reply
      0
      • Axel SpoerlA Offline
        Axel SpoerlA Offline
        Axel Spoerl
        Moderators
        wrote on last edited by
        #2

        Hi,
        The issue starts earlier in the chain: Quick depends on Gui, which depends on GLESv2. That’s missing.

        Software Engineer
        The Qt Company, Oslo

        1 Reply Last reply
        0
        • L Offline
          L Offline
          LeonardoL
          wrote on last edited by
          #3

          Hi thank you for yor quick response, how do I put this GLESv2 into my SDK?

          BR,

          1 Reply Last reply
          0
          • Axel SpoerlA Offline
            Axel SpoerlA Offline
            Axel Spoerl
            Moderators
            wrote on last edited by
            #4

            You have to check this in the documentation of your build target. For Raspberry Pi there is script called rpi-update that fixes these missing libraries. I am not sure what is your target though.

            Software Engineer
            The Qt Company, Oslo

            1 Reply Last reply
            0
            • L Offline
              L Offline
              LeonardoL
              wrote on last edited by
              #5

              I'm using a AM62P from texas instruments

              1 Reply Last reply
              0
              • L Offline
                L Offline
                LeonardoL
                wrote on last edited by
                #6

                We resolved the problems with GLESv2 but now we are having this error

                cannot find crt1.o: No such file or directory
                cannot find crti.o: No such file or directory
                cannot find crtbegin.o: No such file or directory
                cannot find -lstdc++: No such file or directory
                cannot find -lm: No such file or directory
                cannot find -lgcc_s: No such file or directory
                cannot find -lgcc: No such file or directory
                cannot find -lc: No such file or directory
                cannot find -lgcc_s: No such file or directory
                cannot find -lgcc: No such file or directory
                cannot find crtend.o: No such file or directory
                cannot find crtn.o: No such file or directory

                JonBJ 1 Reply Last reply
                0
                • L LeonardoL

                  We resolved the problems with GLESv2 but now we are having this error

                  cannot find crt1.o: No such file or directory
                  cannot find crti.o: No such file or directory
                  cannot find crtbegin.o: No such file or directory
                  cannot find -lstdc++: No such file or directory
                  cannot find -lm: No such file or directory
                  cannot find -lgcc_s: No such file or directory
                  cannot find -lgcc: No such file or directory
                  cannot find -lc: No such file or directory
                  cannot find -lgcc_s: No such file or directory
                  cannot find -lgcc: No such file or directory
                  cannot find crtend.o: No such file or directory
                  cannot find crtn.o: No such file or directory

                  JonBJ Offline
                  JonBJ Offline
                  JonB
                  wrote on last edited by JonB
                  #7

                  @LeonardoL
                  This looks like the linker command executed might be incorrect. Can you find & paste here exactly what full command line (probably g++ ... or maybe gcc ...) is being executed?

                  1 Reply Last reply
                  0
                  • L Offline
                    L Offline
                    LeonardoL
                    wrote on last edited by
                    #8

                    Hi I've discovered what happend it was my CMAKE_SYSROOT was pointing to sysroots/x86_64 but the correct path is aarch64-oe-linux

                    Thank you all

                    1 Reply Last reply
                    0
                    • L LeonardoL has marked this topic as solved on

                    • Login

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