Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
None
-
6.7.0 RC, dev
-
None
-
Host: Ubuntu 22 x86_64
Description
My goal is cross-compile Qt with sctp.
I make repo about this problem. You can do step-by-step from my repo. I have attached files from my repo.
I can compile Qt for host without problems. After I try cross-compile but I get error
-- Configure summary: Building for: linux-g++-32 (i386, CPU features: ) Compiler: gcc 12.3.0 Build options: Mode ................................... release Optimize release build for size ........ no Fully optimize release builds (-O3) .... no Building shared libraries .............. no Using ccache ........................... no Unity Build ............................ no Using new DTAGS ........................ yes Relocatable ............................ no Using precompiled headers .............. yes Using Link Time Optimization (LTCG) .... no Using Intel CET ........................ no Target compiler supports: x86 Intrinsics ....................... Basic VAES Sanitizers: Addresses ............................ no Threads .............................. no Memory ............................... no Fuzzer (instrumentation only) ........ no Undefined ............................ no Build parts ............................ libs Install examples sources ............... no Qt modules and options: Qt Concurrent .......................... yes dbus ................................... no dbus_linked ............................ no gui .................................... no network ................................ yes Qt PrintSupport ........................ no Qt Sql ................................. no Qt Testlib ............................. no widgets ................................ no Qt Xml ................................. no Support enabled for: Using pkg-config ....................... no Using vcpkg ............................ no udev ................................... no OpenSSL ................................ yes Qt directly linked to OpenSSL ........ no OpenSSL 1.1 ............................ no OpenSSL 3.0 ............................ yes 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 CLONE_PIDFD support in forkfd .......... yes GLib ................................... no ICU .................................... no Using system libb2 ..................... no Built-in copy of the MIME database ..... yes Application permissions ................ yes Defaulting legacy IPC to POSIX ......... no Tracing backend ........................ <none> OpenSSL based cryptographic hash ....... no Logging backends: journald ............................. no syslog ............................... no slog2 ................................ no PCRE2 .................................. yes Using system PCRE2 ................... no Qt Network: getifaddrs() ........................... no IPv6 ifname ............................ no libproxy ............................... no Linux AF_NETLINK ....................... yes DTLS ................................... yes OCSP-stapling .......................... yes sctp ................................... yes Use system proxies ..................... yes GSSAPI ................................. no Brotli Decompression Support ........... no qIsEffectiveTLD() ...................... yes Built-in publicsuffix database ....... yes System publicsuffix database ......... yes Core tools: Android deployment tool ................ no macOS deployment tool .................. no Windows deployment tool ................ no qmake .................................. no Note: Using static linking will disable the use of dynamically loaded plugins. Make sure to import all needed static plugins, or compile needed modules into the library. -- 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/local/Qt-6.7.0' To configure and build other Qt modules, you can use the following convenience script: /home/a/Downloads/myGitHub/test_delme/QT_FEATURE_sctp_qa_automation/Qt_themself/build_cross/../build_artifacts_cross/bin/qt-configure-module If reconfiguration fails for some reason, try removing 'CMakeCache.txt' from the build directory Alternatively, you can add the --fresh flag to your CMake flags. -- Configuring done (6.7s) -- Generating done (0.1s) -- Build files have been written to: /home/a/Downloads/myGitHub/test_delme/QT_FEATURE_sctp_qa_automation/Qt_themself/build_cross [41/393] Automatic MOC for target Core AutoMoc: /home/a/Downloads/myGitHub/test_delme/QT_FEATURE_sctp_qa_automation/Qt_themself/qt5/qtbase/src/corelib/kernel/qtranslator.h: note: No relevant classes found. No output generated. [331/393] Building CXX object qtbase/src/network/CMakeFiles/Network.dir/socket/qnativesocketengine_unix.cpp.o FAILED: qtbase/src/network/CMakeFiles/Network.dir/socket/qnativesocketengine_unix.cpp.o /home/a/Downloads/myGitHub/test_delme/QT_FEATURE_sctp_qa_automation/myBuildroot/buildroot/output/host/bin/i586-buildroot-linux-gnu-g++ --sysroot=/home/a/Downloads/myGitHub/test_delme/QT_FEATURE_sctp_qa_automation/myBuildroot/buildroot/output/host/i586-buildroot-linux-gnu/sysroot/ -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_NETWORK_LIB -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x050000 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_LEAN_HEADERS=1 -DQT_MOC_COMPAT -DQT_NO_AS_CONST -DQT_NO_CAST_TO_ASCII -DQT_NO_CONTEXTLESS_CONNECT -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_QEXCHANGE -DQT_NO_USING_NAMESPACE -DQT_USE_QSTRINGBUILDER -DQT_USE_SYSTEM_PROXIES -DQT_WARN_DEPRECATED_UP_TO=0x070000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/home/a/Downloads/myGitHub/test_delme/QT_FEATURE_sctp_qa_automation/Qt_themself/build_cross/qtbase/src/network/Network_autogen/include -I/home/a/Downloads/myGitHub/test_delme/QT_FEATURE_sctp_qa_automation/Qt_themself/build_cross/qtbase/include -I/home/a/Downloads/myGitHub/test_delme/QT_FEATURE_sctp_qa_automation/Qt_themself/build_cross/qtbase/include/QtNetwork -I/home/a/Downloads/myGitHub/test_delme/QT_FEATURE_sctp_qa_automation/Qt_themself/qt5/qtbase/src/network -I/home/a/Downloads/myGitHub/test_delme/QT_FEATURE_sctp_qa_automation/Qt_themself/build_cross/qtbase/src/network -I/home/a/Downloads/myGitHub/test_delme/QT_FEATURE_sctp_qa_automation/Qt_themself/qt5/qtbase/src/network/kernel -I/home/a/Downloads/myGitHub/test_delme/QT_FEATURE_sctp_qa_automation/Qt_themself/build_cross/qtbase/include/QtNetwork/6.7.0 -I/home/a/Downloads/myGitHub/test_delme/QT_FEATURE_sctp_qa_automation/Qt_themself/build_cross/qtbase/include/QtNetwork/6.7.0/QtNetwork -I/home/a/Downloads/myGitHub/test_delme/QT_FEATURE_sctp_qa_automation/Qt_themself/qt5/qtbase/src/network/../3rdparty/libpsl -I/home/a/Downloads/myGitHub/test_delme/QT_FEATURE_sctp_qa_automation/Qt_themself/build_cross/qtbase/include/QtCore -I/home/a/Downloads/myGitHub/test_delme/QT_FEATURE_sctp_qa_automation/Qt_themself/qt5/qtbase/mkspecs/linux-g++-32 -I/home/a/Downloads/myGitHub/test_delme/QT_FEATURE_sctp_qa_automation/Qt_themself/build_cross/qtbase/src/corelib -I/home/a/Downloads/myGitHub/test_delme/QT_FEATURE_sctp_qa_automation/Qt_themself/build_cross/qtbase/include/QtCore/6.7.0 -I/home/a/Downloads/myGitHub/test_delme/QT_FEATURE_sctp_qa_automation/Qt_themself/build_cross/qtbase/include/QtCore/6.7.0/QtCore -I/home/a/Downloads/myGitHub/test_delme/QT_FEATURE_sctp_qa_automation/myBuildroot/buildroot/output/host/i586-buildroot-linux-gnu/sysroot//usr/include -pipe -O2 -std=c++17 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fno-exceptions -fPIC -ffunction-sections -fdata-sections -Wsuggest-override -Winvalid-pch -include /home/a/Downloads/myGitHub/test_delme/QT_FEATURE_sctp_qa_automation/Qt_themself/build_cross/qtbase/src/network/CMakeFiles/Network.dir/cmake_pch.hxx -MD -MT qtbase/src/network/CMakeFiles/Network.dir/socket/qnativesocketengine_unix.cpp.o -MF qtbase/src/network/CMakeFiles/Network.dir/socket/qnativesocketengine_unix.cpp.o.d -o qtbase/src/network/CMakeFiles/Network.dir/socket/qnativesocketengine_unix.cpp.o -c /home/a/Downloads/myGitHub/test_delme/QT_FEATURE_sctp_qa_automation/Qt_themself/qt5/qtbase/src/network/socket/qnativesocketengine_unix.cpp /home/a/Downloads/myGitHub/test_delme/QT_FEATURE_sctp_qa_automation/Qt_themself/qt5/qtbase/src/network/socket/qnativesocketengine_unix.cpp:32:10: fatal error: netinet/sctp.h: No such file or directory 32 | #include <netinet/sctp.h> | ^~~~~~~~~~~~~~~~ compilation terminated. [348/393] Building CXX object qtbase/src/network/CMakeFiles/Network.dir/access/qnetworkreplyhttpimpl.cpp.o ninja: build stopped: subcommand failed.
This error comes because in file toolchain_cross.cmake I have
set(QT_FEATURE_network ON) set(QT_FEATURE_sctp ON)