niklasf / rust-chessground

An experimental chessboard widget for Relm/GTK
https://docs.rs/chessground
GNU General Public License v3.0
65 stars 7 forks source link

Problem with dependencies? #4

Closed shirshak55 closed 5 years ago

shirshak55 commented 5 years ago

I git cloned this repo and tryed it but now showing errors

    Updating git repository `https://github.com/niklasf/rsvg-rs.git`
  Downloaded rand v0.6.5
  Downloaded time v0.1.42
  Downloaded cairo-rs v0.5.0
  Downloaded shakmaty v0.13.1
  Downloaded relm-attributes v0.15.2
  Downloaded gdk v0.9.0
  Downloaded relm-derive v0.15.2
  Downloaded relm v0.15.2
  Downloaded gtk v0.5.0
  Downloaded gdk-pixbuf v0.5.0
  Downloaded glib v0.6.1
  Downloaded bitflags v1.0.4
  Downloaded gobject-sys v0.7.0
  Downloaded glib-sys v0.7.0
  Downloaded pango-sys v0.7.0
  Downloaded libc v0.2.48
  Downloaded gdk-sys v0.7.0
  Downloaded gdk-pixbuf-sys v0.7.0
  Downloaded atk-sys v0.7.0
  Downloaded gio-sys v0.7.0
  Downloaded cairo-sys-rs v0.7.0
  Downloaded pkg-config v0.3.14
  Downloaded rand_os v0.1.2
  Downloaded rand_pcg v0.1.1
  Downloaded rand_core v0.4.0
  Downloaded rand_hc v0.1.0
  Downloaded rand_isaac v0.1.1
  Downloaded rand_xorshift v0.1.1
  Downloaded rand_jitter v0.1.3
  Downloaded rand_chacha v0.1.1
  Downloaded autocfg v0.1.2
  Downloaded quote v0.6.11
  Downloaded syn v0.15.26
  Downloaded relm-gen-widget v0.15.2
  Downloaded lazy_static v1.2.0
  Downloaded arrayvec v0.4.10
  Downloaded btoi v0.4.0
  Downloaded version_check v0.1.5
  Downloaded gio v0.5.1
  Downloaded pango v0.5.0
  Downloaded relm-derive-common v0.15.2
  Downloaded relm-core v0.15.2
  Downloaded relm-state v0.15.2
  Downloaded cc v1.0.29
  Downloaded rand_core v0.3.1
  Downloaded gtk-sys v0.7.0
  Downloaded rustc_version v0.2.3
  Downloaded proc-macro2 v0.4.27
  Downloaded unicode-xid v0.1.0
  Downloaded nodrop v0.1.13
  Downloaded semver v0.9.0
  Downloaded fragile v0.3.0
  Downloaded num-traits v0.2.6
  Downloaded log v0.4.6
  Downloaded semver-parser v0.7.0
  Downloaded cfg-if v0.1.6
   Compiling shakmaty v0.13.1
   Compiling relm-gen-widget v0.15.2
   Compiling cairo-sys-rs v0.7.0
   Compiling gio v0.5.1
error[E0517]: attribute should be applied to struct or union
   --> /Users/shirshak/.cargo/registry/src/github.com-1ecc6299db9ec823/shakmaty-0.13.1/src/types.rs:242:26
    |
242 |   #[cfg_attr(nightly, repr(align(4)))]
    |                            ^^^^^^^^
243 | / pub enum Move {
244 | |     Normal {
245 | |         role: Role,
246 | |         from: Square,
...   |
253 | |     Put { role: Role, to: Square },
254 | | }
    | |_- not a struct or union

   Compiling gdk-pixbuf-sys v0.7.0
   Compiling pango v0.5.0
error: aborting due to previous error

For more information about this error, try `rustc --explain E0517`.
error: Could not compile `shakmaty`.
warning: build failed, waiting for other jobs to finish...
error: build failed
niklasf commented 5 years ago

Looks like you're building on a not-quite-up-to-date nightly Rust. Please try stable or a recent nightly with repr_align_enum.

shirshak55 commented 5 years ago

@niklasf yeah u are correct my bad :(. Thanks I think i can close this issue :)

shirshak55 commented 5 years ago

It work on stable but not on nightly :)

niklasf commented 5 years ago

Mhh ... it really should. What's your rustc --version?

shirshak55 commented 5 years ago
➜  rust-chessground git:(master) rustc --version
rustc 1.32.0 (9fda7c223 2019-01-16)
shirshak55 commented 5 years ago
➜  rust-chessground git:(master) rustup update
info: syncing channel updates for 'stable-x86_64-apple-darwin'
info: syncing channel updates for 'nightly-x86_64-apple-darwin'
info: checking for self-updates

   stable-x86_64-apple-darwin unchanged - rustc 1.32.0 (9fda7c223 2019-01-16)
  nightly-x86_64-apple-darwin unchanged - rustc 1.34.0-nightly (f66e4697a 2019-02-20)
shirshak55 commented 5 years ago

i thought it worked as it was compiling but it didn't .

➜  rust-chessground git:(master) cargo run --example editor
   Compiling pkg-config v0.3.14
   Compiling libc v0.2.48
   Compiling lazy_static v1.2.0
   Compiling bitflags v1.0.4
   Compiling gio v0.5.1
   Compiling fragile v0.3.0
   Compiling cairo-rs v0.5.0
   Compiling gdk-pixbuf v0.5.0
   Compiling proc-macro2 v0.4.27
   Compiling gdk v0.9.0
   Compiling cc v1.0.29
   Compiling unicode-xid v0.1.0
   Compiling semver-parser v0.7.0
   Compiling num-traits v0.2.6
   Compiling cfg-if v0.1.6
   Compiling autocfg v0.1.2
   Compiling arrayvec v0.4.10
   Compiling version_check v0.1.5
   Compiling nodrop v0.1.13
   Compiling rand_core v0.4.0
   Compiling glib-sys v0.7.0
   Compiling gobject-sys v0.7.0
   Compiling gio-sys v0.7.0
   Compiling pango-sys v0.7.0
   Compiling cairo-sys-rs v0.7.0
   Compiling gdk-pixbuf-sys v0.7.0
   Compiling atk-sys v0.7.0
   Compiling gdk-sys v0.7.0
   Compiling gtk-sys v0.7.0
   Compiling rsvg-sys v0.6.0 (https://github.com/niklasf/rsvg-rs.git?branch=gtk-0.5#5a2d475f)
   Compiling semver v0.9.0
   Compiling log v0.4.6
   Compiling shakmaty v0.13.1
   Compiling rand_chacha v0.1.1
   Compiling rand v0.6.5
   Compiling gtk v0.5.0
   Compiling rand_core v0.3.1
   Compiling rustc_version v0.2.3
   Compiling rand_hc v0.1.0
   Compiling rand_xorshift v0.1.1
   Compiling rand_isaac v0.1.1
   Compiling time v0.1.42
   Compiling rand_os v0.1.2
   Compiling rand_jitter v0.1.3
   Compiling rand_pcg v0.1.1
   Compiling quote v0.6.11
   Compiling btoi v0.4.0
   Compiling syn v0.15.26
   Compiling glib v0.6.1
   Compiling pango v0.5.0
   Compiling relm-gen-widget v0.15.2
   Compiling relm-derive-common v0.15.2
   Compiling relm-attributes v0.15.2
   Compiling relm-derive v0.15.2
   Compiling rsvg v0.4.0 (https://github.com/niklasf/rsvg-rs.git?branch=gtk-0.5#5a2d475f)
   Compiling relm-core v0.15.2
   Compiling relm-state v0.15.2
   Compiling relm v0.15.2
   Compiling chessground v0.9.0 (/Users/shirshak/Desktop/code/rust/rust-chessground)
warning: doc comment not used by rustdoc
  --> src/ground.rs:55:5
   |
55 |     /// Flip the board.
   |     ^^^^^^^^^^^^^^^^^^^
   |
   = note: #[warn(unused_doc_comments)] on by default

warning: doc comment not used by rustdoc
  --> src/ground.rs:57:5
   |
57 |     /// Set the board orientation.
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: doc comment not used by rustdoc
  --> src/ground.rs:59:5
   |
59 |     /// Set up a position configuration.
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: doc comment not used by rustdoc
  --> src/ground.rs:61:5
   |
61 |     /// Set up a board.
   |     ^^^^^^^^^^^^^^^^^^^

warning: doc comment not used by rustdoc
  --> src/ground.rs:64:5
   |
64 |     /// Sent when the completed a piece drag or move.
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: doc comment not used by rustdoc
  --> src/ground.rs:66:5
   |
66 |     /// Sent when shapes are added, removed or cleared.
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: method is never used: `turn`
  --> src/boardstate.rs:72:5
   |
72 |     pub fn turn(&self) -> Option<Color> {
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: #[warn(dead_code)] on by default

error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-m64" "-L" "/Users/shirshak/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.12dncwrshddzelsu.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.12p21corkuorerp1.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.172c7vkw36jbitzu.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.1b8vh9yhcg6j2n9n.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.1bdes19os7dpqfsj.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.1co1yq6c6ax7u4mk.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.1dvy6f0jf68qafhl.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.1fh9fo03rfmp9mp5.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.1p04n9a4lx7fntdj.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.1uibypo1j3bhldea.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.204fnjod37nbejwh.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.27bnwaxfirbecbzk.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.29k35axw6jx4kimw.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.2etzuiqmaned0d9k.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.2o2pjzlbjfv5j87m.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.2ofrg6bajpprda1k.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.2rtkcpdbzbm36qot.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.2v9miiqjraq1z9ot.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.38z88rwilo6docf4.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.39z7o1hk7g0r8pj8.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.3dlrqk45y7zzzeb5.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.3e2ohputt2yq8r9i.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.3lgt28jvqnjqjt9.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.3q38tc0cme7rs8e2.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.3watctd54897ov84.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.3z5eiedl3nlr9f1f.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.45l5a55vkdfh0rrl.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.4adnebu4tniisnwm.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.4cpe67ixe2bryzrr.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.4dm8rsh3kf3su1z5.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.4dopbmpsg9vo7byq.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.4ffke9inmr3p1bef.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.4fs2332nqmu0ipdh.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.4g7sjju4zah01eju.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.4jrza79srad04679.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.4k3wm39wk8lyx7q3.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.4rhq3rl44eizn2g.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.4tadjd8eio1wfab1.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.4vpw872i8uo9jy0e.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.4wnmuhqd8i3n2z4m.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.4y7r3ji55bc5i04n.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.4yousxe1kbneq9yb.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.527taxs5yaca6e7d.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.52k11vwmxhv2id4x.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.536ds48yuciuig9w.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.54ink3ry5fg4mceb.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.5658eh9e610y0j79.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.57izn7u2j0pi807i.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.57l4ge7qq21mgqyh.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.57qw6a6bls45q0jb.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.57vqthcpafo47x9m.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.5cj0iro4tca73f94.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.cfy9yy63jybiu06.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.doqafl9dz1nclsk.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.dqibjzknlj4yv3y.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.ed4kg3n36fdh228.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.ewrq0e8ei9acjyy.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.f90yhjhlessv4p4.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.kap0c596n6ts7vw.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.o1smdhqqghw3u4b.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.pmkudlj902j04w9.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.sgn4xuaio2z8w1m.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.x9zxubgimjqzc91.rcgu.o" "-o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-65016fa5aa5451cb.450u8f67veuircst.rcgu.o" "-Wl,-dead_strip" "-nodefaultlibs" "-L" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps" "-L" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/build/gtk-6c27fab773ac3941/out" "-L" "/Users/shirshak/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libchessground-72c81814ed43f1fa.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/librelm-567f57cd7ab138b2.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/librelm_state-8d02e696bc37f884.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/liblog-41c4c88d5e60d998.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libcfg_if-461d14ec077780d2.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/librelm_core-ea2a9b965c7ca161.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libtime-1e369af51a4cc1c1.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libshakmaty-96e1e9b763a45181.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libbtoi-9de0ec67f4705eae.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libnum_traits-df9c1622544e1e51.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libarrayvec-4c860a2ceb1c85bc.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libnodrop-aeb0455b35927c42.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/librsvg-851b9d1586fc54ee.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/librsvg_sys-30bb7f92f0d900bc.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libgtk-e73e0331feb5a0a2.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libgdk-22f8f0a25de6e01c.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libpango-709335767f4204d0.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libcairo-f6fa3471ea5861f3.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libgdk_pixbuf-dd7805de5c37ba04.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libgio-b37eba24a325ddbe.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libfragile-1adf45c879a9afb0.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libgtk_sys-313929b8daa5f04f.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libatk_sys-38c21cb28809d551.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libgdk_sys-1acb86a90fec8005.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libcairo_sys-48e1a24a1c83ce14.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libglib-ce8f42a63c584b5f.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libpango_sys-3f4739c4c0c137e3.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libgdk_pixbuf_sys-a7b60ab5d80c760b.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libgio_sys-9dcb9814b978e388.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libgobject_sys-2d4c95b22575e5e7.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libglib_sys-5e6071f683af9cf7.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/liblazy_static-bd7de5c8fabcfd46.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libbitflags-861218943972ef93.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/liblibc-83d68bd06eb59687.rlib" "/Users/shirshak/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd-edeacefc1391b975.rlib" "/Users/shirshak/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-661c88e34f871df0.rlib" "/Users/shirshak/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libunwind-f7c06680fdd716f3.rlib" "/Users/shirshak/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liblibc-f2e753da53df829c.rlib" "/Users/shirshak/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liballoc-961b28aeeb5bc8e1.rlib" "/Users/shirshak/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcore-b6f6b59b6a29ec3a.rlib" "/Users/shirshak/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-f31526d6d86acb04.rlib" "-lrsvg-2" "-framework" "AppKit" "-framework" "CoreFoundation" "-lgtk-3" "-lgdk-3" "-latk-1.0" "-lgdk-3" "-lcairo" "-lcairo-gobject" "-lpango-1.0" "-lgdk_pixbuf-2.0" "-lgio-2.0" "-lgobject-2.0" "-lglib-2.0" "-lgobject-2.0" "-lSystem" "-lresolv" "-lc" "-lm"
  = note: ld: library not found for -lrsvg-2
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

error: aborting due to previous error

error: Could not compile `chessground`.

To learn more, run the command again with --verbose.
niklasf commented 5 years ago

Ok ... so these are seperate issues. Let's try one at a time ...

shirshak55 commented 5 years ago

Hmm it has some sort of problem


➜  rust-chessground git:(master) rustc --version
rustc 1.34.0-nightly (f66e4697a 2019-02-20)
➜  rust-chessground git:(master) cargo run --example editor
   Compiling chessground v0.9.0 (/Users/shirshak/Desktop/code/rust/rust-chessground)
error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-m64" "-L" "/Users/shirshak/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.10okq1wnnyasttbm.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.11yk9nq9ueodecvq.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.14taxvgsvcbs5e6z.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.1cahb0obhjg3gak9.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.1kgfaoaan5s7wwe2.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.1or0d3296jx08oh7.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.1p2l4bghb1z5xc67.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.1pfrg2kl306bkmw3.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.1v0x3acout0o6mx4.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.1y318xd59w4dedbp.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.209mrsk937qepx7.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.2507yjso9rjty41p.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.269qhmgjz5ub1qo.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.285b6ast54rnwd59.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.28wtggejz48flm8z.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.29q0f7lqnd0lnkxe.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.2fcogp80wnz9ovkb.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.2l0hvhkk7aialwnj.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.2ozpjdixs43n1bzt.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.2scbc5yuu1rhfh2n.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.2w17cnn8ywc5wt10.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.2yioghecnhdicq86.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.2yjn7rwq7whdb803.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.31iluud8ghnn2sgj.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.32h0skhn1ugkkuv3.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.34zhno4s5a8x2crs.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.353p5d1kf9xcqpky.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.38islj6uy2pfg89g.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.39h70j4cfymcjxvp.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.39qt2qntqn5ki888.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.3fa8iqfuu4l85k5f.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.3g07ld3cfg2c1lv.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.3gqzvfz441vyulzh.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.3k6hdwxpvh3rcmf3.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.3nzhj6a9zs65cdjn.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.3qlswazjvi1i43yx.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.3qs57gpqu0mzld0y.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.3rjaxy21ji51yeoq.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.3rs1uouhqgjdx1iu.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.3w0z0zk4t2qyquvb.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.42rl5w15yw33lu3.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.4b7kglw9h8wc035g.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.4gy1irzlsdmlswon.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.4pobfn1c9yprz3mf.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.4pov3c1ouqeyg771.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.4uim5af1wws5vqc1.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.4vn8z5k0ylevoy11.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.4x8fsrjuvkw5fyb0.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.51bky48iuaso61gr.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.52ufcrg6rv7wfz0q.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.565317nuytfvpysz.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.63kxlopa0fopuuy.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.7koyupdxf4knad7.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.h3hi6ffy5zzy3by.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.ntv4edcjhnmp4sa.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.ovqwgf5pd7xrwio.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.qkrqjuglpxtkfcd.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.ur4cp2mqil8zvfa.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.w4f9i3fnmxwq8t.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.ymbc213efsoz0ql.rcgu.o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.zuoy8nbocl6njbf.rcgu.o" "-o" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/examples/editor-e4933471937def04.2u1gay7yvxzy9cq9.rcgu.o" "-Wl,-dead_strip" "-nodefaultlibs" "-L" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps" "-L" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/build/gtk-587662a897759c91/out" "-L" "/Users/shirshak/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libchessground-225f92fb3a677df3.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/librelm-b5e55e5d7c9f1888.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/librelm_state-e80941ab8ad54734.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/liblog-1272939261faf8d6.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libcfg_if-7be52fbc46386aff.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/librelm_core-b85839569abf3c3b.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libtime-bd1170a2984591f4.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libshakmaty-bae704211b652c16.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libbtoi-f3cdcdc5ecd70fc4.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libnum_traits-f9cb97c8cbaf649c.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libarrayvec-3fdbf125b5749fe0.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/librsvg-0ec35f5d9a4f45a9.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/librsvg_sys-ba20ab8a1c9ae4cf.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libgtk-594a995db340f8a0.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libgdk-315bc6c294244a2b.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libpango-96f2210fcb84aa6f.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libcairo-7ee49a31982bd2e8.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libgdk_pixbuf-5025c1afe980e47a.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libgio-bbceb5c8de66cc4a.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libfragile-67016c263e4b5f49.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libgtk_sys-9ef2e231eb1cea16.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libatk_sys-d173722b12673e79.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libgdk_sys-b02237802e1d1c3c.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libcairo_sys-18deb4f3dd38edf5.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libglib-10a2233d0a0f424f.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libpango_sys-f1430f06d8ace80b.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libgdk_pixbuf_sys-a8863797241e302b.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libgio_sys-dde2697a4217a283.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libgobject_sys-352cabdc6cce25a2.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libglib_sys-2d2ec020cbfaf1c9.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/liblazy_static-de89b865c68d1359.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/libbitflags-acb5891581e08bdd.rlib" "/Users/shirshak/Desktop/code/rust/rust-chessground/target/debug/deps/liblibc-677d5ef0fabbf914.rlib" "/Users/shirshak/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd-4e545f91007652fe.rlib" "/Users/shirshak/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-d1875ab1a522e3ac.rlib" "/Users/shirshak/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libbacktrace_sys-c9b36217bc483db1.rlib" "/Users/shirshak/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libunwind-1f5b19950bee3d55.rlib" "/Users/shirshak/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-8aa5760fa5fbb698.rlib" "/Users/shirshak/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liblibc-edde361b90926178.rlib" "/Users/shirshak/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liballoc-ec2f6fc98b524dee.rlib" "/Users/shirshak/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-6594266c6bcbd14e.rlib" "/Users/shirshak/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcore-0e4755d46e40ab4d.rlib" "/Users/shirshak/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-c875a6ce2bf5d767.rlib" "-lrsvg-2" "-framework" "AppKit" "-framework" "CoreFoundation" "-lgtk-3" "-lgdk-3" "-latk-1.0" "-lgdk-3" "-lcairo" "-lcairo-gobject" "-lpango-1.0" "-lgdk_pixbuf-2.0" "-lgio-2.0" "-lgobject-2.0" "-lglib-2.0" "-lgobject-2.0" "-lSystem" "-lresolv" "-lc" "-lm"
  = note: ld: library not found for -lgtk-3
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

error: aborting due to previous error

error: Could not compile `chessground`.

To learn more, run the command again with --verbose.

I have installed librsvg using brew

$ brew install librsvg
niklasf commented 5 years ago

That's progress. All rust problems solved.

Also librsvg seems to be available now, but there's another library missing: = note: ld: library not found for -lgtk-3

shirshak55 commented 5 years ago

hmm yea got it working but its too laggy is there any reason?

niklasf commented 5 years ago

Mhh ... this will be tricky.

Is there a difference when running in release mode, e.g. cargo run --release --example play?

Can you describe exactly which operation feels laggy? Drag & drop? Also [SPACE] for random move in the play example?

shirshak55 commented 5 years ago

resizing and moving chess piece. yea release mode also. initially it opens every small window like 10 percent and when i resize it takes lile 10 second and i cannot move pawn fast too. this may be gui librarh tho

On Fri, Feb 22, 2019, 12:28 AM Niklas Fiekas notifications@github.com wrote:

Mhh ... this will be tricky.

Is there a difference when running in release mode, e.g. cargo run --release --example play?

Can you describe more exactly which operation feels laggy? Drag & drop? Also [SPACE] for random move in the play example?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/niklasf/rust-chessground/issues/4#issuecomment-466117337, or mute the thread https://github.com/notifications/unsubscribe-auth/AHuOYQLS6ZeZdkNpAJ2YzBa_2CxN3DOJks5vPujagaJpZM4bH-Ep .