Skip to content

Commit 96a0223

Browse files
authored
Update MacOS emulator build documentation
1 parent 2fe8a66 commit 96a0223

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

compiling.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ The package names depend on the package manager you use. On Debian/Ubuntu and de
207207
sudo apt install libsdl2-dev libcodec2-dev libreadline-dev
208208
```
209209

210-
while on MacOs is:
210+
while on MacOS it is:
211211

212212
```
213213
brew install sdl2 codec2 readline
@@ -227,6 +227,20 @@ MACOSX_DEPLOYMENT_TARGET=11 meson setup build_darwin
227227
MACOSX_DEPLOYMENT_TARGET=11 meson compile -C build_darwin openrtx_linux
228228
```
229229

230+
On MacOS you may also need to define some or all of the following environment variables (assuming Homebrew is configured to install into `/opt/homebrew`):
231+
232+
```
233+
CFLAGS=-I/opt/homebrew/include
234+
CPATH=/opt/homebrew/include
235+
CPPFLAGS=-I/opt/homebrew/include
236+
DYLD_FALLBACK_LIBRARY_PATH=/usr/local/lib:/opt/homebrew/lib:/usr/lib
237+
HOMEBREW_CELLAR=/opt/homebrew/Cellar
238+
HOMEBREW_PREFIX=/opt/homebrew
239+
HOMEBREW_REPOSITORY=/opt/homebrew
240+
LDFLAGS=-L/opt/homebrew/lib
241+
LIBRARY_PATH=/opt/homebrew/lib
242+
```
243+
230244
We successfully compiled OpenRTX also on a Pine64 PinePhone running PostmarketOS (based on Alpine Linux). To install the build dependencies on PostmarketOS run the following command:
231245
```
232246
sudo apk add git meson build-base sdl2-dev

0 commit comments

Comments
 (0)