
Just cloned the master branch of rust this morning. lSDLXmain -framework AppKit -framework Foundation -lSDL -dynamiclib -lrustrt -Wl,-no_compact_unwind -lmorestack -Wl,-rpath,/usr/local/lib/rustc/x86_64-apple-darwin/libĬlang: error: linker command failed with exit code 1 (use -v to see invocation) Stop.Įdited Makefile SDL_PREFIX to match where macports installed it:Įrror: linking with cc failed with code 1 Make: *** No rule to make target /usr/local/lib/libSDLmain.a', needed bylibSDLXmain.a'. If that fails, please let us know on the issue tracker. Before panicking, check that you're using the latest Master branch of Rust, check that you've updated Rust-SDL to the latest version, and run cargo clean. Rust, and Rust-SDL, are both still heavily in development, and you may run into teething issues when using this. SDL_mixer and SDL_image are available through separate packages, from within their respective directories, run cargo build to build. To see an example of the code in use, rustc -L. SDL_Mixer and SDL_Image - also available through most package managers, or through and Ĭlone this repo, run cargo build.
#KEYUP SDL2 RUST INSTALL#

In addition, it provides optional APIs to a number of common SDL extension libraries. Low-level C components are wrapped in Rust code to make them more idiomatic and abstract away inappropriate manual memory management.

Rust-SDL is a library for talking to SDL from Rust.
