gtk-rs / examples

DEPRECATED, use https://github.com/gtk-rs/gtk-rs repository instead!
MIT License
284 stars 75 forks source link

error: Could not compile `gdk`. #124

Open Qwertie- opened 7 years ago

Qwertie- commented 7 years ago

Getting this error while running cargo build on ubuntu 16.10. I have installed libgtk-3-dev.

       Fresh bitflags v0.5.0
       Fresh bitflags v0.4.0
       Fresh libc v0.2.21
       Fresh c_vec v1.2.0
       Fresh pkg-config v0.3.9
       Fresh cairo-sys-rs v0.3.3
       Fresh glib-sys v0.3.3
       Fresh gobject-sys v0.3.3
       Fresh gio-sys v0.3.3
       Fresh pango-sys v0.3.3
       Fresh glib v0.1.2
       Fresh gdk-pixbuf-sys v0.3.3
       Fresh gio v0.1.2
       Fresh cairo-rs v0.1.2
       Fresh gdk-sys v0.3.3
       Fresh pango v0.1.2
       Fresh gdk-pixbuf v0.1.2
       Fresh atk-sys v0.3.3
   Compiling gdk v0.5.2
     Running `rustc /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/gdk-0.5.2/src/lib.rs --crate-name gdk --crate-type lib -g -C metadata=f1dec5a62824c72c -C extra-filename=-f1dec5a62824c72c --out-dir /home/user/Documents/examples/target/debug/deps --emit=dep-info,link -L dependency=/home/user/Documents/examples/target/debug/deps -L dependency=/home/user/Documents/examples/target/debug/deps --extern gio=/home/user/Documents/examples/target/debug/deps/libgio-3d16d57eb9386ee3.rlib --extern bitflags=/home/user/Documents/examples/target/debug/deps/libbitflags-1efefdc447eb53f2.rlib --extern glib=/home/user/Documents/examples/target/debug/deps/libglib-c6b7d2e1d6c140d8.rlib --extern libc=/home/user/Documents/examples/target/debug/deps/liblibc-1d4b292c3e055073.rlib --extern gdk_sys=/home/user/Documents/examples/target/debug/deps/libgdk_sys-0f3c74780ae170e7.rlib --extern glib_sys=/home/user/Documents/examples/target/debug/deps/libglib_sys-520dab820e7b21a9.rlib --extern gdk_pixbuf=/home/user/Documents/examples/target/debug/deps/libgdk_pixbuf-c832c3addf1cae1a.rlib --extern cairo=/home/user/Documents/examples/target/debug/deps/libcairo-e8fd2bb1f2342189.rlib --extern pango=/home/user/Documents/examples/target/debug/deps/libpango-fac5d3d75caf77c7.rlib --cap-lints allow -L native=/usr/lib/x86_64-linux-gnu -L native=/usr/lib/x86_64-linux-gnu -L native=/usr/lib/x86_64-linux-gnu -L native=/usr/lib/x86_64-linux-gnu -L native=/usr/lib/x86_64-linux-gnu -L native=/usr/lib/x86_64-linux-gnu -L native=/usr/lib/x86_64-linux-gnu`
       Fresh gtk-sys v0.3.3
/home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/gdk-0.5.2/src/lib.rs:151:9: 151:43 error: a type named `WindowHints` has already been imported in this module [E0252]
/home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/gdk-0.5.2/src/lib.rs:151 pub use ffi::GdkWindowHints as WindowHints;
                                                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/gdk-0.5.2/src/lib.rs:24:9: 24:17 note: previous import of `WindowHints` here
/home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/gdk-0.5.2/src/lib.rs:24 pub use auto::*;
                                                                                           ^~~~~~~~
/home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/gdk-0.5.2/src/lib.rs:151:9: 151:43 help: run `rustc --explain E0252` to see a detailed explanation
/home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/gdk-0.5.2/src/lib.rs:134:9: 134:41 error: a type named `DragAction` has already been imported in this module [E0252]
/home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/gdk-0.5.2/src/lib.rs:134 pub use ffi::GdkDragAction as DragAction;
                                                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/gdk-0.5.2/src/lib.rs:24:9: 24:17 note: previous import of `DragAction` here
/home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/gdk-0.5.2/src/lib.rs:24 pub use auto::*;
                                                                                           ^~~~~~~~
/home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/gdk-0.5.2/src/lib.rs:134:9: 134:41 help: run `rustc --explain E0252` to see a detailed explanation
/home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/gdk-0.5.2/src/lib.rs:136:9: 136:39 error: a type named `EventMask` has already been imported in this module [E0252]
/home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/gdk-0.5.2/src/lib.rs:136 pub use ffi::GdkEventMask as EventMask;
                                                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/gdk-0.5.2/src/lib.rs:24:9: 24:17 note: previous import of `EventMask` here
/home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/gdk-0.5.2/src/lib.rs:24 pub use auto::*;
                                                                                           ^~~~~~~~
/home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/gdk-0.5.2/src/lib.rs:136:9: 136:39 help: run `rustc --explain E0252` to see a detailed explanation
error: aborting due to 3 previous errors
error: Could not compile `gdk`.

Caused by:
  Process didn't exit successfully: `rustc /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/gdk-0.5.2/src/lib.rs --crate-name gdk --crate-type lib -g -C metadata=f1dec5a62824c72c -C extra-filename=-f1dec5a62824c72c --out-dir /home/user/Documents/examples/target/debug/deps --emit=dep-info,link -L dependency=/home/user/Documents/examples/target/debug/deps -L dependency=/home/user/Documents/examples/target/debug/deps --extern gio=/home/user/Documents/examples/target/debug/deps/libgio-3d16d57eb9386ee3.rlib --extern bitflags=/home/user/Documents/examples/target/debug/deps/libbitflags-1efefdc447eb53f2.rlib --extern glib=/home/user/Documents/examples/target/debug/deps/libglib-c6b7d2e1d6c140d8.rlib --extern libc=/home/user/Documents/examples/target/debug/deps/liblibc-1d4b292c3e055073.rlib --extern gdk_sys=/home/user/Documents/examples/target/debug/deps/libgdk_sys-0f3c74780ae170e7.rlib --extern glib_sys=/home/user/Documents/examples/target/debug/deps/libglib_sys-520dab820e7b21a9.rlib --extern gdk_pixbuf=/home/user/Documents/examples/target/debug/deps/libgdk_pixbuf-c832c3addf1cae1a.rlib --extern cairo=/home/user/Documents/examples/target/debug/deps/libcairo-e8fd2bb1f2342189.rlib --extern pango=/home/user/Documents/examples/target/debug/deps/libpango-fac5d3d75caf77c7.rlib --cap-lints allow -L native=/usr/lib/x86_64-linux-gnu -L native=/usr/lib/x86_64-linux-gnu -L native=/usr/lib/x86_64-linux-gnu -L native=/usr/lib/x86_64-linux-gnu -L native=/usr/lib/x86_64-linux-gnu -L native=/usr/lib/x86_64-linux-gnu -L native=/usr/lib/x86_64-linux-gnu` (exit code: 101)
GuillaumeGomez commented 7 years ago

@EPashkin: Didn't we already fix this?

EPashkin commented 7 years ago

Yes, but we still not published result of https://github.com/gtk-rs/gdk/pull/144 Examples still builds normally with both stable1.16.0 and nightly but older stable may nags as it.

EPashkin commented 7 years ago

PS. Forgot mention that latest nightly build only after doing same as https://github.com/gtk-rs/examples/pull/123