embedded-graphics / examples

Embedded graphics examples
Apache License 2.0
29 stars 6 forks source link

[Documentation] macOS (library not found for -lSDL2) #17

Closed M-Devloo closed 2 years ago

M-Devloo commented 2 years ago

Just want to point out when you have not installed Xcode, you will get a error with the default rust toolchain.

  = note: ld: library not found for -lSDL2
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

The solution is to add through brew: brew install sdl2 This allows us to complete the rust build and view the emulator examples by executing cargo run --example hello-world

Hope it helped someone on macOS 👍 (Validated on macOS Monterey)

jamwaffles commented 2 years ago

Thanks for noting this. The instructions are mentioned in the simulator's README but it would help to add a link to that section to the readme in this repo. I'll add that when I get a spare minute.