Skip to content

Instantly share code, notes, and snippets.

@mruegenberg
Created July 22, 2014 15:49
Show Gist options
  • Save mruegenberg/993f07d5232c67e6fe32 to your computer and use it in GitHub Desktop.
Save mruegenberg/993f07d5232c67e6fe32 to your computer and use it in GitHub Desktop.
$ ls
Cargo.toml test.rs
$ cargo build -u -v
Updating git repository `https://github.com/sebcrozet/rust-stb-image`
Updating git repository `https://github.com/sebcrozet/glfw-rs`
Running `rustc src/lib.rs --crate-name stb_image --crate-type dylib --crate-type staticlib -C metadata=stb_image:-:0.0.1:-:https://github.com/sebcrozet/rust-stb-image -C extra-filename=-7e52165aefd1b390 --out-dir ~/cargo-bug/target/deps -L ~/cargo-bug/target/deps -L ~/cargo-bug/target/deps -L ~/cargo-bug/target/native/stb_image-7e52165aefd1b390`
Running `rustc src/glfw.rs --crate-name glfw --crate-type lib -C metadata=glfw:-:0.0.1:-:https://github.com/sebcrozet/glfw-rs -C extra-filename=-2ddcd1fa0ba5ed3c --out-dir ~/cargo-bug/target/deps -L ~/cargo-bug/target/deps -L ~/cargo-bug/target/deps -L ~/cargo-bug/target/native/glfw-2ddcd1fa0ba5ed3c`
Running `rustc test.rs --crate-name test --crate-type bin --out-dir ~/cargo-bug/target -L ~/cargo-bug/target -L ~/cargo-bug/target/deps -L ~/cargo-bug/target/native/glfw-2ddcd1fa0ba5ed3c -L ~/cargo-bug/target/native/stb_image-7e52165aefd1b390 --extern glfw=~/cargo-bug/target/deps/libglfw-2ddcd1fa0ba5ed3c.rlib --extern stb_image=~/cargo-bug/target/deps/libstb_image-7e52165aefd1b390.dylib`
Compiling stb_image v0.0.1 (https://github.com/sebcrozet/rust-stb-image)
Compiling glfw v0.0.1 (https://github.com/sebcrozet/glfw-rs)
Compiling test v0.1.0 (file:~/cargo-bug)
$ target/test
dyld: Library not loaded: x86_64-apple-darwin/stage2/lib/rustlib/x86_64-apple-darwin/lib/libsemver-4e7c5e5c.dylib
Referenced from: ~/cargo-bug/target/test
Reason: image not found
Trace/BPT trap: 5
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment