Hi. I want Build Qt6 for OpenWRT. But now I had stuck. Qt6 use for build cmake instead qmake. And thi is my log:
-- The following packages have been found:
* QtBuildInternals
* Qt6HostInfo
* ZLIB (required version >= 1.0.8)
* WrapZLIB (required version >= 1.0.8)
* zstd
* ZSTD (required version >= 1.3), ZSTD compression library, <https://github.com/facebook/zstd>
* OpenSSL
* Threads
* WrapPCRE2
* WrapAtomic
* WrapRt
* WrapOpenSSLHeaders
* WrapOpenSSL
* Qt6CoreTools (required version >= 6.2.1)
* Qt6WidgetsTools (required version >= 6.2.1)
* PkgConfig
-- The following OPTIONAL packages have not been found:
* DBus1 (required version >= 1.2)
* WrapDBus1 (required version >= 1.2)
* Libudev
* Backtrace
* WrapBacktrace
* double-conversion
* WrapDoubleConversion
* GLIB2, Event loop and utility library, <https://wiki.gnome.org/Projects/GLib>
* ICU
* Libsystemd
* Libb2
* LTTngUST
* PCRE2 (required version >= 10.20)
* WrapSystemPCRE2 (required version >= 10.20)
* Slog2
* unofficial-brotli
* WrapBrotli
* Libproxy
* GSSAPI, Generic Security Services Application Program Interface
* DB2, IBM DB2 client library, <https://www.ibm.com>
* MySQL, MySQL client library, <https://www.mysql.com>
* PostgreSQL
* Oracle, Oracle client library, <https://www.oracle.com>
* ODBC
* SQLite3
* Interbase, Interbase client library, <https://www.embarcadero.com/products/interbase>
Configure summary:
Building for: linux-g++ (arm64, CPU features: cx16 neon crc32)
Compiler: gcc 11.2.0
Build options:
Mode ................................... release
Optimize release build for size ........ no
optimize_full .......................... yes
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:
Intrinsics without compiler architecture option yes
Extensions ........................... NEON CRC32
Sanitizers:
Addresses ............................ no
Threads .............................. no
Memory ............................... no
Fuzzer (instrumentation only) ........ no
Undefined ............................ no
Build parts ............................ libs
Qt modules and options:
Qt Concurrent .......................... yes
dbus ................................... no
Qt D-Bus directly linked to libdbus .... no
gui .................................... no
Qt Network ............................. yes
Qt PrintSupport ........................ no
Qt Sql ................................. yes
testlib ................................ no
widgets ................................ no
Qt Xml ................................. yes
Support enabled for:
Using pkg-config ....................... yes
udev ................................... no
Using system zlib ...................... yes
Zstandard support ...................... yes
Thread support ......................... yes
Common build options:
Linker can resolve circular dependencies yes
Qt Core:
backtrace .............................. no
DoubleConversion ....................... yes
Using system DoubleConversion ........ no
GLib ................................... no
ICU .................................... no
Using system libb2 ..................... no
Built-in copy of the MIME database ..... yes
Tracing backend ........................ <none>
Logging backends:
journald ............................. no
syslog ............................... no
slog2 ................................ no
PCRE2 .................................. yes
system_pcre2 ........................... no
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
openssl_linked ......................... yes
OpenSSL 1.1 ............................ yes
DTLS ................................... no
OCSP-stapling .......................... yes
SCTP ................................... no
Use system proxies ..................... yes
GSSAPI ................................. no
Brotli Decompression Support ........... no
Qt Sql Drivers:
DB2 (IBM) .............................. no
InterBase .............................. no
MySql .................................. no
OCI (Oracle) ........................... no
ODBC ................................... no
PostgreSQL ............................. no
SQLite ................................. yes
Using system provided SQLite ......... no
Note: When linking against OpenSSL, you can override the default library names through OPENSSL_LIBS. For example: OPENSSL_LIBS='-L/opt/ssl/lib -lssl -lcrypto' ./configure -openssl-linked
Qt is now configured for building. Just run 'cmake --build . --parallel'
Once everything is built, you must run 'cmake --install .'
Qt will be installed into '/usr'
To configure and build other Qt modules, you can use the following convenience script:
/usr/bin/qt-configure-module
If reconfiguration fails for some reason, try to remove 'CMakeCache.txt' from the build directory
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_ASM_COMPILER_LAUNCHER
CMAKE_EXPORT_NO_PACKAGE_REGISTRY
CMAKE_EXPORT_PACKAGE_REGISTRY
CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY
CMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY
DL_LIBRARY
-- Build files have been written to: /home/dmitriy/MyProk/openwrt/build_dir/target-aarch64_cortex-a53_musl/qtbase-everywhere-src-6.2.1
touch /home/dmitriy/MyProk/openwrt/build_dir/target-aarch64_cortex-a53_musl/qtbase-everywhere-src-6.2.1/.configured_ca56b0f2f895367a47beda687dd49ce6
rm -f /home/dmitriy/MyProk/openwrt/build_dir/target-aarch64_cortex-a53_musl/qtbase-everywhere-src-6.2.1/.built
touch /home/dmitriy/MyProk/openwrt/build_dir/target-aarch64_cortex-a53_musl/qtbase-everywhere-src-6.2.1/.built_check
MAKEFLAGS="--jobserver-auth=3,4" /home/dmitriy/MyProk/openwrt/staging_dir/host/bin/ninja -C /home/dmitriy/MyProk/openwrt/build_dir/target-aarch64_cortex-a53_musl/qtbase-everywhere-src-6.2.1
ninja: Entering directory `/home/dmitriy/MyProk/openwrt/build_dir/target-aarch64_cortex-a53_musl/qtbase-everywhere-src-6.2.1'
[230/424] Building CXX object src/corelib/CMakeFiles/Core.dir/io/forkfd_qt.cpp.o
In file included from /home/dmitriy/MyProk/openwrt/build_dir/target-aarch64_cortex-a53_musl/qtbase-everywhere-src-6.2.1/src/corelib/io/forkfd_qt.cpp:48:
/home/dmitriy/MyProk/openwrt/build_dir/target-aarch64_cortex-a53_musl/qtbase-everywhere-src-6.2.1/src/corelib/io/../../3rdparty/forkfd/forkfd.c: In function 'int forkfd(int, pid_t*)':
/home/dmitriy/MyProk/openwrt/build_dir/target-aarch64_cortex-a53_musl/qtbase-everywhere-src-6.2.1/src/corelib/io/../../3rdparty/forkfd/forkfd.c:647:9: warning: unused variable 'efd' [-Wunused-variable]
647 | int efd;
| ^~~
[265/424] Linking CXX shared library lib/libQt6Core.so.6.2.1
FAILED: lib/libQt6Core.so.6.2.1 src/corelib/Core.version /home/dmitriy/MyProk/openwrt/build_dir/target-aarch64_cortex-a53_musl/qtbase-everywhere-src-6.2.1/src/corelib/Core.version
cd /home/dmitriy/MyProk/openwrt/build_dir/target-aarch64_cortex-a53_musl/qtbase-everywhere-src-6.2.1/src/corelib && /home/dmitriy/MyProk/openwrt/staging_dir/host/bin/perl /home/dmitriy/MyProk/openwrt/build_dir/target-aarch64_cortex-a53_musl/qtbase-everywhere-src-6.2.1/mkspecs/features/data/unix/findclasslist.pl < /home/dmitriy/MyProk/openwrt/build_dir/target-aarch64_cortex-a53_musl/qtbase-everywhere-src-6.2.1/src/corelib/Core.version.in > /home/dmitriy/MyProk/openwrt/build_dir/target-aarch64_cortex-a53_musl/qtbase-everywhere-src-6.2.1/src/corelib/Core.version && cd /home/dmitriy/MyProk/openwrt/build_dir/target-aarch64_cortex-a53_musl/qtbase-everywhere-src-6.2.1 && /home/dmitriy/MyProk/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/bin/aarch64-openwrt-linux-musl-g++ -fPIC -Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/home/dmitriy/MyProk/openwrt/build_dir/target-aarch64_cortex-a53_musl/qtbase-everywhere-src-6.2.1=qtbase-everywhere-src-6.2.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DNDEBUG -O3 -L/home/dmitriy/MyProk/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/usr/lib -L/home/dmitriy/MyProk/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/lib -znow -zrelro -Wl,-Bsymbolic-functions -Wl,--version-script,/home/dmitriy/MyProk/openwrt/build_dir/target-aarch64_cortex-a53_musl/qtbase-everywhere-src-6.2.1/src/corelib/Core.version -Wl,--no-undefined -Wl,--enable-new-dtags -shared -Wl,-soname,libQt6Core.so.6 -o lib/libQt6Core.so.6.2.1 src/corelib/CMakeFiles/Core.dir/Core_autogen/mocs_compilation.cpp.o src/corelib/CMakeFiles/Core.dir/global/archdetect.cpp.o src/corelib/CMakeFiles/Core.dir/global/qendian.cpp.o src/corelib/CMakeFiles/Core.dir/global/qfloat16.cpp.o src/corelib/CMakeFiles/Core.dir/global/qglobal.cpp.o src/corelib/CMakeFiles/Core.dir/global/qhooks.cpp.o src/corelib/CMakeFiles/Core.dir/global/qlibraryinfo.cpp.o src/corelib/CMakeFiles/Core.dir/global/qlogging.cpp.o src/corelib/CMakeFiles/Core.dir/global/qmalloc.cpp.o src/corelib/CMakeFiles/Core.dir/global/qnumeric.cpp.o src/corelib/CMakeFiles/Core.dir/global/qoperatingsystemversion.cpp.o src/corelib/CMakeFiles/Core.dir/global/qrandom.cpp.o src/corelib/CMakeFiles/Core.dir/global/qsimd.cpp.o src/corelib/CMakeFiles/Core.dir/io/qabstractfileengine.cpp.o src/corelib/CMakeFiles/Core.dir/io/qbuffer.cpp.o src/corelib/CMakeFiles/Core.dir/io/qdataurl.cpp.o src/corelib/CMakeFiles/Core.dir/io/qdebug.cpp.o src/corelib/CMakeFiles/Core.dir/io/qdir.cpp.o src/corelib/CMakeFiles/Core.dir/io/qdiriterator.cpp.o src/corelib/CMakeFiles/Core.dir/io/qfile.cpp.o src/corelib/CMakeFiles/Core.dir/io/qfiledevice.cpp.o src/corelib/CMakeFiles/Core.dir/io/qfileinfo.cpp.o src/corelib/CMakeFiles/Core.dir/io/qfileselector.cpp.o src/corelib/CMakeFiles/Core.dir/io/qfilesystemengine.cpp.o src/corelib/CMakeFiles/Core.dir/io/qfilesystementry.cpp.o src/corelib/CMakeFiles/Core.dir/io/qfsfileengine.cpp.o src/corelib/CMakeFiles/Core.dir/io/qfsfileengine_iterator.cpp.o src/corelib/CMakeFiles/Core.dir/io/qiodevice.cpp.o src/corelib/CMakeFiles/Core.dir/io/qipaddress.cpp.o src/corelib/CMakeFiles/Core.dir/io/qlockfile.cpp.o src/corelib/CMakeFiles/Core.dir/io/qloggingcategory.cpp.o src/corelib/CMakeFiles/Core.dir/io/qloggingregistry.cpp.o src/corelib/CMakeFiles/Core.dir/io/qnoncontiguousbytedevice.cpp.o src/corelib/CMakeFiles/Core.dir/io/qresource.cpp.o src/corelib/CMakeFiles/Core.dir/io/qresource_iterator.cpp.o src/corelib/CMakeFiles/Core.dir/io/qsavefile.cpp.o src/corelib/CMakeFiles/Core.dir/io/qstandardpaths.cpp.o src/corelib/CMakeFiles/Core.dir/io/qstorageinfo.cpp.o src/corelib/CMakeFiles/Core.dir/io/qtemporarydir.cpp.o src/corelib/CMakeFiles/Core.dir/io/qtemporaryfile.cpp.o src/corelib/CMakeFiles/Core.dir/io/qurl.cpp.o src/corelib/CMakeFiles/Core.dir/io/qurlidna.cpp.o src/corelib/CMakeFiles/Core.dir/io/qurlquery.cpp.o src/corelib/CMakeFiles/Core.dir/io/qurlrecode.cpp.o src/corelib/CMakeFiles/Core.dir/itemmodels/qabstractitemmodel.cpp.o src/corelib/CMakeFiles/Core.dir/itemmodels/qitemselectionmodel.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qabstracteventdispatcher.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qabstractnativeeventfilter.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qassociativeiterable.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qbasictimer.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qcoreapplication.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qcoreevent.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qcoreglobaldata.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qdeadlinetimer.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qelapsedtimer.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qeventloop.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qiterable.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qmath.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qmetacontainer.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qmetaobject.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qmetaobjectbuilder.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qmetatype.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qmimedata.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qobject.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qobjectcleanuphandler.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qpointer.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qproperty.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qsequentialiterable.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qsharedmemory.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qsignalmapper.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qsocketnotifier.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qsystemerror.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qsystemsemaphore.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qtestsupport_core.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qtimer.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qtranslator.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qvariant.cpp.o src/corelib/CMakeFiles/Core.dir/plugin/qfactoryinterface.cpp.o src/corelib/CMakeFiles/Core.dir/plugin/qfactoryloader.cpp.o src/corelib/CMakeFiles/Core.dir/plugin/qpluginloader.cpp.o src/corelib/CMakeFiles/Core.dir/plugin/quuid.cpp.o src/corelib/CMakeFiles/Core.dir/serialization/qcborcommon.cpp.o src/corelib/CMakeFiles/Core.dir/serialization/qcbordiagnostic.cpp.o src/corelib/CMakeFiles/Core.dir/serialization/qcborvalue.cpp.o src/corelib/CMakeFiles/Core.dir/serialization/qdatastream.cpp.o src/corelib/CMakeFiles/Core.dir/serialization/qjsonarray.cpp.o src/corelib/CMakeFiles/Core.dir/serialization/qjsoncbor.cpp.o src/corelib/CMakeFiles/Core.dir/serialization/qjsondocument.cpp.o src/corelib/CMakeFiles/Core.dir/serialization/qjsonobject.cpp.o src/corelib/CMakeFiles/Core.dir/serialization/qjsonparser.cpp.o src/corelib/CMakeFiles/Core.dir/serialization/qjsonvalue.cpp.o src/corelib/CMakeFiles/Core.dir/serialization/qjsonwriter.cpp.o src/corelib/CMakeFiles/Core.dir/serialization/qtextstream.cpp.o src/corelib/CMakeFiles/Core.dir/serialization/qxmlstream.cpp.o src/corelib/CMakeFiles/Core.dir/serialization/qxmlstreamgrammar.cpp.o src/corelib/CMakeFiles/Core.dir/serialization/qxmlutils.cpp.o src/corelib/CMakeFiles/Core.dir/text/qbytearray.cpp.o src/corelib/CMakeFiles/Core.dir/text/qbytearraylist.cpp.o src/corelib/CMakeFiles/Core.dir/text/qbytearraymatcher.cpp.o src/corelib/CMakeFiles/Core.dir/text/qcollator.cpp.o src/corelib/CMakeFiles/Core.dir/text/qlocale.cpp.o src/corelib/CMakeFiles/Core.dir/text/qlocale_tools.cpp.o src/corelib/CMakeFiles/Core.dir/text/qstring.cpp.o src/corelib/CMakeFiles/Core.dir/text/qstringbuilder.cpp.o src/corelib/CMakeFiles/Core.dir/text/qstringconverter.cpp.o src/corelib/CMakeFiles/Core.dir/text/qstringlist.cpp.o src/corelib/CMakeFiles/Core.dir/text/qstringtokenizer.cpp.o src/corelib/CMakeFiles/Core.dir/text/qstringview.cpp.o src/corelib/CMakeFiles/Core.dir/text/qtextboundaryfinder.cpp.o src/corelib/CMakeFiles/Core.dir/text/qunicodetools.cpp.o src/corelib/CMakeFiles/Core.dir/text/qvsnprintf.cpp.o src/corelib/CMakeFiles/Core.dir/thread/qrunnable.cpp.o src/corelib/CMakeFiles/Core.dir/thread/qthread.cpp.o src/corelib/CMakeFiles/Core.dir/time/qcalendar.cpp.o src/corelib/CMakeFiles/Core.dir/time/qdatetime.cpp.o src/corelib/CMakeFiles/Core.dir/time/qgregoriancalendar.cpp.o src/corelib/CMakeFiles/Core.dir/time/qjuliancalendar.cpp.o src/corelib/CMakeFiles/Core.dir/time/qmilankoviccalendar.cpp.o src/corelib/CMakeFiles/Core.dir/time/qromancalendar.cpp.o src/corelib/CMakeFiles/Core.dir/tools/qarraydata.cpp.o src/corelib/CMakeFiles/Core.dir/tools/qbitarray.cpp.o src/corelib/CMakeFiles/Core.dir/tools/qcontiguouscache.cpp.o src/corelib/CMakeFiles/Core.dir/tools/qcryptographichash.cpp.o src/corelib/CMakeFiles/Core.dir/tools/qfreelist.cpp.o src/corelib/CMakeFiles/Core.dir/tools/qhash.cpp.o src/corelib/CMakeFiles/Core.dir/tools/qline.cpp.o src/corelib/CMakeFiles/Core.dir/tools/qmargins.cpp.o src/corelib/CMakeFiles/Core.dir/tools/qmessageauthenticationcode.cpp.o src/corelib/CMakeFiles/Core.dir/tools/qpoint.cpp.o src/corelib/CMakeFiles/Core.dir/tools/qrect.cpp.o src/corelib/CMakeFiles/Core.dir/tools/qrefcount.cpp.o src/corelib/CMakeFiles/Core.dir/tools/qringbuffer.cpp.o src/corelib/CMakeFiles/Core.dir/tools/qshareddata.cpp.o src/corelib/CMakeFiles/Core.dir/tools/qsharedpointer.cpp.o src/corelib/CMakeFiles/Core.dir/tools/qsize.cpp.o src/corelib/CMakeFiles/Core.dir/tools/qversionnumber.cpp.o src/corelib/CMakeFiles/Core.dir/animation/qabstractanimation.cpp.o src/corelib/CMakeFiles/Core.dir/animation/qanimationgroup.cpp.o src/corelib/CMakeFiles/Core.dir/animation/qparallelanimationgroup.cpp.o src/corelib/CMakeFiles/Core.dir/animation/qpauseanimation.cpp.o src/corelib/CMakeFiles/Core.dir/animation/qpropertyanimation.cpp.o src/corelib/CMakeFiles/Core.dir/animation/qsequentialanimationgroup.cpp.o src/corelib/CMakeFiles/Core.dir/animation/qvariantanimation.cpp.o src/corelib/CMakeFiles/Core.dir/global/minimum-linux.S.o src/corelib/CMakeFiles/Core.dir/global/qversiontagging.cpp.o src/corelib/CMakeFiles/Core.dir/io/qfilesystemengine_unix.cpp.o src/corelib/CMakeFiles/Core.dir/io/qfilesystemiterator_unix.cpp.o src/corelib/CMakeFiles/Core.dir/io/qfsfileengine_unix.cpp.o src/corelib/CMakeFiles/Core.dir/io/qlockfile_unix.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qcore_unix.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qeventdispatcher_unix.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qtimerinfo_unix.cpp.o src/corelib/CMakeFiles/Core.dir/thread/qthread_unix.cpp.o src/corelib/CMakeFiles/Core.dir/thread/qatomic.cpp.o src/corelib/CMakeFiles/Core.dir/thread/qmutex.cpp.o src/corelib/CMakeFiles/Core.dir/thread/qreadwritelock.cpp.o src/corelib/CMakeFiles/Core.dir/thread/qsemaphore.cpp.o src/corelib/CMakeFiles/Core.dir/thread/qthreadpool.cpp.o src/corelib/CMakeFiles/Core.dir/thread/qthreadstorage.cpp.o src/corelib/CMakeFiles/Core.dir/thread/qwaitcondition_unix.cpp.o src/corelib/CMakeFiles/Core.dir/thread/qexception.cpp.o src/corelib/CMakeFiles/Core.dir/thread/qfutureinterface.cpp.o src/corelib/CMakeFiles/Core.dir/thread/qfuturewatcher.cpp.o src/corelib/CMakeFiles/Core.dir/thread/qresultstore.cpp.o src/corelib/CMakeFiles/Core.dir/tools/qcommandlineoption.cpp.o src/corelib/CMakeFiles/Core.dir/tools/qcommandlineparser.cpp.o src/corelib/CMakeFiles/Core.dir/__/3rdparty/double-conversion/double-conversion/bignum.cc.o src/corelib/CMakeFiles/Core.dir/__/3rdparty/double-conversion/double-conversion/bignum-dtoa.cc.o src/corelib/CMakeFiles/Core.dir/__/3rdparty/double-conversion/double-conversion/cached-powers.cc.o src/corelib/CMakeFiles/Core.dir/__/3rdparty/double-conversion/double-conversion/double-to-string.cc.o src/corelib/CMakeFiles/Core.dir/__/3rdparty/double-conversion/double-conversion/fast-dtoa.cc.o src/corelib/CMakeFiles/Core.dir/__/3rdparty/double-conversion/double-conversion/fixed-dtoa.cc.o src/corelib/CMakeFiles/Core.dir/__/3rdparty/double-conversion/double-conversion/string-to-double.cc.o src/corelib/CMakeFiles/Core.dir/__/3rdparty/double-conversion/double-conversion/strtod.cc.o src/corelib/CMakeFiles/Core.dir/tools/qeasingcurve.cpp.o src/corelib/CMakeFiles/Core.dir/tools/qtimeline.cpp.o src/corelib/CMakeFiles/Core.dir/text/qlocale_unix.cpp.o src/corelib/CMakeFiles/Core.dir/text/qcollator_posix.cpp.o src/corelib/CMakeFiles/Core.dir/text/qregularexpression.cpp.o src/corelib/CMakeFiles/Core.dir/time/qhijricalendar.cpp.o src/corelib/CMakeFiles/Core.dir/time/qislamiccivilcalendar.cpp.o src/corelib/CMakeFiles/Core.dir/time/qjalalicalendar.cpp.o src/corelib/CMakeFiles/Core.dir/time/qtimezone.cpp.o src/corelib/CMakeFiles/Core.dir/time/qtimezoneprivate.cpp.o src/corelib/CMakeFiles/Core.dir/time/qtimezoneprivate_tz.cpp.o src/corelib/CMakeFiles/Core.dir/time/qdatetimeparser.cpp.o src/corelib/CMakeFiles/Core.dir/io/qfilesystemwatcher.cpp.o src/corelib/CMakeFiles/Core.dir/io/qfilesystemwatcher_polling.cpp.o src/corelib/CMakeFiles/Core.dir/io/qfilesystemwatcher_inotify.cpp.o src/corelib/CMakeFiles/Core.dir/io/qprocess.cpp.o src/corelib/CMakeFiles/Core.dir/io/qprocess_unix.cpp.o src/corelib/CMakeFiles/Core.dir/io/qsettings.cpp.o src/corelib/CMakeFiles/Core.dir/io/forkfd_qt.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qelapsedtimer_unix.cpp.o src/corelib/CMakeFiles/Core.dir/io/qstandardpaths_unix.cpp.o src/corelib/CMakeFiles/Core.dir/io/qstorageinfo_unix.cpp.o src/corelib/CMakeFiles/Core.dir/itemmodels/qabstractproxymodel.cpp.o src/corelib/CMakeFiles/Core.dir/itemmodels/qconcatenatetablesproxymodel.cpp.o src/corelib/CMakeFiles/Core.dir/itemmodels/qidentityproxymodel.cpp.o src/corelib/CMakeFiles/Core.dir/itemmodels/qsortfilterproxymodel.cpp.o src/corelib/CMakeFiles/Core.dir/itemmodels/qtransposeproxymodel.cpp.o src/corelib/CMakeFiles/Core.dir/itemmodels/qstringlistmodel.cpp.o src/corelib/CMakeFiles/Core.dir/plugin/qelfparser_p.cpp.o src/corelib/CMakeFiles/Core.dir/plugin/qlibrary.cpp.o src/corelib/CMakeFiles/Core.dir/plugin/qmachparser.cpp.o src/corelib/CMakeFiles/Core.dir/plugin/qlibrary_unix.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qsharedmemory_posix.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qsharedmemory_systemv.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qsharedmemory_unix.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qsystemsemaphore_posix.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qsystemsemaphore_systemv.cpp.o src/corelib/CMakeFiles/Core.dir/kernel/qsystemsemaphore_unix.cpp.o src/corelib/CMakeFiles/Core.dir/serialization/qcborstreamreader.cpp.o src/corelib/CMakeFiles/Core.dir/serialization/qcborstreamwriter.cpp.o src/corelib/CMakeFiles/Core.dir/mimetypes/qmimedatabase.cpp.o src/corelib/CMakeFiles/Core.dir/mimetypes/qmimeglobpattern.cpp.o src/corelib/CMakeFiles/Core.dir/mimetypes/qmimemagicrule.cpp.o src/corelib/CMakeFiles/Core.dir/mimetypes/qmimemagicrulematcher.cpp.o src/corelib/CMakeFiles/Core.dir/mimetypes/qmimeprovider.cpp.o src/corelib/CMakeFiles/Core.dir/mimetypes/qmimetype.cpp.o src/corelib/CMakeFiles/Core.dir/mimetypes/qmimetypeparser.cpp.o -lm -ldl /home/dmitriy/MyProk/openwrt/staging_dir/target-aarch64_cortex-a53_musl/usr/lib/libz.so lib/libQt6BundledPcre2.a /home/dmitriy/MyProk/openwrt/staging_dir/host/lib/libzstd.a -pthread /home/dmitriy/MyProk/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/lib/librt.a && :
/home/dmitriy/MyProk/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/lib/gcc/aarch64-openwrt-linux-musl/11.2.0/../../../../aarch64-openwrt-linux-musl/bin/ld: /home/dmitriy/MyProk/openwrt/staging_dir/host/lib/libzstd.a(zstd_common.c.o): Relocations in generic ELF (EM: 62)
/home/dmitriy/MyProk/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/lib/gcc/aarch64-openwrt-linux-musl/11.2.0/../../../../aarch64-openwrt-linux-musl/bin/ld: /home/dmitriy/MyProk/openwrt/staging_dir/host/lib/libzstd.a(zstd_common.c.o): Relocations in generic ELF (EM: 62)
/home/dmitriy/MyProk/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/lib/gcc/aarch64-openwrt-linux-musl/11.2.0/../../../../aarch64-openwrt-linux-musl/bin/ld: /home/dmitriy/MyProk/openwrt/staging_dir/host/lib/libzstd.a: error adding symbols: file in wrong format
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
make[2]: *** [Makefile:365: /home/dmitriy/MyProk/openwrt/build_dir/target-aarch64_cortex-a53_musl/qtbase-everywhere-src-6.2.1/.built] Error 1
make[2]: Leaving directory '/home/dmitriy/MyProk/openwrt/package/qBittorrent/qt6'
time: package/qBittorrent/qt6/compile#594.39#32.04#109.20
ERROR: package/qBittorrent/qt6 failed to build.
make[1]: *** [package/Makefile:116: package/qBittorrent/qt6/compile] Error 1
make[1]: Leaving directory '/home/dmitriy/MyProk/openwrt'
make: *** [/home/dmitriy/MyProk/openwrt/include/toplevel.mk:230: package/qBittorrent/compile] Error 2
I want explain about -DQT_HOST_PATH options. For qt6 don't build in standalone mode. You need install Qt 6 on your's host system and set this part. This is my qt6 set:
And this is my make file for OpenWRT: https://cloud.mail.ru/public/e5do/Ptp8kn43Q