Closed vangourd closed 5 years ago
I could not get this running on Ubuntu 18.04 Desktop. Maybe an issue with Wayland?
I had to manually install librsvg2-dev and librsvg2-bin to satisfy Cargo to get Build to be happy.
When I try and execute the examples I get the following
cargo run --example play --verbose Fresh pkg-config v0.3.14 Fresh version_check v0.1.4 Fresh libc v0.2.43 Fresh bitflags v1.0.4 Fresh fragile v0.3.0 Fresh unicode-xid v0.1.0 Fresh cfg-if v0.1.5 Fresh nodrop v0.1.12 Fresh rand_core v0.2.1 Fresh time v0.1.40 Fresh log v0.4.5 Fresh arrayvec v0.4.7 Fresh rand v0.5.5 Fresh proc-macro2 v0.4.19 Fresh num-traits v0.2.6 Fresh glib-sys v0.7.0 Fresh lazy_static v1.1.0 Fresh quote v0.6.8 Fresh btoi v0.3.0 Fresh gobject-sys v0.7.0 Fresh syn v0.14.9 Fresh shakmaty v0.11.0 Fresh gio-sys v0.7.0 Fresh glib v0.6.0 Fresh pango-sys v0.7.0 Fresh atk-sys v0.7.0 Fresh relm-gen-widget v0.15.0 Fresh gdk-pixbuf-sys v0.7.0 Fresh cairo-sys-rs v0.7.0 Fresh gio v0.5.0 Fresh pango v0.5.0 Fresh relm-derive-common v0.15.0 Fresh relm-attributes v0.15.0 Fresh cairo-rs v0.5.0 Fresh gdk-sys v0.7.0 Fresh gdk-pixbuf v0.5.0 Fresh relm-derive v0.15.0 Fresh gtk-sys v0.7.0 Fresh rsvg-sys v0.6.0 (https://github.com/niklasf/rsvg-rs.git?branch=gtk-0.5#5a2d475f) Fresh gdk v0.9.0 Fresh rsvg v0.4.0 (https://github.com/niklasf/rsvg-rs.git?branch=gtk-0.5#5a2d475f) Fresh gtk v0.5.0 Fresh relm-core v0.15.0 Fresh relm-state v0.15.0 Fresh relm v0.15.0 Compiling chessground v0.9.0 (file:///home/blogan/rust-chessground) Running `rustc --crate-name play examples/play.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=831722bcec4a3afd -C extra-filename=-831722bcec4a3afd --out-dir /home/blogan/rust-chessground/target/debug/examples -C incremental=/home/blogan/rust-chessground/target/debug/incremental -L dependency=/home/blogan/rust-chessground/target/debug/deps --extern cairo=/home/blogan/rust-chessground/target/debug/deps/libcairo-0e9a075270af6853.rlib --extern chessground=/home/blogan/rust-chessground/target/debug/deps/libchessground-0493c5cc713304cd.rlib --extern gdk=/home/blogan/rust-chessground/target/debug/deps/libgdk-b136e94bd50a3710.rlib --extern gtk=/home/blogan/rust-chessground/target/debug/deps/libgtk-28eb366ffe60211f.rlib --extern rand=/home/blogan/rust-chessground/target/debug/deps/librand-7731562e3c745bc5.rlib --extern relm=/home/blogan/rust-chessground/target/debug/deps/librelm-948298f007ac0b45.rlib --extern relm_attributes=/home/blogan/rust-chessground/target/debug/deps/librelm_attributes-a7c0a4c094f7eb31.so --extern relm_derive=/home/blogan/rust-chessground/target/debug/deps/librelm_derive-9587c71306c05d15.so --extern rsvg=/home/blogan/rust-chessground/target/debug/deps/librsvg-ce42ef19c3113d76.rlib --extern shakmaty=/home/blogan/rust-chessground/target/debug/deps/libshakmaty-80c3940bfd742373.rlib --extern time=/home/blogan/rust-chessground/target/debug/deps/libtime-c89b3efd87d1391f.rlib` warning: proc macro crates and `#[no_link]` crates have no effect without `#[macro_use]` --> examples/play.rs:6:1 | 6 | extern crate relm_attributes; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0432]: unresolved import `relm_attributes::widget` --> examples/play.rs:18:5 | 18 | use relm_attributes::widget; | ^^^^^^^^^^^^^^^^^^^^^^^ no `widget` in the root error: cannot find macro `view!` in this scope --> examples/play.rs:142:5 | 142 | view! { | ^^^^ error[E0407]: method `model` is not a member of trait `Widget` --> examples/play.rs:88:5 | 88 | / fn model() -> Model { 89 | | Model::default() 90 | | } | |_____^ not a member of trait `Widget` error[E0407]: method `update` is not a member of trait `Widget` --> examples/play.rs:92:5 | 92 | / fn update(&mut self, event: Msg) { 93 | | match event { 94 | | Quit => { 95 | | gtk::main_quit() ... | 139 | | } 140 | | } | |_____^ not a member of trait `Widget` error[E0433]: failed to resolve. Use of undeclared type or module `Win` --> examples/play.rs:158:5 | 158 | Win::run(()).expect("initialized gtk"); | ^^^ Use of undeclared type or module `Win` error[E0412]: cannot find type `Win` in this scope --> examples/play.rs:87:17 | 87 | impl Widget for Win { | ^^^ not found in this scope error[E0658]: The attribute `widget` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642) --> examples/play.rs:86:1 | 86 | #[widget] | ^^^^^^^^^ error: aborting due to 7 previous errors Some errors occurred: E0407, E0412, E0432, E0433, E0658. For more information about an error, try `rustc --explain E0407`. error: Could not compile `chessground`. Caused by: process didn't exit successfully: `rustc --crate-name play examples/play.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=831722bcec4a3afd -C extra-filename=-831722bcec4a3afd --out-dir /home/blogan/rust-chessground/target/debug/examples -C incremental=/home/blogan/rust-chessground/target/debug/incremental -L dependency=/home/blogan/rust-chessground/target/debug/deps --extern cairo=/home/blogan/rust-chessground/target/debug/deps/libcairo-0e9a075270af6853.rlib --extern chessground=/home/blogan/rust-chessground/target/debug/deps/libchessground-0493c5cc713304cd.rlib --extern gdk=/home/blogan/rust-chessground/target/debug/deps/libgdk-b136e94bd50a3710.rlib --extern gtk=/home/blogan/rust-chessground/target/debug/deps/libgtk-28eb366ffe60211f.rlib --extern rand=/home/blogan/rust-chessground/target/debug/deps/librand-7731562e3c745bc5.rlib --extern relm=/home/blogan/rust-chessground/target/debug/deps/librelm-948298f007ac0b45.rlib --extern relm_attributes=/home/blogan/rust-chessground/target/debug/deps/librelm_attributes-a7c0a4c094f7eb31.so --extern relm_derive=/home/blogan/rust-chessground/target/debug/deps/librelm_derive-9587c71306c05d15.so --extern rsvg=/home/blogan/rust-chessground/target/debug/deps/librsvg-ce42ef19c3113d76.rlib --extern shakmaty=/home/blogan/rust-chessground/target/debug/deps/libshakmaty-80c3940bfd742373.rlib --extern time=/home/blogan/rust-chessground/target/debug/deps/libtime-c89b3efd87d1391f.rlib` (exit code: 1)
Thanks for reporting. To try reproducing it ... what's your rustc --version?
rustc --version
I could not get this running on Ubuntu 18.04 Desktop. Maybe an issue with Wayland?
I had to manually install librsvg2-dev and librsvg2-bin to satisfy Cargo to get Build to be happy.
When I try and execute the examples I get the following