From b0bbbfc74082f5706adf295e8689f933125a81b4 Mon Sep 17 00:00:00 2001 From: sacha <23283108+sacha-l@users.noreply.github.com> Date: Thu, 10 Oct 2024 20:18:10 +0200 Subject: [PATCH] fix: macos installation steps --- examples/doom/README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/examples/doom/README.md b/examples/doom/README.md index f31487e6..fc17daa3 100644 --- a/examples/doom/README.md +++ b/examples/doom/README.md @@ -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