Skip to content

Commit b6ea36e

Browse files
authored
Enhance build.md with macOS and dependency instructions
Added instructions for building on macOS and installing native library dependencies.
1 parent 1b3a9f0 commit b6ea36e

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

docs/development/build.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,25 @@ sudo apt-get install build-essential zip zipmerge
1717
Some parts of the development process are easier when you can build a target for your host instead of a handheld device. If you want to use the `desktop` platform target, you need to install additional dependencies (to match what would be present on the handheld device):
1818
```shell
1919
sudo apt-get install libsqlite3-dev libzip-dev libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev
20+
or
21+
brew install sdl2_image sdl2_ttf libzip
2022
```
2123
After that, you can build a partial NextUI flavour that works on your host machine:
2224
```shell
2325
make setup common PLATFORM=desktop
2426
```
2527
The main repo contains a few templated (launch configs for VS Code)[https://github.com/LoveRetro/NextUI/blob/main/.vscode/launch.json] that you can modify and extend to fit your needs.
2628

29+
### Building on macOS
30+
NextUI is build using gcc. In order for you to develop on macOS, you will have to take some extra steps:
31+
```shell
32+
brew install gcc gdb make
33+
# This will link the brew-sourced binaries to /usr/local/bin in order
34+
# to avoid clashes with Apple clang that might also be installed on
35+
# your machine (and masquerading as gcc):
36+
<local NextUI repo>/workspace/desktop/macos_create_gcc_symlinks.sh
37+
```
38+
2739
## Step 2: Install Docker
2840

2941
| Docker Version | Instructions |

0 commit comments

Comments
 (0)