Created
May 16, 2014 17:15
-
-
Save mruegenberg/95fb82342179401c9c43 to your computer and use it in GitHub Desktop.
GLFW-rs build failure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
make lib | |
sh etc/link-rs.sh "-lglfw3 -framework Cocoa -framework OpenGL -framework IOKit -framework CoreFoundation -framework CoreVideo " > src/lib/link.rs | |
mkdir -p lib | |
rustc --out-dir=lib -O src/lib/lib.rs | |
src/lib/callbacks.rs:137:161: 137:187 error: mismatched types: expected `Modifiers` but found `core::option::Option<Modifiers>` (expected struct Modifiers but found enum core::option::Option) | |
src/lib/callbacks.rs:137 window_callback!(fn mouse_button_callback(button: c_int, action: c_int, mods: c_int) => MouseButtonEvent(mem::transmute(button), mem::transmute(action), Modifiers::from_bits(mods))) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~ | |
src/lib/callbacks.rs:117:1: 128:2 note: in expansion of window_callback! | |
src/lib/callbacks.rs:137:1: 137:189 note: expansion site | |
src/lib/callbacks.rs:141:160: 141:186 error: mismatched types: expected `Modifiers` but found `core::option::Option<Modifiers>` (expected struct Modifiers but found enum core::option::Option) | |
src/lib/callbacks.rs:141 window_callback!(fn key_callback(key: c_int, scancode: c_int, action: c_int, mods: c_int) => KeyEvent(mem::transmute(key), scancode, mem::transmute(action), Modifiers::from_bits(mods))) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~ | |
src/lib/callbacks.rs:117:1: 128:2 note: in expansion of window_callback! | |
src/lib/callbacks.rs:141:1: 141:188 note: expansion site | |
src/lib/lib.rs:273:43: 273:48 error: type `&mut core::fmt::FormatWriter` does not implement any method in scope named `write_fmt` | |
src/lib/lib.rs:273 MouseButtonLeft => write!(f.buf, "MouseButtonLeft"), | |
^~~~~ | |
src/lib/lib.rs:274:43: 274:48 error: type `&mut core::fmt::FormatWriter` does not implement any method in scope named `write_fmt` | |
src/lib/lib.rs:274 MouseButtonRight => write!(f.buf, "MouseButtonRight"), | |
^~~~~ | |
src/lib/lib.rs:275:43: 275:48 error: type `&mut core::fmt::FormatWriter` does not implement any method in scope named `write_fmt` | |
src/lib/lib.rs:275 MouseButtonMiddle => write!(f.buf, "MouseButtonMiddle"), | |
^~~~~ | |
src/lib/lib.rs:855:16: 855:21 error: type `&mut core::fmt::FormatWriter` does not implement any method in scope named `write_fmt` | |
src/lib/lib.rs:855 write!(f.buf, "{} x {}, {} = {} + {} + {}, {} Hz", | |
^~~~~ | |
src/lib/lib.rs:1020:37: 1020:42 error: type `&mut core::fmt::FormatWriter` does not implement any method in scope named `write_fmt` | |
src/lib/lib.rs:1020 if i != 0 { try!(write!(f.buf, ", ")) }; | |
^~~~~ | |
src/lib/lib.rs:1021:49: 1021:54 error: type `&mut core::fmt::FormatWriter` does not implement any method in scope named `write_fmt` | |
src/lib/lib.rs:1021 if *x == Shift { try!(write!(f.buf, "Shift" )) } | |
^~~~~ | |
src/lib/lib.rs:1022:49: 1022:54 error: type `&mut core::fmt::FormatWriter` does not implement any method in scope named `write_fmt` | |
src/lib/lib.rs:1022 else if *x == Control { try!(write!(f.buf, "Control" )) } | |
^~~~~ | |
src/lib/lib.rs:1023:49: 1023:54 error: type `&mut core::fmt::FormatWriter` does not implement any method in scope named `write_fmt` | |
src/lib/lib.rs:1023 else if *x == Alt { try!(write!(f.buf, "Alt" )) } | |
^~~~~ | |
src/lib/lib.rs:1024:49: 1024:54 error: type `&mut core::fmt::FormatWriter` does not implement any method in scope named `write_fmt` | |
src/lib/lib.rs:1024 else if *x == Super { try!(write!(f.buf, "Super" )) } | |
^~~~~ | |
src/lib/lib.rs:1025:49: 1025:54 error: type `&mut core::fmt::FormatWriter` does not implement any method in scope named `write_fmt` | |
src/lib/lib.rs:1025 else { try!(write!(f.buf, "???" )) } | |
^~~~~ | |
error: aborting due to 12 previous errors | |
make: *** [lib] Error 101 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment