You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README_macOS_compile.md
+6-18Lines changed: 6 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,35 +14,23 @@ Get Xcode Command Line tools:
14
14
xcode-select --install
15
15
```
16
16
17
-
We have confirmed a successful Mednafen build on macOS Monterey running on both Intel(x86_64) and Apple silicon M1(ARM64) architectures and will provide instructions accordingly.
17
+
We have confirmed a successful Mednafen build on macOS Monterey and higher running on both Intel(x86_64) and Apple silicon M1(ARM64) architectures.
18
18
19
-
For a native Intel(x86_64) build we will use "Homebrew" to pull in the needed Mednafen dependencies:
19
+
For a native Intel(x86_64) or Apple Silicon(ARM64) build we will use "Homebrew" to pull in the needed Mednafen dependencies:
20
20
```
21
21
brew install pkg-config gettext sdl2 libsndfile jack lzo zstd
22
22
```
23
23
24
-
**Optional Note:** There is currently an SDL issue with newer SDL2 Brew (2.0.22+) installs that can cause Mednafen to "hang" when exiting due to the SDL Audio close function having changed. To work around this make sure to use the 2.0.22 SDL2 Brew install.
25
-
26
-
**Update 04/2023:** SDL 2.26.4(SDL-release-2.26.4-0-g07d0f51fa) no longer seems to exhibit this behaviour so we will mark the below as optional in case you are seeing the "hanging" behaviour upon exiting Mednafen.
Mednafen's build process makes use of 'configure' in order to set up environment-specific options in preparation
40
-
for the compile; the below instructions to build Mednafen will attempt to use all of your machine's threads when compiling as the compilation process can take up quite some time, the procedure is as follows :
26
+
Mednafen's build process makes use of 'configure' in order to set up environment-specific options in preparation for the compile.
27
+
28
+
The below instructions to build Mednafen will attempt to use all of your machine's threads when compiling as the compilation process can take up quite some time, we disable optimization for the build as Mednafen has proven quite unstable when attempting to have the clang compiler on macOS optimize the application. The compilation procedure is as follows:
41
29
42
30
```
43
31
./configure --enable-ss
44
32
45
-
make -j `sysctl -n hw.logicalcpu`
33
+
make CFLAGS='-g -w' CXXFLAGS='-g -w' -j `sysctl -n hw.logicalcpu`
46
34
```
47
35
48
36
At this point, the Mednafen binary can be found in the mednafen/src/ folder; you may manually copy/move it
0 commit comments