Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: can't find crate for ... #61

Closed
KingOfThePirates opened this issue Mar 24, 2015 · 28 comments
Closed

error: can't find crate for ... #61

KingOfThePirates opened this issue Mar 24, 2015 · 28 comments

Comments

@KingOfThePirates
Copy link

I am getting errors in all four lines:

extern crate piston;             // error: can't find crate for 'piston'
extern crate graphics;           // error: can't find crate for 'graphics'
extern crate sdl2_window;        // error: can't find crate for 'sdl2_window'
extern crate opengl_graphics;    // error: can't find crate for 'opengl_graphics'

* Look for the cargo build -v below for the actual problems. *

@KingOfThePirates
Copy link
Author

I have other issues, but, in order to troubleshoot correctly, I'm showing the issues that came first.

@Potpourri
Copy link
Member

Describe the sequence of your actions to get these errors. Most likely you forgot add these dependencies to Cargo.toml.

@bvssvni
Copy link
Member

bvssvni commented Mar 25, 2015

@KingOfThePirates Btw, nice Github profile!

@KingOfThePirates
Copy link
Author

I copy pasta'd https://github.com/PistonDevelopers/Piston-Tutorials/tree/master/getting-started 's

[package]

name = "getting-started"
version = "0.0.0"
authors = [
    "TyOverby <ty@pre-alpha.com>",
    "Nikita Pekin <contact@nikitapek.in>"
]

[[bin]]
name = "game"

[dependencies.piston]
git = "https://github.com/PistonDevelopers/piston.git"

[dependencies.piston2d-graphics]
git = "https://github.com/PistonDevelopers/graphics.git"

[dependencies.pistoncore-sdl2_window]
git = "https://github.com/PistonDevelopers/sdl2_window.git"

[dependencies.piston2d-opengl_graphics]
git = "https://github.com/PistonDevelopers/opengl_graphics.git"

@KingOfThePirates
Copy link
Author

@bvssvni Thanks :)

@Potpourri
Copy link
Member

You can show full output cargo?

@KingOfThePirates
Copy link
Author

Explain pls. cargo build?

@Potpourri
Copy link
Member

Copy here output cargo build -v

@KingOfThePirates
Copy link
Author

me@me-desktop ~/getting-started $ cargo build -v
       Fresh shader_version v0.0.4 (https://github.com/pistondevelopers/shader_version#330c38b8)
       Fresh quack v0.0.13 (https://github.com/PistonDevelopers/quack#6bcb6ac3)
       Fresh piston-texture v0.0.1 (https://github.com/PistonDevelopers/texture#3cc4cddc)
       Fresh bitflags v0.1.1
       Fresh pkg-config v0.3.1
       Fresh read_color v0.0.2 (https://github.com/PistonDevelopers/read_color#568723fb)
       Fresh interpolation v0.0.2 (https://github.com/PistonDevelopers/interpolation#6c6cf971)
       Fresh khronos_api v0.0.5 (https://github.com/bjz/gl-rs#f531d804)
       Fresh vecmath v0.0.5 (https://github.com/PistonDevelopers/vecmath#62848645)
       Fresh clock_ticks v0.0.4 (https://github.com/tomaka/clock_ticks#6a300527)
       Fresh rustc-serialize v0.3.6
       Fresh libc v0.1.3
       Fresh khronos_api v0.0.5
       Fresh xml-rs v0.1.21
       Fresh draw_state v0.0.1
       Fresh pistoncore-input v0.0.5 (https://github.com/pistondevelopers/input#3e6d11ce)
       Fresh gl_common v0.0.4 (https://github.com/bjz/gl-rs#f531d804)
       Fresh log v0.2.6
       Fresh sdl2-sys v0.0.31 (https://github.com/AngryLawyer/rust-sdl2#2e0a39d2)
       Fresh piston2d-graphics v0.0.24 (https://github.com/PistonDevelopers/graphics.git#73323628)
       Fresh pistoncore-window v0.0.13 (https://github.com/pistondevelopers/window#711cb7a1)
       Fresh rand v0.2.1
       Fresh gl_generator v0.0.21 (https://github.com/bjz/gl-rs#f531d804)
       Fresh libz-sys v0.1.1
       Fresh pistoncore-event_loop v0.0.14 (https://github.com/PistonDevelopers/event_loop#60e41738)
       Fresh num v0.1.17
       Fresh sdl2 v0.0.31 (https://github.com/AngryLawyer/rust-sdl2#2e0a39d2)
       Fresh freetype-sys v0.0.4 (https://github.com/PistonDevelopers/freetype-sys#cbf20043)
       Fresh pistoncore-event v0.0.10 (https://github.com/pistondevelopers/event#9fbb140a)
       Fresh image v0.2.4 (https://github.com/pistondevelopers/image#8538368e)
       Fresh freetype-rs v0.0.7 (https://github.com/PistonDevelopers/freetype-rs.git#e89675f5)
       Fresh piston v0.0.7 (https://github.com/PistonDevelopers/piston.git#dd7d0fd3)
       Fresh gl v0.0.11 (https://github.com/bjz/gl-rs#f531d804)
   Compiling piston2d-opengl_graphics v0.0.10 (https://github.com/PistonDevelopers/opengl_graphics.git#c81f0f75)
     Running `rustc /home/me/.cargo/git/checkouts/opengl_graphics-0f3f8bb91d82e621/master/src/lib.rs --crate-name opengl_graphics --crate-type lib -g --cfg feature="default" --cfg feature="image_png" -C metadata=4b5470c415aad257 -C extra-filename=-4b5470c415aad257 --out-dir /home/me/getting-started/target/debug/deps --emit=dep-info,link -L dependency=/home/me/getting-started/target/debug/deps -L dependency=/home/me/getting-started/target/debug/deps --extern texture=/home/me/getting-started/target/debug/deps/libtexture-d4ce7c5d490380ef.rlib --extern freetype=/home/me/getting-started/target/debug/deps/libfreetype-3fe4d3cf608e3e5b.rlib --extern graphics=/home/me/getting-started/target/debug/deps/libgraphics-5bb73aa09d94eeb5.rlib --extern shader_version=/home/me/getting-started/target/debug/deps/libshader_version-073c091fd35dd5b9.rlib --extern libc=/home/me/getting-started/target/debug/deps/liblibc-2a692f33a70517c8.rlib --extern gl=/home/me/getting-started/target/debug/deps/libgl-aa3ee48555547a08.rlib --extern image=/home/me/getting-started/target/debug/deps/libimage-f49a16ebe5e1d9f9.rlib -Awarnings -L native=/usr/lib/x86_64-linux-gnu`
       Fresh pistoncore-sdl2_window v0.0.6 (https://github.com/PistonDevelopers/sdl2_window.git#520e8d41)
/home/me/.cargo/git/checkouts/opengl_graphics-0f3f8bb91d82e621/master/src/glyph_cache.rs:28:23: 28:27 error: use of undeclared type name `Path`
/home/me/.cargo/git/checkouts/opengl_graphics-0f3f8bb91d82e621/master/src/glyph_cache.rs:28     pub fn new(font: &Path) -> Result<Self, Error> {
                                                                                                                      ^~~~
/home/me/.cargo/git/checkouts/opengl_graphics-0f3f8bb91d82e621/master/src/texture.rs:74:29: 74:33 error: use of undeclared type name `Path`
/home/me/.cargo/git/checkouts/opengl_graphics-0f3f8bb91d82e621/master/src/texture.rs:74     pub fn from_path(path: &Path) -> Result<Self, String> {
                                                                                                                        ^~~~
error: aborting due to 2 previous errors
Could not compile `piston2d-opengl_graphics`.

Caused by:
  Process didn't exit successfully: `rustc /home/me/.cargo/git/checkouts/opengl_graphics-0f3f8bb91d82e621/master/src/lib.rs --crate-name opengl_graphics --crate-type lib -g --cfg feature="default" --cfg feature="image_png" -C metadata=4b5470c415aad257 -C extra-filename=-4b5470c415aad257 --out-dir /home/me/getting-started/target/debug/deps --emit=dep-info,link -L dependency=/home/me/getting-started/target/debug/deps -L dependency=/home/me/getting-started/target/debug/deps --extern texture=/home/me/getting-started/target/debug/deps/libtexture-d4ce7c5d490380ef.rlib --extern freetype=/home/me/getting-started/target/debug/deps/libfreetype-3fe4d3cf608e3e5b.rlib --extern graphics=/home/me/getting-started/target/debug/deps/libgraphics-5bb73aa09d94eeb5.rlib --extern shader_version=/home/me/getting-started/target/debug/deps/libshader_version-073c091fd35dd5b9.rlib --extern libc=/home/me/getting-started/target/debug/deps/liblibc-2a692f33a70517c8.rlib --extern gl=/home/me/getting-started/target/debug/deps/libgl-aa3ee48555547a08.rlib --extern image=/home/me/getting-started/target/debug/deps/libimage-f49a16ebe5e1d9f9.rlib -Awarnings -L native=/usr/lib/x86_64-linux-gnu` (exit code: 101)

@Potpourri
Copy link
Member

You need do cargo update. But unfortunately not all dependencies now compiled, you have to wait to fix it.

@KingOfThePirates
Copy link
Author

When can I fix it then?

@Potpourri
Copy link
Member

Just wait until it's fixed, I ping you when all will work.

@KingOfThePirates
Copy link
Author

Oh ok thank you!! :D You are awesome.

@KingOfThePirates
Copy link
Author

I just found out that these errors (in the original post) are, at least while using AtomLinter/linter-rust, false alarms (AtomLinter/linter-rust#5).

Although the compiler problems are real problems.

@KingOfThePirates
Copy link
Author

You haven't pinged me yet, but I did cargo update and then tried to build but got errors.

me@me-desktop ~/getting-started $ cargo build --verbose
   Compiling shader_version v0.0.5 (https://github.com/pistondevelopers/shader_version#a5e77d4c)
     Running `rustc /home/me/.cargo/git/checkouts/shader_version-7b6bcaf792adf596/master/src/lib.rs --crate-name shader_version --crate-type lib -g -C metadata=c0d3970179066072 -C extra-filename=-c0d3970179066072 --out-dir /home/me/getting-started/target/debug/deps --emit=dep-info,link -L dependency=/home/me/getting-started/target/debug/deps -L dependency=/home/me/getting-started/target/debug/deps -Awarnings`
   Compiling draw_state v0.0.5 (https://github.com/gfx-rs/draw_state#afea5101)
     Running `rustc /home/me/.cargo/git/checkouts/draw_state-1e8ed0c6197e116e/master/src/lib.rs --crate-name draw_state --crate-type lib -g -C metadata=9bf17f3a41afd6c4 -C extra-filename=-9bf17f3a41afd6c4 --out-dir /home/me/getting-started/target/debug/deps --emit=dep-info,link -L dependency=/home/me/getting-started/target/debug/deps -L dependency=/home/me/getting-started/target/debug/deps --extern bitflags=/home/me/getting-started/target/debug/deps/libbitflags-518ea12e21428edd.rlib -Awarnings`
   Compiling sdl2-sys v0.0.33 (https://github.com/AngryLawyer/rust-sdl2#37f657d4)
     Running `rustc /home/me/.cargo/git/checkouts/rust-sdl2-8facfb557b6c1670/master/sdl2-sys/src/lib.rs --crate-name sdl2_sys --crate-type lib -g --cfg feature="default" -C metadata=4e2764e28e66a0e3 -C extra-filename=-4e2764e28e66a0e3 --out-dir /home/me/getting-started/target/debug/deps --emit=dep-info,link -L dependency=/home/me/getting-started/target/debug/deps -L dependency=/home/me/getting-started/target/debug/deps --extern libc=/home/me/getting-started/target/debug/deps/liblibc-8c77960f0e8d4e86.rlib -Awarnings -l SDL2`
       Fresh khronos_api v0.0.5
       Fresh piston-texture v0.0.1 (https://github.com/pistondevelopers/texture#3cc4cddc)
       Fresh rustc-serialize v0.3.12
       Fresh byteorder v0.3.5
       Fresh vecmath v0.0.5 (https://github.com/PistonDevelopers/vecmath#62848645)
       Fresh read_color v0.0.2 (https://github.com/PistonDevelopers/read_color#568723fb)
       Fresh interpolation v0.0.4 (https://github.com/PistonDevelopers/interpolation#f7f20693)
   Compiling pistoncore-window v0.0.15 (https://github.com/pistondevelopers/window#47b0a21b)
     Running `rustc /home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs --crate-name window --crate-type lib -g -C metadata=20dd55a2e8968db8 -C extra-filename=-20dd55a2e8968db8 --out-dir /home/me/getting-started/target/debug/deps --emit=dep-info,link -L dependency=/home/me/getting-started/target/debug/deps -L dependency=/home/me/getting-started/target/debug/deps --extern quack=/home/me/getting-started/target/debug/deps/libquack-940ac77f1ace5f08.rlib --extern input=/home/me/getting-started/target/debug/deps/libinput-1490dbfb10945cbf.rlib --extern libc=/home/me/getting-started/target/debug/deps/liblibc-8c77960f0e8d4e86.rlib -Awarnings`
       Fresh bitflags v0.1.1
   Compiling libz-sys v0.1.2
     Running `/home/me/getting-started/target/debug/build/libz-sys-bab95f842f454018/build-script-build`
       Fresh pkg-config v0.3.3
       Fresh khronos_api v0.0.5 (https://github.com/bjz/gl-rs#3ebf1cfe)
   Compiling gl_generator v0.0.23 (https://github.com/bjz/gl-rs#3ebf1cfe)
     Running `rustc /home/me/.cargo/git/checkouts/gl-rs-5020f97825182d66/master/gl_generator/lib.rs --crate-name gl_generator --crate-type lib -g -C metadata=303adfd0fabbd040 -C extra-filename=-303adfd0fabbd040 --out-dir /home/me/getting-started/target/debug/deps --emit=dep-info,link -L dependency=/home/me/getting-started/target/debug/deps -L dependency=/home/me/getting-started/target/debug/deps --extern khronos_api=/home/me/getting-started/target/debug/deps/libkhronos_api-4ca4e769faea81a4.rlib --extern xml=/home/me/getting-started/target/debug/deps/libxml-3e674a70152e28f6.rlib --extern log=/home/me/getting-started/target/debug/deps/liblog-54cf393d3c69686f.rlib -Awarnings`
   Compiling rand v0.3.7
     Running `rustc /home/me/.cargo/registry/src/gh.neting.cc-1ecc6299db9ec823/rand-0.3.7/src/lib.rs --crate-name rand --crate-type lib -g -C metadata=7b0a3af7ae4685dc -C extra-filename=-7b0a3af7ae4685dc --out-dir /home/me/getting-started/target/debug/deps --emit=dep-info,link -L dependency=/home/me/getting-started/target/debug/deps -L dependency=/home/me/getting-started/target/debug/deps --extern libc=/home/me/getting-started/target/debug/deps/liblibc-8c77960f0e8d4e86.rlib --extern log=/home/me/getting-started/target/debug/deps/liblog-54cf393d3c69686f.rlib -Awarnings`
       Fresh libc v0.1.5
       Fresh quack v0.0.13 (https://github.com/PistonDevelopers/quack#6bcb6ac3)
       Fresh xml-rs v0.1.23
       Fresh pistoncore-input v0.0.7 (https://github.com/pistondevelopers/input#9ad38f1f)
       Fresh gl_common v0.0.4 (https://github.com/bjz/gl-rs#3ebf1cfe)
       Fresh log v0.3.1
       Fresh clock_ticks v0.0.5 (https://github.com/tomaka/clock_ticks#cdb6499b)
   Compiling freetype-sys v0.0.5 (https://github.com/PistonDevelopers/freetype-sys#c661bea0)
     Running `/home/me/getting-started/target/debug/build/freetype-sys-1ca2d29be397ce18/build-script-build`
     Running `rustc /home/me/.cargo/registry/src/gh.neting.cc-1ecc6299db9ec823/libz-sys-0.1.2/src/lib.rs --crate-name libz_sys --crate-type lib -g -C metadata=bab95f842f454018 -C extra-filename=-bab95f842f454018 --out-dir /home/me/getting-started/target/debug/deps --emit=dep-info,link -L dependency=/home/me/getting-started/target/debug/deps -L dependency=/home/me/getting-started/target/debug/deps -Awarnings -L native=/usr/lib/x86_64-linux-gnu -l z`
<quack macros>:6:1: 9:72 error: the impl does not reference any types defined in this crate; only traits defined in the current crate can be implemented for arbitrary types [E0117]
<quack macros>:6 impl < $ ( $ u ) , * > $ crate:: GetFrom for (
<quack macros>:7 $ get_prop_type , $ this_type < $ ( $ t ) , * > ) $ ( $ w ) * {
<quack macros>:8 # [ allow ( unused_variables ) ] # [ inline ( always ) ] fn get_from (
<quack macros>:9 $ this : & $ this_type < $ ( $ t ) , * > ) -> $ get_prop_type { $ e } } } } ;
<quack macros>:1:1: 1:42 note: in expansion of quack_macro_items!
<quack macros>:5:1: 9:74 note: expansion site
<quack macros>:1:1: 15:38 note: in expansion of quack_get!
<quack macros>:13:1: 15:36 note: expansion site
<quack macros>:1:1: 15:38 note: in expansion of quack_get!
<quack macros>:11:1: 13:40 note: expansion site
<quack macros>:1:1: 20:6 note: in expansion of quack!
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:184:1: 203:2 note: expansion site
<quack macros>:6:1: 9:72 error: the impl does not reference any types defined in this crate; only traits defined in the current crate can be implemented for arbitrary types [E0117]
<quack macros>:6 impl < $ ( $ u ) , * > $ crate:: GetFrom for (
<quack macros>:7 $ get_prop_type , $ this_type < $ ( $ t ) , * > ) $ ( $ w ) * {
<quack macros>:8 # [ allow ( unused_variables ) ] # [ inline ( always ) ] fn get_from (
<quack macros>:9 $ this : & $ this_type < $ ( $ t ) , * > ) -> $ get_prop_type { $ e } } } } ;
<quack macros>:1:1: 1:42 note: in expansion of quack_macro_items!
<quack macros>:5:1: 9:74 note: expansion site
<quack macros>:1:1: 15:38 note: in expansion of quack_get!
<quack macros>:13:1: 15:36 note: expansion site
<quack macros>:1:1: 15:38 note: in expansion of quack_get!
<quack macros>:11:1: 13:40 note: expansion site
<quack macros>:1:1: 20:6 note: in expansion of quack!
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:184:1: 203:2 note: expansion site
<quack macros>:6:1: 9:72 error: the impl does not reference any types defined in this crate; only traits defined in the current crate can be implemented for arbitrary types [E0117]
<quack macros>:6 impl < $ ( $ u ) , * > $ crate:: GetFrom for (
<quack macros>:7 $ get_prop_type , $ this_type < $ ( $ t ) , * > ) $ ( $ w ) * {
<quack macros>:8 # [ allow ( unused_variables ) ] # [ inline ( always ) ] fn get_from (
<quack macros>:9 $ this : & $ this_type < $ ( $ t ) , * > ) -> $ get_prop_type { $ e } } } } ;
<quack macros>:1:1: 1:42 note: in expansion of quack_macro_items!
<quack macros>:5:1: 9:74 note: expansion site
<quack macros>:1:1: 15:38 note: in expansion of quack_get!
<quack macros>:13:1: 15:36 note: expansion site
<quack macros>:1:1: 15:38 note: in expansion of quack_get!
<quack macros>:11:1: 13:40 note: expansion site
<quack macros>:1:1: 20:6 note: in expansion of quack!
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:184:1: 203:2 note: expansion site
<quack macros>:6:1: 9:72 error: the impl does not reference any types defined in this crate; only traits defined in the current crate can be implemented for arbitrary types [E0117]
<quack macros>:6 impl < $ ( $ u ) , * > $ crate:: GetFrom for (
<quack macros>:7 $ get_prop_type , $ this_type < $ ( $ t ) , * > ) $ ( $ w ) * {
<quack macros>:8 # [ allow ( unused_variables ) ] # [ inline ( always ) ] fn get_from (
<quack macros>:9 $ this : & $ this_type < $ ( $ t ) , * > ) -> $ get_prop_type { $ e } } } } ;
<quack macros>:1:1: 1:42 note: in expansion of quack_macro_items!
<quack macros>:5:1: 9:74 note: expansion site
<quack macros>:1:1: 15:38 note: in expansion of quack_get!
<quack macros>:13:1: 15:36 note: expansion site
<quack macros>:1:1: 15:38 note: in expansion of quack_get!
<quack macros>:11:1: 13:40 note: expansion site
<quack macros>:1:1: 20:6 note: in expansion of quack!
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:184:1: 203:2 note: expansion site
<quack macros>:6:1: 9:72 error: the impl does not reference any types defined in this crate; only traits defined in the current crate can be implemented for arbitrary types [E0117]
<quack macros>:6 impl < $ ( $ u ) , * > $ crate:: GetFrom for (
<quack macros>:7 $ get_prop_type , $ this_type < $ ( $ t ) , * > ) $ ( $ w ) * {
<quack macros>:8 # [ allow ( unused_variables ) ] # [ inline ( always ) ] fn get_from (
<quack macros>:9 $ this : & $ this_type < $ ( $ t ) , * > ) -> $ get_prop_type { $ e } } } } ;
<quack macros>:1:1: 1:42 note: in expansion of quack_macro_items!
<quack macros>:5:1: 9:74 note: expansion site
<quack macros>:1:1: 15:38 note: in expansion of quack_get!
<quack macros>:13:1: 15:36 note: expansion site
<quack macros>:1:1: 15:38 note: in expansion of quack_get!
<quack macros>:11:1: 13:40 note: expansion site
<quack macros>:1:1: 20:6 note: in expansion of quack!
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:184:1: 203:2 note: expansion site
<quack macros>:6:1: 10:4 error: the impl does not reference any types defined in this crate; only traits defined in the current crate can be implemented for arbitrary types [E0117]
<quack macros>:6 impl < $ ( $ u ) , * > $ crate:: SetAt for (
<quack macros>:7 $ set_prop_type , $ this_type < $ ( $ t ) , * > ) $ ( $ w ) * {
<quack macros>:8 # [ allow ( unused_variables ) ] # [ inline ( always ) ] fn set_at (
<quack macros>:9 $ val : $ set_prop_type , $ this : & mut $ this_type < $ ( $ t ) , * > ) { $ f
<quack macros>:10 } } } } ; (
<quack macros>:1:1: 1:42 note: in expansion of quack_macro_items!
<quack macros>:5:1: 10:6 note: expansion site
<quack macros>:1:1: 16:50 note: in expansion of quack_set!
<quack macros>:14:1: 16:48 note: expansion site
<quack macros>:1:1: 16:50 note: in expansion of quack_set!
<quack macros>:14:1: 16:52 note: expansion site
<quack macros>:1:1: 20:6 note: in expansion of quack!
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:184:1: 203:2 note: expansion site
<quack macros>:6:1: 10:4 error: the impl does not reference any types defined in this crate; only traits defined in the current crate can be implemented for arbitrary types [E0117]
<quack macros>:6 impl < $ ( $ u ) , * > $ crate:: SetAt for (
<quack macros>:7 $ set_prop_type , $ this_type < $ ( $ t ) , * > ) $ ( $ w ) * {
<quack macros>:8 # [ allow ( unused_variables ) ] # [ inline ( always ) ] fn set_at (
<quack macros>:9 $ val : $ set_prop_type , $ this : & mut $ this_type < $ ( $ t ) , * > ) { $ f
<quack macros>:10 } } } } ; (
<quack macros>:1:1: 1:42 note: in expansion of quack_macro_items!
<quack macros>:5:1: 10:6 note: expansion site
<quack macros>:1:1: 16:50 note: in expansion of quack_set!
<quack macros>:14:1: 16:48 note: expansion site
<quack macros>:1:1: 16:50 note: in expansion of quack_set!
<quack macros>:14:1: 16:52 note: expansion site
<quack macros>:1:1: 20:6 note: in expansion of quack!
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:184:1: 203:2 note: expansion site
<quack macros>:6:1: 10:4 error: the impl does not reference any types defined in this crate; only traits defined in the current crate can be implemented for arbitrary types [E0117]
<quack macros>:6 impl < $ ( $ u ) , * > $ crate:: SetAt for (
<quack macros>:7 $ set_prop_type , $ this_type < $ ( $ t ) , * > ) $ ( $ w ) * {
<quack macros>:8 # [ allow ( unused_variables ) ] # [ inline ( always ) ] fn set_at (
<quack macros>:9 $ val : $ set_prop_type , $ this : & mut $ this_type < $ ( $ t ) , * > ) { $ f
<quack macros>:10 } } } } ; (
<quack macros>:1:1: 1:42 note: in expansion of quack_macro_items!
<quack macros>:5:1: 10:6 note: expansion site
<quack macros>:1:1: 16:50 note: in expansion of quack_set!
<quack macros>:14:1: 16:48 note: expansion site
<quack macros>:1:1: 16:50 note: in expansion of quack_set!
<quack macros>:14:1: 16:52 note: expansion site
<quack macros>:1:1: 20:6 note: in expansion of quack!
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:184:1: 203:2 note: expansion site
<quack macros>:6:1: 10:4 error: the impl does not reference any types defined in this crate; only traits defined in the current crate can be implemented for arbitrary types [E0117]
<quack macros>:6 impl < $ ( $ u ) , * > $ crate:: SetAt for (
<quack macros>:7 $ set_prop_type , $ this_type < $ ( $ t ) , * > ) $ ( $ w ) * {
<quack macros>:8 # [ allow ( unused_variables ) ] # [ inline ( always ) ] fn set_at (
<quack macros>:9 $ val : $ set_prop_type , $ this : & mut $ this_type < $ ( $ t ) , * > ) { $ f
<quack macros>:10 } } } } ; (
<quack macros>:1:1: 1:42 note: in expansion of quack_macro_items!
<quack macros>:5:1: 10:6 note: expansion site
<quack macros>:1:1: 16:50 note: in expansion of quack_set!
<quack macros>:14:1: 16:48 note: expansion site
<quack macros>:1:1: 16:50 note: in expansion of quack_set!
<quack macros>:14:1: 16:52 note: expansion site
<quack macros>:1:1: 20:6 note: in expansion of quack!
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:184:1: 203:2 note: expansion site
<quack macros>:6:1: 11:26 error: the impl does not reference any types defined in this crate; only traits defined in the current crate can be implemented for arbitrary types [E0117]
<quack macros>:6 impl < $ ( $ u ) , * > $ crate:: ActOn for (
<quack macros>:7 $ action_type , $ this_type < $ ( $ t ) , * > ) $ ( $ w ) * {
<quack macros>:8 type Result = $ ret_action_type ; # [ allow ( unused_variables ) ] # [
<quack macros>:9 inline ( always ) ] fn act_on (
<quack macros>:10 $ action : $ action_type , $ this : & mut $ this_type < $ ( $ t ) , * > ) -> $
<quack macros>:11 ret_action_type { $ g } } } } ; (
<quack macros>:1:1: 1:42 note: in expansion of quack_macro_items!
<quack macros>:5:1: 11:28 note: expansion site
<quack macros>:1:1: 17:72 note: in expansion of quack_action!
<quack macros>:15:1: 17:70 note: expansion site
<quack macros>:1:1: 17:72 note: in expansion of quack_action!
<quack macros>:17:1: 19:77 note: expansion site
<quack macros>:1:1: 20:6 note: in expansion of quack!
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:184:1: 203:2 note: expansion site
<quack macros>:6:1: 11:26 error: the impl does not reference any types defined in this crate; only traits defined in the current crate can be implemented for arbitrary types [E0117]
<quack macros>:6 impl < $ ( $ u ) , * > $ crate:: ActOn for (
<quack macros>:7 $ action_type , $ this_type < $ ( $ t ) , * > ) $ ( $ w ) * {
<quack macros>:8 type Result = $ ret_action_type ; # [ allow ( unused_variables ) ] # [
<quack macros>:9 inline ( always ) ] fn act_on (
<quack macros>:10 $ action : $ action_type , $ this : & mut $ this_type < $ ( $ t ) , * > ) -> $
<quack macros>:11 ret_action_type { $ g } } } } ; (
<quack macros>:1:1: 1:42 note: in expansion of quack_macro_items!
<quack macros>:5:1: 11:28 note: expansion site
<quack macros>:1:1: 17:72 note: in expansion of quack_action!
<quack macros>:15:1: 17:70 note: expansion site
<quack macros>:1:1: 17:72 note: in expansion of quack_action!
<quack macros>:17:1: 19:77 note: expansion site
<quack macros>:1:1: 20:6 note: in expansion of quack!
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:184:1: 203:2 note: expansion site
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:205:1: 207:2 error: the impl does not reference any types defined in this crate; only traits defined in the current crate can be implemented for arbitrary types [E0117]
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:205 impl Associative for (PollEvent, NoWindow) {
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:206     type Type = Input;
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:207 }
/home/me/.cargo/git/checkouts/shader_version-7b6bcaf792adf596/master/src/opengl.rs:8:10: 8:14 error: the trait `core::clone::Clone` is not implemented for the type `opengl::OpenGL` [E0277]
/home/me/.cargo/git/checkouts/shader_version-7b6bcaf792adf596/master/src/opengl.rs:8 #[derive(Copy, PartialEq, Eq, PartialOrd, Ord)]
                                                                                                  ^~~~
/home/me/.cargo/git/checkouts/shader_version-7b6bcaf792adf596/master/src/opengl.rs:8:10: 8:14 note: in expansion of #[derive_Copy]
/home/me/.cargo/git/checkouts/shader_version-7b6bcaf792adf596/master/src/opengl.rs:8:10: 8:14 note: expansion site
/home/me/.cargo/git/checkouts/shader_version-7b6bcaf792adf596/master/src/glsl.rs:13:10: 13:14 error: the trait `core::clone::Clone` is not implemented for the type `glsl::GLSL` [E0277]
/home/me/.cargo/git/checkouts/shader_version-7b6bcaf792adf596/master/src/glsl.rs:13 #[derive(Copy, PartialOrd, Ord, PartialEq, Eq)]
                                                                                                 ^~~~
/home/me/.cargo/git/checkouts/shader_version-7b6bcaf792adf596/master/src/glsl.rs:13:10: 13:14 note: in expansion of #[derive_Copy]
/home/me/.cargo/git/checkouts/shader_version-7b6bcaf792adf596/master/src/glsl.rs:13:10: 13:14 note: expansion site
error: aborting due to 2 previous errors
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:85:10: 85:14 error: the trait `core::clone::Clone` is not implemented for the type `ShouldClose` [E0277]
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:85 #[derive(Copy)]
                                                                                        ^~~~
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:85:10: 85:14 note: in expansion of #[derive_Copy]
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:85:10: 85:14 note: expansion site
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:89:10: 89:14 error: the trait `core::clone::Clone` is not implemented for the type `Size` [E0277]
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:89 #[derive(Copy)]
                                                                                        ^~~~
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:89:10: 89:14 note: in expansion of #[derive_Copy]
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:89:10: 89:14 note: expansion site
Build failed, waiting for other jobs to finish...
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:100:10: 100:14 error: the trait `core::clone::Clone` is not implemented for the type `SwapBuffers` [E0277]
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:100 #[derive(Copy)]
                                                                                         ^~~~
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:100:10: 100:14 note: in expansion of #[derive_Copy]
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:100:10: 100:14 note: expansion site
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:111:10: 111:14 error: the trait `core::clone::Clone` is not implemented for the type `PollEvent` [E0277]
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:111 #[derive(Copy)]
                                                                                         ^~~~
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:111:10: 111:14 note: in expansion of #[derive_Copy]
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:111:10: 111:14 note: expansion site
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:118:10: 118:14 error: the trait `core::clone::Clone` is not implemented for the type `Samples` [E0277]
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:118 #[derive(Copy)]
                                                                                         ^~~~
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:118:10: 118:14 note: in expansion of #[derive_Copy]
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:118:10: 118:14 note: expansion site
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:122:10: 122:14 error: the trait `core::clone::Clone` is not implemented for the type `Fullscreen` [E0277]
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:122 #[derive(Copy)]
                                                                                         ^~~~
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:122:10: 122:14 note: in expansion of #[derive_Copy]
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:122:10: 122:14 note: expansion site
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:126:10: 126:14 error: the trait `core::clone::Clone` is not implemented for the type `ExitOnEsc` [E0277]
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:126 #[derive(Copy)]
                                                                                         ^~~~
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:126:10: 126:14 note: in expansion of #[derive_Copy]
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:126:10: 126:14 note: expansion site
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:130:10: 130:14 error: the trait `core::clone::Clone` is not implemented for the type `CaptureCursor` [E0277]
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:130 #[derive(Copy)]
                                                                                         ^~~~
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:130:10: 130:14 note: in expansion of #[derive_Copy]
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:130:10: 130:14 note: expansion site
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:134:10: 134:14 error: the trait `core::clone::Clone` is not implemented for the type `DrawSize` [E0277]
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:134 #[derive(Copy)]
                                                                                         ^~~~
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:134:10: 134:14 note: in expansion of #[derive_Copy]
/home/me/.cargo/git/checkouts/window-9dac4f324a050427/master/src/lib.rs:134:10: 134:14 note: expansion site
error: aborting due to 21 previous errors
/home/me/.cargo/git/checkouts/rust-sdl2-8facfb557b6c1670/master/sdl2-sys/src/audio.rs:45:10: 45:14 error: the trait `core::clone::Clone` is not implemented for the type `audio::SDL_AudioCVT` [E0277]
/home/me/.cargo/git/checkouts/rust-sdl2-8facfb557b6c1670/master/sdl2-sys/src/audio.rs:45 #[derive(Copy)]
                                                                                                      ^~~~
/home/me/.cargo/git/checkouts/rust-sdl2-8facfb557b6c1670/master/sdl2-sys/src/audio.rs:45:10: 45:14 note: in expansion of #[derive_Copy]
/home/me/.cargo/git/checkouts/rust-sdl2-8facfb557b6c1670/master/sdl2-sys/src/audio.rs:45:10: 45:14 note: expansion site
/home/me/.cargo/git/checkouts/rust-sdl2-8facfb557b6c1670/master/sdl2-sys/src/touch.rs:8:21: 8:25 error: the trait `core::clone::Clone` is not implemented for the type `touch::Finger` [E0277]
/home/me/.cargo/git/checkouts/rust-sdl2-8facfb557b6c1670/master/sdl2-sys/src/touch.rs:8 #[derive(PartialEq, Copy)]
                                                                                                                ^~~~
/home/me/.cargo/git/checkouts/rust-sdl2-8facfb557b6c1670/master/sdl2-sys/src/touch.rs:8:21: 8:25 note: in expansion of #[derive_Copy]
/home/me/.cargo/git/checkouts/rust-sdl2-8facfb557b6c1670/master/sdl2-sys/src/touch.rs:8:21: 8:25 note: expansion site
error: aborting due to 2 previous errors
/home/me/.cargo/git/checkouts/draw_state-1e8ed0c6197e116e/master/src/state.rs:170:24: 170:26 error: unary negation of unsigned integers may be removed in the future
/home/me/.cargo/git/checkouts/draw_state-1e8ed0c6197e116e/master/src/state.rs:170             mask_read: -1,
                                                                                                             ^~
/home/me/.cargo/git/checkouts/draw_state-1e8ed0c6197e116e/master/src/state.rs:170:26: 170:26 help: add #![feature(negate_unsigned)] to the crate attributes to enable
/home/me/.cargo/git/checkouts/draw_state-1e8ed0c6197e116e/master/src/state.rs:171:25: 171:27 error: unary negation of unsigned integers may be removed in the future
/home/me/.cargo/git/checkouts/draw_state-1e8ed0c6197e116e/master/src/state.rs:171             mask_write: -1,
                                                                                                              ^~
/home/me/.cargo/git/checkouts/draw_state-1e8ed0c6197e116e/master/src/state.rs:171:27: 171:27 help: add #![feature(negate_unsigned)] to the crate attributes to enable
/home/me/.cargo/git/checkouts/draw_state-1e8ed0c6197e116e/master/src/lib.rs:108:24: 108:26 error: unary negation of unsigned integers may be removed in the future
/home/me/.cargo/git/checkouts/draw_state-1e8ed0c6197e116e/master/src/lib.rs:108             mask_read: -1,
                                                                                                           ^~
/home/me/.cargo/git/checkouts/draw_state-1e8ed0c6197e116e/master/src/lib.rs:108:26: 108:26 help: add #![feature(negate_unsigned)] to the crate attributes to enable
/home/me/.cargo/git/checkouts/draw_state-1e8ed0c6197e116e/master/src/lib.rs:109:25: 109:27 error: unary negation of unsigned integers may be removed in the future
/home/me/.cargo/git/checkouts/draw_state-1e8ed0c6197e116e/master/src/lib.rs:109             mask_write: -1,
                                                                                                            ^~
/home/me/.cargo/git/checkouts/draw_state-1e8ed0c6197e116e/master/src/lib.rs:109:27: 109:27 help: add #![feature(negate_unsigned)] to the crate attributes to enable
error: aborting due to 4 previous errors
Could not compile `shader_version`.

Caused by:
  Process didn't exit successfully: `rustc /home/me/.cargo/git/checkouts/shader_version-7b6bcaf792adf596/master/src/lib.rs --crate-name shader_version --crate-type lib -g -C metadata=c0d3970179066072 -C extra-filename=-c0d3970179066072 --out-dir /home/me/getting-started/target/debug/deps --emit=dep-info,link -L dependency=/home/me/getting-started/target/debug/deps -L dependency=/home/me/getting-started/target/debug/deps -Awarnings` (exit code: 101)
me@me-desktop ~/getting-started $ 

@Potpourri
Copy link
Member

Sorry for not ping you, but now something broken every day. I know about these errors, but it not easy to fix. Still a lot of work before all will be fixed.

@KingOfThePirates
Copy link
Author

I am patient, I am just excited for when it works. I wanna make games already :)

@Potpourri
Copy link
Member

@KingOfThePirates now tutorial is working. You need to use latest rust by nightly channel and don't forgot to make cargo update.

@KingOfThePirates
Copy link
Author

Almost! There's an error :(

me@me-desktop ~/getting-started $ cargo build -v
       Fresh khronos_api v0.0.5 (https://github.com/bjz/gl-rs#3ebf1cfe)
       Fresh pkg-config v0.3.3
       Fresh read_color v0.0.2 (https://github.com/PistonDevelopers/read_color#568723fb)
       Fresh bitflags v0.1.1
       Fresh shader_version v0.0.5 (https://github.com/pistondevelopers/shader_version#c85ca327)
       Fresh rustc-serialize v0.3.12
       Fresh byteorder v0.3.5
       Fresh libc v0.1.5
       Fresh khronos_api v0.0.5
       Fresh piston-texture v0.0.1 (https://github.com/PistonDevelopers/texture#3cc4cddc)
       Fresh xml-rs v0.1.23
       Fresh draw_state v0.0.6 (https://github.com/gfx-rs/draw_state#c85bd73d)
       Fresh clock_ticks v0.0.5 (https://github.com/tomaka/clock_ticks#cdb6499b)
       Fresh gl_common v0.0.4 (https://github.com/bjz/gl-rs#3ebf1cfe)
       Fresh sdl2-sys v0.0.33 (https://github.com/AngryLawyer/rust-sdl2#6f153866)
   Compiling num v0.1.21
     Running `rustc /home/me/.cargo/registry/src/gh.neting.cc-1ecc6299db9ec823/num-0.1.21/src/lib.rs --crate-name num --crate-type lib -g -C metadata=cce2019c934f6971 -C extra-filename=-cce2019c934f6971 --out-dir /home/me/getting-started/target/debug/deps --emit=dep-info,link -L dependency=/home/me/getting-started/target/debug/deps -L dependency=/home/me/getting-started/target/debug/deps --extern rand=/home/me/getting-started/target/debug/deps/librand-7b0a3af7ae4685dc.rlib --extern rustc_serialize=/home/me/getting-started/target/debug/deps/librustc_serialize-70d93d5334da1e4e.rlib -Awarnings`
   Compiling sdl2 v0.0.35 (https://github.com/AngryLawyer/rust-sdl2#6f153866)
     Running `rustc /home/me/.cargo/git/checkouts/rust-sdl2-8facfb557b6c1670/master/src/sdl2/lib.rs --crate-name sdl2 --crate-type lib -g --cfg feature="default" -C metadata=a064b7049d699f0c -C extra-filename=-a064b7049d699f0c --out-dir /home/me/getting-started/target/debug/deps --emit=dep-info,link -L dependency=/home/me/getting-started/target/debug/deps -L dependency=/home/me/getting-started/target/debug/deps --extern bitflags=/home/me/getting-started/target/debug/deps/libbitflags-518ea12e21428edd.rlib --extern libc=/home/me/getting-started/target/debug/deps/liblibc-8c77960f0e8d4e86.rlib --extern rand=/home/me/getting-started/target/debug/deps/librand-7b0a3af7ae4685dc.rlib --extern sdl2_sys=/home/me/getting-started/target/debug/deps/libsdl2_sys-4e2764e28e66a0e3.rlib -Awarnings`
       Fresh log v0.3.1
       Fresh rand v0.3.7
   Compiling gl v0.0.12 (https://github.com/bjz/gl-rs#3ebf1cfe)
     Running `/home/me/getting-started/target/debug/build/gl-68546995ca960fc2/build-script-build`
       Fresh gl_generator v0.0.23 (https://github.com/bjz/gl-rs#3ebf1cfe)
       Fresh libz-sys v0.1.2
       Fresh freetype-sys v0.0.5 (https://github.com/PistonDevelopers/freetype-sys#c661bea0)
/home/me/.cargo/git/checkouts/rust-sdl2-8facfb557b6c1670/master/src/sdl2/lib.rs:4:1: 4:40 error: unstable feature
/home/me/.cargo/git/checkouts/rust-sdl2-8facfb557b6c1670/master/src/sdl2/lib.rs:4 #![feature(optin_builtin_traits, core)]
                                                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: this feature may not be used in the beta release channel
error: aborting due to previous error
Build failed, waiting for other jobs to finish...
Could not compile `sdl2`.

Caused by:
  Process didn't exit successfully: `rustc /home/me/.cargo/git/checkouts/rust-sdl2-8facfb557b6c1670/master/src/sdl2/lib.rs --crate-name sdl2 --crate-type lib -g --cfg feature="default" -C metadata=a064b7049d699f0c -C extra-filename=-a064b7049d699f0c --out-dir /home/me/getting-started/target/debug/deps --emit=dep-info,link -L dependency=/home/me/getting-started/target/debug/deps -L dependency=/home/me/getting-started/target/debug/deps --extern bitflags=/home/me/getting-started/target/debug/deps/libbitflags-518ea12e21428edd.rlib --extern libc=/home/me/getting-started/target/debug/deps/liblibc-8c77960f0e8d4e86.rlib --extern rand=/home/me/getting-started/target/debug/deps/librand-7b0a3af7ae4685dc.rlib --extern sdl2_sys=/home/me/getting-started/target/debug/deps/libsdl2_sys-4e2764e28e66a0e3.rlib -Awarnings` (exit code: 101)
me@me-desktop ~/getting-started $

@Potpourri
Copy link
Member

You need rust by nightly channel instead beta channel.

@KingOfThePirates
Copy link
Author

Hopefully the last error?

me@me-desktop ~/getting-started $ cargo build -v
       Fresh rustc-serialize v0.3.12
       Fresh bitflags v0.1.1
       Fresh shader_version v0.0.5 (https://github.com/pistondevelopers/shader_version#c85ca327)
       Fresh khronos_api v0.0.5 (https://github.com/bjz/gl-rs#3ebf1cfe)
       Fresh pkg-config v0.3.3
       Fresh libc v0.1.5
       Fresh piston-texture v0.0.1 (https://github.com/PistonDevelopers/texture#3cc4cddc)
       Fresh read_color v0.0.2 (https://github.com/PistonDevelopers/read_color#568723fb)
       Fresh byteorder v0.3.5
       Fresh khronos_api v0.0.5
       Fresh draw_state v0.0.6 (https://github.com/gfx-rs/draw_state#c85bd73d)
       Fresh xml-rs v0.1.23
       Fresh gl_common v0.0.4 (https://github.com/bjz/gl-rs#3ebf1cfe)
       Fresh sdl2-sys v0.0.33 (https://github.com/AngryLawyer/rust-sdl2#6f153866)
       Fresh clock_ticks v0.0.5 (https://github.com/tomaka/clock_ticks#cdb6499b)
       Fresh log v0.3.1
       Fresh gl_generator v0.0.23 (https://github.com/bjz/gl-rs#3ebf1cfe)
       Fresh rand v0.3.7
       Fresh libz-sys v0.1.2
       Fresh sdl2 v0.0.35 (https://github.com/AngryLawyer/rust-sdl2#6f153866)
       Fresh num v0.1.21
       Fresh freetype-sys v0.0.5 (https://github.com/PistonDevelopers/freetype-sys#c661bea0)
       Fresh vecmath v0.0.6 (https://github.com/PistonDevelopers/vecmath#19cde554)
       Fresh image v0.3.6 (https://github.com/pistondevelopers/image#804f22fa)
       Fresh pistoncore-input v0.0.9 (https://github.com/pistondevelopers/input#cb061504)
       Fresh interpolation v0.0.4 (https://github.com/PistonDevelopers/interpolation#af95875d)
       Fresh freetype-rs v0.0.7 (https://github.com/PistonDevelopers/freetype-rs.git#029c58ec)
       Fresh gl v0.0.12 (https://github.com/bjz/gl-rs#3ebf1cfe)
       Fresh pistoncore-window v0.1.0 (https://github.com/pistondevelopers/window#b2174caf)
       Fresh piston2d-graphics v0.0.26 (https://github.com/PistonDevelopers/graphics.git#a688462e)
       Fresh pistoncore-event_loop v0.0.18 (https://github.com/PistonDevelopers/event_loop#9c099cb5)
       Fresh piston2d-opengl_graphics v0.0.11 (https://github.com/PistonDevelopers/opengl_graphics.git#e84810c2)
       Fresh pistoncore-event v0.1.0 (https://github.com/pistondevelopers/event#0b3fffe0)
       Fresh piston v0.1.0 (https://github.com/PistonDevelopers/piston.git#b6c4f15a)
       Fresh pistoncore-sdl2_window v0.0.8 (https://github.com/PistonDevelopers/sdl2_window.git#5f28c09b)
   Compiling getting-started v0.0.0 (file:///home/me/getting-started)
     Running `rustc src/main.rs --crate-name game --crate-type bin -g --out-dir /home/me/getting-started/target/debug --emit=dep-info,link -L dependency=/home/me/getting-started/target/debug -L dependency=/home/me/getting-started/target/debug/deps --extern piston=/home/me/getting-started/target/debug/deps/libpiston-11b22452dfd51e1b.rlib --extern sdl2_window=/home/me/getting-started/target/debug/deps/libsdl2_window-9404e8e0ea35ff63.rlib --extern opengl_graphics=/home/me/getting-started/target/debug/deps/libopengl_graphics-222e72c9e8c3c73f.rlib --extern graphics=/home/me/getting-started/target/debug/deps/libgraphics-3ec65f4f2805722e.rlib -L native=/usr/lib/x86_64-linux-gnu`
error: linking with `cc` failed: exit code: 1
note: "cc" "-Wl,--as-needed" "-m64" "-L" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/me/getting-started/target/debug/game" "/home/me/getting-started/target/debug/game.o" "-Wl,--whole-archive" "-lmorestack" "-Wl,--no-whole-archive" "-Wl,--gc-sections" "-pie" "-nodefaultlibs" "/home/me/getting-started/target/debug/deps/libsdl2_window-9404e8e0ea35ff63.rlib" "/home/me/getting-started/target/debug/deps/libpiston-11b22452dfd51e1b.rlib" "/home/me/getting-started/target/debug/deps/libsdl2-a064b7049d699f0c.rlib" "/home/me/getting-started/target/debug/deps/libsdl2_sys-4e2764e28e66a0e3.rlib" "/home/me/getting-started/target/debug/deps/libopengl_graphics-222e72c9e8c3c73f.rlib" "/home/me/getting-started/target/debug/deps/libfreetype-3fe4d3cf608e3e5b.rlib" "/home/me/getting-started/target/debug/deps/libgl-68546995ca960fc2.rlib" "/home/me/getting-started/target/debug/deps/libgl_common-ba78e2ee345cf946.rlib" "/home/me/getting-started/target/debug/deps/libgraphics-3ec65f4f2805722e.rlib" "/home/me/getting-started/target/debug/deps/libread_color-b5ea21c50dad9d6f.rlib" "/home/me/getting-started/target/debug/deps/libtexture-d4ce7c5d490380ef.rlib" "/home/me/getting-started/target/debug/deps/libimage-957dafaefc670578.rlib" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/libflate-4e7c5e5c.rlib" "/home/me/getting-started/target/debug/deps/libinterpolation-f953cedd5e7c507e.rlib" "/home/me/getting-started/target/debug/deps/libfreetype_sys-1ca2d29be397ce18.rlib" "/home/me/getting-started/target/debug/deps/libdraw_state-7e2b67dde60a3059.rlib" "/home/me/getting-started/target/debug/deps/libevent-c445e72d20559ab9.rlib" "/home/me/getting-started/target/debug/deps/libshader_version-c0d3970179066072.rlib" "/home/me/getting-started/target/debug/deps/libevent_loop-107e8b9f1ccae678.rlib" "/home/me/getting-started/target/debug/deps/libwindow-d7ff9657c7c8b5f2.rlib" "/home/me/getting-started/target/debug/deps/libclock_ticks-f89ed1b2a66f1f6e.rlib" "/home/me/getting-started/target/debug/deps/libinput-72587ab52722802f.rlib" "/home/me/getting-started/target/debug/deps/libbitflags-518ea12e21428edd.rlib" "/home/me/getting-started/target/debug/deps/libbyteorder-919e9a7c69df6496.rlib" "/home/me/getting-started/target/debug/deps/libvecmath-8d97dbf9d32ca84b.rlib" "/home/me/getting-started/target/debug/deps/libnum-cce2019c934f6971.rlib" "/home/me/getting-started/target/debug/deps/librand-7b0a3af7ae4685dc.rlib" "/home/me/getting-started/target/debug/deps/liblibc-8c77960f0e8d4e86.rlib" "/home/me/getting-started/target/debug/deps/librustc_serialize-70d93d5334da1e4e.rlib" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-4e7c5e5c.rlib" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcollections-4e7c5e5c.rlib" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunicode-4e7c5e5c.rlib" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/librand-4e7c5e5c.rlib" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-4e7c5e5c.rlib" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-4e7c5e5c.rlib" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-4e7c5e5c.rlib" "-L" "/home/me/getting-started/target/debug" "-L" "/home/me/getting-started/target/debug/deps" "-L" "/usr/lib/x86_64-linux-gnu" "-L" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/home/me/getting-started/.rust/lib/x86_64-unknown-linux-gnu" "-L" "/home/me/getting-started/lib/x86_64-unknown-linux-gnu" "-Wl,--whole-archive" "-Wl,-Bstatic" "-Wl,--no-whole-archive" "-Wl,-Bdynamic" "-lSDL2" "-lSDL2" "-lfreetype" "-lrt" "-lc" "-lm" "-ldl" "-lpthread" "-lrt" "-lgcc_s" "-lpthread" "-lc" "-lm" "-lcompiler-rt"
note: /usr/bin/ld: cannot find -lfreetype
collect2: error: ld returned 1 exit status

error: aborting due to previous error
Could not compile `getting-started`.

Caused by:
  Process didn't exit successfully: `rustc src/main.rs --crate-name game --crate-type bin -g --out-dir /home/me/getting-started/target/debug --emit=dep-info,link -L dependency=/home/me/getting-started/target/debug -L dependency=/home/me/getting-started/target/debug/deps --extern piston=/home/me/getting-started/target/debug/deps/libpiston-11b22452dfd51e1b.rlib --extern sdl2_window=/home/me/getting-started/target/debug/deps/libsdl2_window-9404e8e0ea35ff63.rlib --extern opengl_graphics=/home/me/getting-started/target/debug/deps/libopengl_graphics-222e72c9e8c3c73f.rlib --extern graphics=/home/me/getting-started/target/debug/deps/libgraphics-3ec65f4f2805722e.rlib -L native=/usr/lib/x86_64-linux-gnu` (exit code: 101)
me@me-desktop ~/getting-started $

@Potpourri
Copy link
Member

sudo apt-get install libfreetype6-dev?

@KingOfThePirates
Copy link
Author

Needed that, yet another:

me@me-desktop ~/getting-started $ cargo build
me@me-desktop ~/getting-started $ cargo run -v
       Fresh rustc-serialize v0.3.12
       Fresh pkg-config v0.3.3
       Fresh libc v0.1.5
       Fresh byteorder v0.3.5
       Fresh read_color v0.0.2 (https://github.com/PistonDevelopers/read_color#568723fb)
       Fresh khronos_api v0.0.5
       Fresh khronos_api v0.0.5 (https://github.com/bjz/gl-rs#3ebf1cfe)
       Fresh piston-texture v0.0.1 (https://github.com/PistonDevelopers/texture#3cc4cddc)
       Fresh shader_version v0.0.5 (https://github.com/pistondevelopers/shader_version#c85ca327)
       Fresh bitflags v0.1.1
       Fresh clock_ticks v0.0.5 (https://github.com/tomaka/clock_ticks#cdb6499b)
       Fresh gl_common v0.0.4 (https://github.com/bjz/gl-rs#3ebf1cfe)
       Fresh log v0.3.1
       Fresh sdl2-sys v0.0.33 (https://github.com/AngryLawyer/rust-sdl2#6f153866)
       Fresh draw_state v0.0.6 (https://github.com/gfx-rs/draw_state#c85bd73d)
       Fresh xml-rs v0.1.23
       Fresh rand v0.3.7
       Fresh gl_generator v0.0.23 (https://github.com/bjz/gl-rs#3ebf1cfe)
       Fresh libz-sys v0.1.2
       Fresh num v0.1.21
       Fresh sdl2 v0.0.35 (https://github.com/AngryLawyer/rust-sdl2#6f153866)
       Fresh freetype-sys v0.0.5 (https://github.com/PistonDevelopers/freetype-sys#c661bea0)
       Fresh vecmath v0.0.6 (https://github.com/PistonDevelopers/vecmath#19cde554)
       Fresh image v0.3.6 (https://github.com/pistondevelopers/image#804f22fa)
       Fresh interpolation v0.0.4 (https://github.com/PistonDevelopers/interpolation#af95875d)
       Fresh pistoncore-input v0.0.9 (https://github.com/pistondevelopers/input#cb061504)
       Fresh freetype-rs v0.0.7 (https://github.com/PistonDevelopers/freetype-rs.git#029c58ec)
       Fresh piston2d-graphics v0.0.26 (https://github.com/PistonDevelopers/graphics.git#a688462e)
       Fresh pistoncore-window v0.1.0 (https://github.com/pistondevelopers/window#b2174caf)
       Fresh gl v0.0.12 (https://github.com/bjz/gl-rs#3ebf1cfe)
       Fresh pistoncore-event_loop v0.0.18 (https://github.com/PistonDevelopers/event_loop#9c099cb5)
       Fresh piston2d-opengl_graphics v0.0.11 (https://github.com/PistonDevelopers/opengl_graphics.git#e84810c2)
       Fresh pistoncore-event v0.1.0 (https://github.com/pistondevelopers/event#0b3fffe0)
       Fresh piston v0.1.0 (https://github.com/PistonDevelopers/piston.git#b6c4f15a)
       Fresh pistoncore-sdl2_window v0.0.8 (https://github.com/PistonDevelopers/sdl2_window.git#5f28c09b)
       Fresh getting-started v0.0.0 (file:///home/me/getting-started)
     Running `target/debug/game`
thread '<main>' panicked at 'called `Result::unwrap()` on an `Err` value: "Could not create GL context"', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libcore/result.rs:774
Process didn't exit successfully: `target/debug/game` (exit code: 101)
me@me-desktop ~/getting-started $

@Potpourri
Copy link
Member

This is interesting. Please show output glxinfo | grep OpenGL.

@KingOfThePirates
Copy link
Author

me-desktop ~ # glxinfo | grep OpenGL
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD TAHITI
OpenGL core profile version string: 3.1 (Core Profile) Mesa 10.1.3
OpenGL core profile shading language version string: 1.40
OpenGL core profile context flags: (none)
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 10.1.3
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
me-desktop ~ #

@Potpourri
Copy link
Member

You need to change OpenGL version here to OpenGL::_3_1.

@KingOfThePirates
Copy link
Author

Thank you, it works!!

@Potpourri
Copy link
Member

I'm glad that was able to help you. Closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants