oakes / SolidOak

An IDE for Rust
https://sekao.net/solidoak/
The Unlicense
893 stars 60 forks source link

Can't build SolidOak on Gtk 3.4 due to usage of GtkStack #22

Closed vi closed 9 years ago

vi commented 9 years ago
   Compiling solidoak v0.1.3 (file:///home/vi/home/rust/SolidOak)
src/utils.rs:123:26: 123:40 error: use of undeclared type name `widgets::Stack`
src/utils.rs:123     pub build_terms: &'a widgets::Stack
                                          ^~~~~~~~~~~~~~
src/main.rs:105:23: 105:42 error: failed to resolve. Could not find `Stack` in `gtk::widgets`
src/main.rs:105     let build_terms = widgets::Stack::new().unwrap();
                                      ^~~~~~~~~~~~~~~~~~~
src/main.rs:105:23: 105:42 error: unresolved name `widgets::Stack::new`
src/main.rs:105     let build_terms = widgets::Stack::new().unwrap();
                                      ^~~~~~~~~~~~~~~~~~~
error: aborting due to 3 previous errors
Could not compile `solidoak`.

I think just one missing widget should not prevent SolidOak from being used with Gtk 3.4 (and therefore on Debian Wheezy).

Note: to get to there, some manual patching of dependencies was used.

vi commented 9 years ago

Even after commenting out build_terms and successfully building SolidOak, I can't start it:

$ ./target/debug/solidoak 
Created data dir at /home/vi/home/rust/.soak
Created config file at /home/vi/home/rust/.soakrc

(process:3706): GLib-GObject-CRITICAL **: /build/buildd-glib2.0_2.33.12+really2.32.4-5-i386-eISom6/glib2.0-2.33.12+really2.32.4/./gobject/gtype.c:2722: You forgot to call g_type_init()

(process:3706): GLib-GObject-CRITICAL **: /build/buildd-glib2.0_2.33.12+really2.32.4-5-i386-eISom6/glib2.0-2.33.12+really2.32.4/./gobject/gtype.c:2722: You forgot to call g_type_init()

(process:3706): GLib-GObject-CRITICAL **: g_type_interface_add_prerequisite: assertion `G_TYPE_IS_INTERFACE (interface_type)' failed

(process:3706): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0' failed

(process:3706): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

(process:3706): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0' failed

^C
oakes commented 9 years ago

I can't do anything about this since it isn't meant to be built with an old version of GTK+.