Build wxWidgets static libraries for macOS Silicon(arm64)

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
Tank2005
Earned a small fee
Earned a small fee
Posts: 17
Joined: Thu Apr 23, 2009 6:29 am

Build wxWidgets static libraries for macOS Silicon(arm64)

Post by Tank2005 »

My environment is macOS 12.2(Big Sur) on Intel CPU and Xcode 12.4.

I want to build wxWidgets 3.1.4 for Apple Silicon as a single static library.

I built the libraries for Intal mac(x86_64) from that command from terminal.

Code: Select all

../configure --with-osx_cocoa --with-macosx-version-min=10.11 --with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk --disable-shared --prefix=/usr/local --enable-macosx-arch=x86_64
On the other hand, this command stopped with an error "configure: error: wxWidgets requires wchar_t support".

Code: Select all

../configure --with-osx_cocoa --with-macosx-version-min=11.0 --with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk --disable-shared --prefix=/usr/local --enable-macosx-arch=arm64
When I wrote "--enable-universal_binary=x86_64,arm64" instead of "--enable-macosx_arch=arm64", that was succeeded.

Please tell me a correct Configure command to build for arm64 binary only.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7449
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Build wxWidgets static libraries for macOS Silicon(arm64)

Post by ONEEYEMAN »

Hi,
You already successfully configured the library, right?

What else do you need?
You could try to use Git master and configure it the way you tried originally. If that doesn't work - please send an e-mail to wx-users ML where you can reach core developers.

Thank you
stahta01
Ultimate wxWidgets Guru
Ultimate wxWidgets Guru
Posts: 548
Joined: Fri Nov 03, 2006 2:00 pm

Re: Build wxWidgets static libraries for macOS Silicon(arm64)

Post by stahta01 »

Does not wxWidgets configure have build/host/target triplet?
If yes, try to use them correctly!

Tim S.
Tank2005
Earned a small fee
Earned a small fee
Posts: 17
Joined: Thu Apr 23, 2009 6:29 am

Re: Build wxWidgets static libraries for macOS Silicon(arm64)

Post by Tank2005 »

Thanks for everyone's replies.

I've uploaded the build log to OneDrive.
https://1drv.ms/u/s!Ak0LcIIOu-p0jmeOC0r ... h?e=8v8eoh
User avatar
doublemax
Moderator
Moderator
Posts: 19103
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Build wxWidgets static libraries for macOS Silicon(arm64)

Post by doublemax »

As nobody seems to have a useful answer, try asking again here: https://groups.google.com/g/wx-users
Use the source, Luke!
Post Reply