[Interest] What is the minimum required macOS SDK to build Qt 5.15.9 with support for x86_64 and arm64?

Nuno Santos nuno.santos at imaginando.pt
Mon Apr 11 19:42:40 CEST 2022


Hi,

I’m trying to build the latest Qt 5.15.9 with support for x86_64 and arm64:

./configure -confirm-license -recheck -platform macx-clang -device-option QMAKE_APPLE_DEVICE_ARCHS="x86_64 arm64" -commercial -debug-and-release -static -nomake examples -nomake tests -opengl desktop -no-securetransport

My Mac build machine is still running mac OS Mojave 10.14.6 and Xcode 11.3.1 due to legacy requirements.

The compilation failed with many errors, this is the first:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -c -pipe -Xarch_arm64 -DPCRE2_DISABLE_JIT -g -fPIC -std=gnu11  -arch x86_64  -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -mmacosx-version-min=10.13 -fvisibility=hidden -w -fno-exceptions -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_COMPILER_SUPPORTS_SSE2 -DQT_COMPILER_SUPPORTS_NEON -DPCRE2_CODE_UNIT_WIDTH=16 -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DGL_SILENCE_DEPRECATION -DHAVE_CONFIG_H -DQT_NO_DYNAMIC_CAST -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I. -Isrc -I/usr/local/Cellar/openssl at 1.1/1.1.1m/include -I../../../mkspecs/macx-clang -o .obj/debug/pcre2_auto_possess.o src/pcre2_auto_possess.c
In file included from src/pcre2_auto_possess.c:50:
In file included from src/pcre2_internal.h:56:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/ctype.h:69:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_ctype.h:69:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/cdefs.h:807:2: error: Unsupported architecture
#error Unsupported architecture

The Qt for macOS page -> https://doc.qt.io/qt-5/macos.html <https://doc.qt.io/qt-5/macos.html> says that we can build Qt 5.15.9 with Xcode 11 but it is failing.

Does anyone knows what is the minimum macOS SDK to build Qt 5.15.9 with x86_64 and arm64 support for universal builds? 

Thanks!

Nuno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20220411/f0c0b760/attachment.htm>


More information about the Interest mailing list