Qt6 cross compilation setup failure for raspberry pi 4
-
Hello everyone,
I have been working on to compile qt core crossly for raspberry pi.
But I have some problems with cmake.
During the configuration state it gives-- Configuring done CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "Core" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): cmake/QtModuleHelpers.cmake:105 (_qt_internal_add_library) src/corelib/CMakeLists.txt:33 (qt_internal_add_module) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "Concurrent" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): cmake/QtModuleHelpers.cmake:105 (_qt_internal_add_library) src/concurrent/CMakeLists.txt:7 (qt_internal_add_module) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "Sql" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): cmake/QtModuleHelpers.cmake:105 (_qt_internal_add_library) src/sql/CMakeLists.txt:7 (qt_internal_add_module) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "Network" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): cmake/QtModuleHelpers.cmake:105 (_qt_internal_add_library) src/network/CMakeLists.txt:7 (qt_internal_add_module) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "Xml" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): cmake/QtModuleHelpers.cmake:105 (_qt_internal_add_library) src/xml/CMakeLists.txt:7 (qt_internal_add_module) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "DBus" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): cmake/QtModuleHelpers.cmake:105 (_qt_internal_add_library) src/dbus/CMakeLists.txt:7 (qt_internal_add_module) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "Gui" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): cmake/QtModuleHelpers.cmake:105 (_qt_internal_add_library) src/gui/CMakeLists.txt:53 (qt_internal_add_module) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "Gui" links to target "PkgConfig::PC_HARFBUZZ" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): cmake/QtModuleHelpers.cmake:105 (_qt_internal_add_library) src/gui/CMakeLists.txt:53 (qt_internal_add_module) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "OpenGL" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): cmake/QtModuleHelpers.cmake:105 (_qt_internal_add_library) src/opengl/CMakeLists.txt:7 (qt_internal_add_module) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "Widgets" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): cmake/QtModuleHelpers.cmake:105 (_qt_internal_add_library) src/widgets/CMakeLists.txt:7 (qt_internal_add_module) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "OpenGLWidgets" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): cmake/QtModuleHelpers.cmake:105 (_qt_internal_add_library) src/openglwidgets/CMakeLists.txt:7 (qt_internal_add_module) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "DeviceDiscoverySupportPrivate" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): cmake/QtModuleHelpers.cmake:105 (_qt_internal_add_library) src/platformsupport/devicediscovery/CMakeLists.txt:7 (qt_internal_add_module) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "FbSupportPrivate" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): cmake/QtModuleHelpers.cmake:105 (_qt_internal_add_library) src/platformsupport/fbconvenience/CMakeLists.txt:7 (qt_internal_add_module) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "InputSupportPrivate" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): cmake/QtModuleHelpers.cmake:105 (_qt_internal_add_library) src/platformsupport/input/CMakeLists.txt:12 (qt_internal_add_module) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "KmsSupportPrivate" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): cmake/QtModuleHelpers.cmake:105 (_qt_internal_add_library) src/platformsupport/kmsconvenience/CMakeLists.txt:9 (qt_internal_add_module) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "Test" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): cmake/QtModuleHelpers.cmake:105 (_qt_internal_add_library) src/testlib/CMakeLists.txt:11 (qt_internal_add_module) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "PrintSupport" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): cmake/QtModuleHelpers.cmake:105 (_qt_internal_add_library) src/printsupport/CMakeLists.txt:7 (qt_internal_add_module) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "QPSQLDriverPlugin" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): src/corelib/Qt6CoreMacros.cmake:2080 (_qt_internal_add_library) cmake/QtPluginHelpers.cmake:87 (qt6_add_plugin) src/plugins/sqldrivers/psql/CMakeLists.txt:9 (qt_internal_add_plugin) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "QSQLiteDriverPlugin" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): src/corelib/Qt6CoreMacros.cmake:2080 (_qt_internal_add_library) cmake/QtPluginHelpers.cmake:87 (qt6_add_plugin) src/plugins/sqldrivers/sqlite/CMakeLists.txt:7 (qt_internal_add_plugin) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "QIBaseDriverPlugin" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): src/corelib/Qt6CoreMacros.cmake:2080 (_qt_internal_add_library) cmake/QtPluginHelpers.cmake:87 (qt6_add_plugin) src/plugins/sqldrivers/ibase/CMakeLists.txt:1 (qt_internal_add_plugin) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "QMinimalIntegrationPlugin" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): src/corelib/Qt6CoreMacros.cmake:2080 (_qt_internal_add_library) cmake/QtPluginHelpers.cmake:87 (qt6_add_plugin) src/plugins/platforms/minimal/CMakeLists.txt:9 (qt_internal_add_plugin) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "QOffscreenIntegrationPlugin" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): src/corelib/Qt6CoreMacros.cmake:2080 (_qt_internal_add_library) cmake/QtPluginHelpers.cmake:87 (qt6_add_plugin) src/plugins/platforms/offscreen/CMakeLists.txt:7 (qt_internal_add_plugin) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "XcbQpaPrivate" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): cmake/QtModuleHelpers.cmake:105 (_qt_internal_add_library) src/plugins/platforms/xcb/CMakeLists.txt:7 (qt_internal_add_module) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "QXcbIntegrationPlugin" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): src/corelib/Qt6CoreMacros.cmake:2080 (_qt_internal_add_library) cmake/QtPluginHelpers.cmake:87 (qt6_add_plugin) src/plugins/platforms/xcb/CMakeLists.txt:163 (qt_internal_add_plugin) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "QXcbEglIntegrationPlugin" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): src/corelib/Qt6CoreMacros.cmake:2080 (_qt_internal_add_library) cmake/QtPluginHelpers.cmake:87 (qt6_add_plugin) src/plugins/platforms/xcb/gl_integrations/xcb_egl/CMakeLists.txt:9 (qt_internal_add_plugin) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "EglFSDeviceIntegrationPrivate" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): cmake/QtModuleHelpers.cmake:105 (_qt_internal_add_library) src/plugins/platforms/eglfs/CMakeLists.txt:24 (qt_internal_add_module) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "QEglFSIntegrationPlugin" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): src/corelib/Qt6CoreMacros.cmake:2080 (_qt_internal_add_library) cmake/QtPluginHelpers.cmake:87 (qt6_add_plugin) src/plugins/platforms/eglfs/CMakeLists.txt:99 (qt_internal_add_plugin) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "QEglFSX11IntegrationPlugin" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): src/corelib/Qt6CoreMacros.cmake:2080 (_qt_internal_add_library) cmake/QtPluginHelpers.cmake:87 (qt6_add_plugin) src/plugins/platforms/eglfs/deviceintegration/eglfs_x11/CMakeLists.txt:7 (qt_internal_add_plugin) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "EglFsKmsSupportPrivate" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): cmake/QtModuleHelpers.cmake:105 (_qt_internal_add_library) src/plugins/platforms/eglfs/deviceintegration/eglfs_kms_support/CMakeLists.txt:7 (qt_internal_add_module) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "EglFsKmsGbmSupportPrivate" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): cmake/QtModuleHelpers.cmake:105 (_qt_internal_add_library) src/plugins/platforms/eglfs/deviceintegration/eglfs_kms/CMakeLists.txt:7 (qt_internal_add_module) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "QEglFSKmsGbmIntegrationPlugin" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): src/corelib/Qt6CoreMacros.cmake:2080 (_qt_internal_add_library) cmake/QtPluginHelpers.cmake:87 (qt6_add_plugin) src/plugins/platforms/eglfs/deviceintegration/eglfs_kms/CMakeLists.txt:31 (qt_internal_add_plugin) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "QEglFSKmsEglDeviceIntegrationPlugin" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): src/corelib/Qt6CoreMacros.cmake:2080 (_qt_internal_add_library) cmake/QtPluginHelpers.cmake:87 (qt6_add_plugin) src/plugins/platforms/eglfs/deviceintegration/eglfs_kms_egldevice/CMakeLists.txt:7 (qt_internal_add_plugin) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "QEglFSEmulatorIntegrationPlugin" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): src/corelib/Qt6CoreMacros.cmake:2080 (_qt_internal_add_library) cmake/QtPluginHelpers.cmake:87 (qt6_add_plugin) src/plugins/platforms/eglfs/deviceintegration/eglfs_emu/CMakeLists.txt:7 (qt_internal_add_plugin) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "QMinimalEglIntegrationPlugin" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): src/corelib/Qt6CoreMacros.cmake:2080 (_qt_internal_add_library) cmake/QtPluginHelpers.cmake:87 (qt6_add_plugin) src/plugins/platforms/minimalegl/CMakeLists.txt:8 (qt_internal_add_plugin) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "QLinuxFbIntegrationPlugin" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): src/corelib/Qt6CoreMacros.cmake:2080 (_qt_internal_add_library) cmake/QtPluginHelpers.cmake:87 (qt6_add_plugin) src/plugins/platforms/linuxfb/CMakeLists.txt:7 (qt_internal_add_plugin) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "QVncIntegrationPlugin" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): src/corelib/Qt6CoreMacros.cmake:2080 (_qt_internal_add_library) cmake/QtPluginHelpers.cmake:87 (qt6_add_plugin) src/plugins/platforms/vnc/CMakeLists.txt:7 (qt_internal_add_plugin) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "QComposePlatformInputContextPlugin" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): src/corelib/Qt6CoreMacros.cmake:2080 (_qt_internal_add_library) cmake/QtPluginHelpers.cmake:87 (qt6_add_plugin) src/plugins/platforminputcontexts/compose/CMakeLists.txt:10 (qt_internal_add_plugin) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "QIbusPlatformInputContextPlugin" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): src/corelib/Qt6CoreMacros.cmake:2080 (_qt_internal_add_library) cmake/QtPluginHelpers.cmake:87 (qt6_add_plugin) src/plugins/platforminputcontexts/ibus/CMakeLists.txt:7 (qt_internal_add_plugin) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "QXdgDesktopPortalThemePlugin" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): src/corelib/Qt6CoreMacros.cmake:2080 (_qt_internal_add_library) cmake/QtPluginHelpers.cmake:87 (qt6_add_plugin) src/plugins/platformthemes/xdgdesktopportal/CMakeLists.txt:7 (qt_internal_add_plugin) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "QICOPlugin" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): src/corelib/Qt6CoreMacros.cmake:2080 (_qt_internal_add_library) cmake/QtPluginHelpers.cmake:87 (qt6_add_plugin) src/plugins/imageformats/ico/CMakeLists.txt:7 (qt_internal_add_plugin) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "QJpegPlugin" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): src/corelib/Qt6CoreMacros.cmake:2080 (_qt_internal_add_library) cmake/QtPluginHelpers.cmake:87 (qt6_add_plugin) src/plugins/imageformats/jpeg/CMakeLists.txt:9 (qt_internal_add_plugin) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "QGifPlugin" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): src/corelib/Qt6CoreMacros.cmake:2080 (_qt_internal_add_library) cmake/QtPluginHelpers.cmake:87 (qt6_add_plugin) src/plugins/imageformats/gif/CMakeLists.txt:7 (qt_internal_add_plugin) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "QEvdevMousePlugin" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): src/corelib/Qt6CoreMacros.cmake:2080 (_qt_internal_add_library) cmake/QtPluginHelpers.cmake:87 (qt6_add_plugin) src/plugins/generic/evdevmouse/CMakeLists.txt:7 (qt_internal_add_plugin) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "QEvdevTouchScreenPlugin" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): src/corelib/Qt6CoreMacros.cmake:2080 (_qt_internal_add_library) cmake/QtPluginHelpers.cmake:87 (qt6_add_plugin) src/plugins/generic/evdevtouch/CMakeLists.txt:7 (qt_internal_add_plugin) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "QEvdevKeyboardPlugin" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): src/corelib/Qt6CoreMacros.cmake:2080 (_qt_internal_add_library) cmake/QtPluginHelpers.cmake:87 (qt6_add_plugin) src/plugins/generic/evdevkeyboard/CMakeLists.txt:7 (qt_internal_add_plugin) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "QEvdevTabletPlugin" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): src/corelib/Qt6CoreMacros.cmake:2080 (_qt_internal_add_library) cmake/QtPluginHelpers.cmake:87 (qt6_add_plugin) src/plugins/generic/evdevtablet/CMakeLists.txt:7 (qt_internal_add_plugin) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "QTuioTouchPlugin" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): src/corelib/Qt6CoreMacros.cmake:2080 (_qt_internal_add_library) cmake/QtPluginHelpers.cmake:87 (qt6_add_plugin) src/plugins/generic/tuiotouch/CMakeLists.txt:7 (qt_internal_add_plugin) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "QCupsPrinterSupportPlugin" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): src/corelib/Qt6CoreMacros.cmake:2080 (_qt_internal_add_library) cmake/QtPluginHelpers.cmake:87 (qt6_add_plugin) src/plugins/printsupport/cups/CMakeLists.txt:9 (qt_internal_add_plugin) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "QNetworkManagerNetworkInformationPlugin" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): src/corelib/Qt6CoreMacros.cmake:2080 (_qt_internal_add_library) cmake/QtPluginHelpers.cmake:87 (qt6_add_plugin) src/plugins/networkinformation/networkmanager/CMakeLists.txt:1 (qt_internal_add_plugin) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "QTlsBackendOpenSSLPlugin" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): src/corelib/Qt6CoreMacros.cmake:2080 (_qt_internal_add_library) cmake/QtPluginHelpers.cmake:87 (qt6_add_plugin) src/plugins/tls/openssl/CMakeLists.txt:1 (qt_internal_add_plugin) CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "QTlsBackendCertOnlyPlugin" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): src/corelib/Qt6CoreMacros.cmake:2080 (_qt_internal_add_library) cmake/QtPluginHelpers.cmake:87 (qt6_add_plugin) src/plugins/tls/certonly/CMakeLists.txt:1 (qt_internal_add_plugin)
as I understand I missed some dependencies on the target becuase there was an also error like :
-- Configuring done CMake Error at src/corelib/Qt6CoreMacros.cmake:2247 (add_library): Target "BundledHarfbuzz" links to target "Threads::Threads" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): cmake/Qt3rdPartyLibraryHelpers.cmake:52 (_qt_internal_add_library) cmake/Qt3rdPartyLibraryHelpers.cmake:163 (qt_internal_add_common_qt_library_helper) src/3rdparty/harfbuzz-ng/CMakeLists.txt:7 (qt_internal_add_3rdparty_library)
And this one is gone when I installed on the target these :
sudo apt install libharfbuzz-bin libharfbuzz-devBut I am not sure about that what I should install for the ones above ?
Btw I can see the configuration summary.
Configure summary: Building for: linux-g++ (arm, CPU features: ) Compiler: gcc 7.5.0 Build options: Mode ................................... release Optimize release build for size ........ no Fully optimize release builds (-O3) .... no Building shared libraries .............. yes Using C standard ....................... C11 Using C++ standard ..................... C++17 Using ccache ........................... no Using new DTAGS ........................ yes Relocatable ............................ yes Using precompiled headers .............. yes Using LTCG ............................. no Target compiler supports: Extensions ........................... <none> Sanitizers: Addresses ............................ no Threads .............................. no Memory ............................... no Fuzzer (instrumentation only) ........ no Undefined ............................ no Build parts ............................ libs Qt modules and options: Qt Concurrent .......................... yes Qt D-Bus ............................... yes Qt D-Bus directly linked to libdbus .... yes Qt Gui ................................. yes Qt Network ............................. yes Qt PrintSupport ........................ yes Qt Sql ................................. yes Qt Testlib ............................. yes Qt Widgets ............................. yes Qt Xml ................................. yes Support enabled for: Using pkg-config ....................... yes udev ................................... no Using system zlib ...................... yes Zstandard support ...................... no Thread support ......................... yes Common build options: Linker can resolve circular dependencies yes Qt Core: backtrace .............................. yes DoubleConversion ....................... yes Using system DoubleConversion ........ no GLib ................................... yes ICU .................................... yes Using system libb2 ..................... no Built-in copy of the MIME database ..... yes cpp/winrt base ......................... no Tracing backend ........................ <none> Logging backends: journald ............................. no syslog ............................... no slog2 ................................ no PCRE2 .................................. yes Using system PCRE2 ................... yes CLONE_PIDFD support in forkfd .......... yes Qt Sql: SQL item models ........................ yes Qt Network: getifaddrs() ........................... yes IPv6 ifname ............................ yes libproxy ............................... no Linux AF_NETLINK ....................... yes OpenSSL ................................ yes Qt directly linked to OpenSSL ........ no OpenSSL 1.1 ............................ yes DTLS ................................... yes OCSP-stapling .......................... yes SCTP ................................... no Use system proxies ..................... yes GSSAPI ................................. no Brotli Decompression Support ........... yes Qt Gui: Accessibility .......................... yes FreeType ............................... yes Using system FreeType ................ yes HarfBuzz ............................... yes Using system HarfBuzz ................ yes Fontconfig ............................. yes Image formats: GIF .................................. yes ICO .................................. yes JPEG ................................. yes Using system libjpeg ............... yes PNG .................................. yes Using system libpng ................ yes Text formats: HtmlParser ........................... yes CssParser ............................ yes OdfWriter ............................ yes MarkdownReader ....................... yes Using system libmd4c ............... no MarkdownWriter ....................... yes EGL .................................... yes OpenVG ................................. no OpenGL: Desktop OpenGL ....................... no OpenGL ES 2.0 ........................ yes OpenGL ES 3.0 ........................ yes OpenGL ES 3.1 ........................ yes OpenGL ES 3.2 ........................ yes Vulkan ................................. no Session Management ..................... yes Features used by QPA backends: evdev .................................. yes libinput ............................... no INTEGRITY HID .......................... no mtdev .................................. no tslib .................................. no xkbcommon .............................. yes X11 specific: XLib ................................. yes XCB Xlib ............................. yes EGL on X11 ........................... yes xkbcommon-x11 ........................ yes xcb-sm ............................... no QPA backends: DirectFB ............................... no EGLFS .................................. yes EGLFS details: EGLFS OpenWFD ........................ no EGLFS i.Mx6 .......................... no EGLFS i.Mx6 Wayland .................. no EGLFS RCAR ........................... no EGLFS EGLDevice ...................... yes EGLFS GBM ............................ yes EGLFS VSP2 ........................... no EGLFS Mali ........................... no EGLFS Raspberry Pi ................... no EGLFS X11 ............................ yes LinuxFB ................................ yes VNC .................................... yes VK_KHR_display ......................... no QNX: lgmon ................................ no IMF .................................. no XCB: Using system-provided xcb-xinput ..... yes GL integrations: GLX Plugin ......................... no XCB GLX .......................... no EGL-X11 Plugin ..................... yes Windows: Direct 2D ............................ no Direct 2D 1.1 ........................ no DirectWrite .......................... no DirectWrite 3 ........................ no Qt Widgets: GTK+ ................................... no Styles ................................. Fusion Windows Qt Testlib: Tester for item models ................. yes Qt PrintSupport: CUPS ................................... yes Qt Sql Drivers: DB2 (IBM) .............................. no InterBase .............................. yes MySql .................................. no OCI (Oracle) ........................... no ODBC ................................... no PostgreSQL ............................. yes SQLite ................................. yes Using system provided SQLite ......... no
What I am missing here ? I correctly mapped the sysroot directory to my host machine and run the cmake command.
Thank you.
-
update:
looks like the problem is related with cmake. It can not find the related .cmake files even if CMAKE_PREFIX_PATH is used.So I updated the cmake to latest version. then I see less issues
-- Configuring done CMake Error at CMakeLists.txt:158 (add_subdirectory): The link interface of target "Platform" contains: Threads::Threads but the target was not found. Possible reasons include: * There is a typo in the target name. * A find_package call is missing for an IMPORTED target. * An ALIAS target is missing. CMake Error at cmake/FindWrapSystemHarfbuzz.cmake:56 (target_link_libraries): The link interface of target "WrapSystemHarfbuzz::WrapSystemHarfbuzz" contains: PkgConfig::PC_HARFBUZZ but the target was not found. Possible reasons include: * There is a typo in the target name. * A find_package call is missing for an IMPORTED target. * An ALIAS target is missing. Call Stack (most recent call first): cmake/QtFindPackageHelpers.cmake:130 (find_package) src/gui/configure.cmake:41 (qt_find_package) cmake/QtFeature.cmake:573 (include) src/CMakeLists.txt:12 (qt_feature_evaluate_features)
Just two packages have the problem. But these are not logical to me also.
-
For threads I added these to toolchain cmake
set(CMAKE_THREAD_LIBS_INIT "-lpthread") set(CMAKE_HAVE_THREADS_LIBRARY 1) set(CMAKE_USE_WIN32_THREADS_INIT 0) set(CMAKE_USE_PTHREADS_INIT 1) set(THREADS_PREFER_PTHREAD_FLAG ON)
and I removed the harfbuzz package from target.
Now I am able to configure the qt6.2.4 but during the compiling there is a problem
/qtbase-everywhere-src-6.2.4/include/QtCore/6.2.4/QtCore/private/../../../../../src/corelib/kernel/qproperty_p.h:553:30: error: ‘(QItemSelectionModelPrivate::modelChanged == 0)’ is not a constant expression if constexpr (Signal != nullptr) { ~~~~~~~^~~~~~~~~~ [10/1138] Building CXX object src/corelib/CMakeFiles/Core.dir/kernel/qvariant.cpp.o ninja: build stopped: subcommand failed.
it is seen as a bug in gcc.
It is getting more and more complex :D