Skip to content

Commit

Permalink
fix: macos installation steps
Browse files Browse the repository at this point in the history
  • Loading branch information
sacha-l committed Oct 10, 2024
1 parent 576d240 commit b1975c5
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion examples/doom/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,24 @@ cargo run --release --no-default-features

## Running on macOS

Install the correct target:

```bash
rustup target add x86_64-apple-darwin
```

Install `SDL` dependencies:

```bash
brew install SDL2
brew install SDL2_ttf
brew install SDL2_image
```
LIBRARY_PATH="$LIBRARY_PATH:$(brew --prefix)/lib" POLKAVM_ALLOW_INSECURE=1 POLKAVM_SANDBOX=generic POLKAVM_BACKEND=compiler cargo run --target=x86_64-apple-darwin --release

Run the game:

```bash
cargo run --target=x86_64-apple-darwin --release
```

## Running on other operating systems
Expand Down

0 comments on commit b1975c5

Please sign in to comment.