Solved Qt 6.2.4 Cross-Compile Windows Raspberry ARMV8
I'm here again after exactly 2 years!!!
I'm in troble with compile QT for raspberry 64 bit. I've got the first part, windows x86_64 but the arm compile failed with some error.
I'm working under Windows 10 with aarch64-linux-gnu-cc.exe(10.2.1) and aarch64-linux-gnu-g++.exe" (10.2.1) compiler, Cmake: cmake version 3.20.21032501-MSVC_2 or cmake come with qt tools (same problem).
This my trouble:
CMake Error in src/corelib/CMakeLists.txt: Imported target "WrapDoubleConversion::WrapDoubleConversion" includes non-existent path "/usr/include/double-conversion" in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include: * The path was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and references files it does not provide. 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)
Thanks a lot for any suggest you can give me!
This post is deleted!
Could you please explain that what is the solution for this issue ? I have same kind of problem during configuration.
in my case I have modified some cmake:
sysroot \ usr \ lib \ aarch64-linux-gnu \ cmake \ double-conversion \ double-conversionConfig
qt-everywhere-src-6.2.4 \ qtbase \ cmake \ FindZSTD
#find_package_handle_standard_args(ZSTD REQUIRED_VARS ZSTD_LIBRARIES ZSTD_INCLUDE_DIRS # VERSION_VAR PC_ZSTD_VERSION) find_package_handle_standard_args(ZSTD REQUIRED_VARS ZSTD_LIBRARIES ZSTD_INCLUDE_DIRS)
set_target_properties(double-conversion::double-conversion PROPERTIES #INTERFACE_INCLUDE_DIRECTORIES "/usr/include/double-conversion" INTERFACE_INCLUDE_DIRECTORIES add your sysroot path"/usr/include/double-conversion" )
Thanks for the reply,
But I see a problem like this :
-- Configuring done 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) -- Generating done CMake Warning:
Do you have any idea about it ? This can be related with your problem ?