Hi all,
I've been away from the wx world for a long while due to job and life changes, but I've started working on getting caught up again. Today's task is to get macOS universal binaries working.
I've updated one of my build machines to macOS 10.15 Catalina, and Xcode 12.2, and also tried command line tools 12.4. It seems that the machine is not able to be upgraded beyond Catalina, probably due to its age.
Should I be able to build universal binaries with this configuration?
I have macOS Catalina and Xcode 12.4 (the last version that runs
on Catalina), and I am able to build universal binaries without
specifying which SDK to use.
gcc -arch x86_64 -arch arm64 -x c simple.c
This command does work for me, and creates a universal binary.
Hi Robin
Welcome back 😊 great to read from you!
> I've updated one of my build machines to macOS 10.15 Catalina, and Xcode 12.2, and also tried command line tools 12.4. It seems that the machine is not able to be upgraded beyond Catalina, probably due to its age.
> Should I be able to build universal binaries with this configuration?
You need Xcode 12.2 and at least a macOS 11 SDK
Is this the right way to proceed?
As I’m always building universal binaries using the Xcode projects, I’m not really qualified on that, but IIRC we had a configure option --with-macosx-sdk, so I’d think with that you should be able to build under Catalina on the command line
(and the M1 machines are really quite fast, the building experience on my MacBook Pro has changed considerably from the 2015 to the 2021 model 😉 so I can really recommend the switch to M1, already the smallest mini is very capable …)
Best,
Stefan
--
You received this message because you are subscribed to the Google Groups "wx-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wx-dev+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wx-dev/19D9C71A-715C-420C-9BEF-930106048FAB%40advancedconcepts.ch.