Failed to find required Qt component "Quick".
-
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,
-
Hi,
The issue starts earlier in the chain: Quick depends on Gui, which depends on GLESv2. That’s missing. -
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.
-
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 -
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@LeonardoL
This looks like the linker command executed might be incorrect. Can you find & paste here exactly what full command line (probablyg++ ...
or maybegcc ...
) is being executed? -