Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion compiling.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ The package names depend on the package manager you use. On Debian/Ubuntu and de
sudo apt install libsdl2-dev libcodec2-dev libreadline-dev
```

while on MacOs is:
while on MacOS it is:

```
brew install sdl2 codec2 readline
Expand All @@ -227,6 +227,20 @@ MACOSX_DEPLOYMENT_TARGET=11 meson setup build_darwin
MACOSX_DEPLOYMENT_TARGET=11 meson compile -C build_darwin openrtx_linux
```

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`):

```
CFLAGS=-I/opt/homebrew/include
CPATH=/opt/homebrew/include
CPPFLAGS=-I/opt/homebrew/include
DYLD_FALLBACK_LIBRARY_PATH=/usr/local/lib:/opt/homebrew/lib:/usr/lib
HOMEBREW_CELLAR=/opt/homebrew/Cellar
HOMEBREW_PREFIX=/opt/homebrew
HOMEBREW_REPOSITORY=/opt/homebrew
LDFLAGS=-L/opt/homebrew/lib
LIBRARY_PATH=/opt/homebrew/lib
```

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:
```
sudo apk add git meson build-base sdl2-dev
Expand Down