Skip to content

Commit

Permalink
Merge pull request pret#247 from jahndan/install-md
Browse files Browse the repository at this point in the history
INSTALL.md update for macOS (12 Monterey)
  • Loading branch information
lhearachel authored Jul 9, 2024
2 parents 68710c6 + 7b45d15 commit b096af2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,25 @@ xcode-select --install
You will also need the following packages:
* gcc (14.x.x)
* meson (>= 1.3.0)
* wine (to run the mwcc executables)
* libpng
* pkg-config
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:
```
brew update
brew install meson arm-none-eabi-binutils
brew install gcc@14 meson libpng pkg-config arm-none-eabi-binutils
brew install --cask wine-stable
```
On macOS Monterey (12) or earlier, you may also need GNU Coreutils installed to run the build script.
```
brew install coreutils
```
## Linux
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.
Expand Down
2 changes: 1 addition & 1 deletion config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ if [ "$(uname -s)" = "Linux" ]; then
cross_file="cross_unix.ini"
fi
elif [ "$(uname -s)" = "Darwin" ]; then
native_file="native_unix.ini"
native_file="native_macos.ini" # using gcc-14/g++-14 to avoid apple clang
cross_file="cross_unix.ini"
else
native_file="native.ini"
Expand Down
8 changes: 8 additions & 0 deletions meson/native_macos.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[binaries]
c = 'gcc-14'
cpp = 'g++-14'
ar = 'ar'

makebanner = ['wine', root + '/tools/maketools/makebanner.exe']
makelcf = ['wine', root + '/tools/maketools/makelcf.exe']
makerom = ['wine', root + '/tools/maketools/makerom.exe']

0 comments on commit b096af2

Please sign in to comment.