This is a nice library with lots of potential, however attempting to run the examples on macOS gives the following error, despite SDL2 being installed by brew:
= note: ld: library 'SDL2' not found
For me, the workaround is to add an explicit reference to dependency sdl2 in the project's root Cargo.toml file:
[dependencies]
...
sdl2 = { version = "0.38.0", features = ["use-pkgconfig"] }
This allows the examples to build, i.e. with:
cargo run --example texture_mapping_demo --features std
Hope this is useful information to someone.
This is a nice library with lots of potential, however attempting to run the examples on macOS gives the following error, despite SDL2 being installed by
brew:For me, the workaround is to add an explicit reference to dependency
sdl2in the project's rootCargo.tomlfile:This allows the examples to build, i.e. with:
Hope this is useful information to someone.