-
Notifications
You must be signed in to change notification settings - Fork 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5247 from maron2000/mac_build
Add required library information for macOS toBUILD.md
- Loading branch information
Showing
1 changed file
with
13 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bbc7a9c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@maron2000 - unfortunately, the
universal
option fails under macOS Sequoia on an M2 Mac. I followed the instructions exactly; updatedbrew
and ran thebrew install
command. When I tried either./build-macos-sdl2 universal
or./build-macos universal
, I got this result:Have I missed anything obvious?
bbc7a9c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have a ARM mac to test, but the command itself is unchanged since PR #4054.
@lucyllewy Any ideas?
bbc7a9c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@maron2000 - I didn't test the earlier PR. Anyway, It's hard to imagine how this could possibly work, because I don't think brew installs the Intel libraries that are needed for a universal build. But of course I am only guessing about this.
bbc7a9c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My original PR requires that you have both architectures of homebrew installed (native in /opt and x86_64 in /usr/local) and the libraries installed by both of these. That is the only way that the universal build will succeed.
bbc7a9c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lucyllewy - Yes, I once knew that, and then forgot it. This shouldn't be hard to accomplish. Thank you.
bbc7a9c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lucyllewy - Has anyone given clear advice on installing the required Intel homebrew files on an ARM Mac? I tried using the method described here:
https://www.wisdomgeek.com/development/installing-intel-based-packages-using-homebrew-on-the-m1-mac/
using
arch -x86_64
to precede the commands. But fluidsynth (I think) wouldn't install; the error message was "read-only file system." So I gave up and built separately on an Intel Mac and an M1 Mac and usedlipo
to merge the two executables. This worked, as it has in the past, but if anyone has any advice on doing all this on an ARM Mac, I would be grateful.