Skip to content

Commit b096af2

Browse files
authored
Merge pull request pret#247 from jahndan/install-md
INSTALL.md update for macOS (12 Monterey)
2 parents 68710c6 + 7b45d15 commit b096af2

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

INSTALL.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -104,17 +104,25 @@ xcode-select --install
104104
105105
You will also need the following packages:
106106
107+
* gcc (14.x.x)
107108
* meson (>= 1.3.0)
108109
* wine (to run the mwcc executables)
110+
* libpng
111+
* pkg-config
109112
110113
These can be installed using Homebrew; if you do not have Homebrew installed, refer to the instructions [here](https://brew.sh/). Once Homebrew is installed, run:
111114
112115
```
113116
brew update
114-
brew install meson arm-none-eabi-binutils
117+
brew install gcc@14 meson libpng pkg-config arm-none-eabi-binutils
115118
brew install --cask wine-stable
116119
```
117120
121+
On macOS Monterey (12) or earlier, you may also need GNU Coreutils installed to run the build script.
122+
```
123+
brew install coreutils
124+
```
125+
118126
## Linux
119127
120128
Building the ROM requires the following packages. If you cannot find one or more of these using your package distribution, it may be under a different name.

config.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ if [ "$(uname -s)" = "Linux" ]; then
4949
cross_file="cross_unix.ini"
5050
fi
5151
elif [ "$(uname -s)" = "Darwin" ]; then
52-
native_file="native_unix.ini"
52+
native_file="native_macos.ini" # using gcc-14/g++-14 to avoid apple clang
5353
cross_file="cross_unix.ini"
5454
else
5555
native_file="native.ini"

meson/native_macos.ini

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[binaries]
2+
c = 'gcc-14'
3+
cpp = 'g++-14'
4+
ar = 'ar'
5+
6+
makebanner = ['wine', root + '/tools/maketools/makebanner.exe']
7+
makelcf = ['wine', root + '/tools/maketools/makelcf.exe']
8+
makerom = ['wine', root + '/tools/maketools/makerom.exe']

0 commit comments

Comments
 (0)