Re: Apple Silicon compilation
Dean Greer <[email protected]> Mon, 24 Feb 2025 05:55:20 -0500
| Newsgroups | gmane.comp.emulators.wine.devel |
|---|---|
| Message-ID | <CAN4MNMmdgcNiVqpk=rOkWPWH+nR0MvCkEnEXPgfTaZZfnAKRWw@mail.gmail.com> |
At minimum Xcode Command Line Tools are required. And as Stefan has pointed out your pretty much forced to build for x86_64 You can compile for x86_64 from an arm Terminal session but it’s simpler to build from an x86_64 Terminal session with ether an Intel brew install or MacPorts. Also something to keep in mind is a stock upstream wine compile won’t run nicely under Rosetta2. On Mon, Feb 24, 2025 at 3:39 AM Stefan Dösinger <[email protected]> wrote: > Am Montag, 24. Februar 2025, 03:55:59 Ostafrikanische Zeit schrieb robert > lippmann: > > Hi all, > > > > I tried to update the wiki to document how to compile Wine on Apple > Silicon, > > but I’m not sure if it went through. > > > Basically, you need to add lld (which pulls in llvm) in addition to the > > other build dependencies > > Generally if you want to run x86 Windows applications run both configure > and > make with arch -x86_64. Then it will all behave as if you were on an Intel > CPU > mac. You don't need to run the built wine with arch because it will be an > x86_64 only binary. > > If you want to build things for arm to run arm64 Windows binaries you are > in a > world of trouble: > > * MacOS won't allow you to map anything below 4 GB, so Wine can't place > the > KSHARED_USER_DATA at 0x7ffe0000. > > * ARM MacOS has 16 kb pages whereas Windows has 4kb ones. > > We are working on both of those issues, but running an arm64 wine is going > to > take a while. > > >