Building Squeekboard
Hi,
I'm attempting to build squeekboard v1.19.0
but I get this weird errors:
Compiling rs v0.1.0 (/tmp/guix-build-squeekboard-1.19.0.drv-0/source)
error[E0599]: no method named `release` found for struct `glib::MainContext` in the current scope
--> src/main.rs:158:13
|
158 | ctx.release();
| ^^^^^^^ method not found in `glib::MainContext`
error[E0599]: no function or associated item named `get_default` found for struct `SettingsSchemaSource` in the current scope
--> src/popover.rs:114:41
|
114 | let ss = gio::SettingsSchemaSource::get_default();
| ^^^^^^^^^^^ function or associated item not found in `SettingsSchemaSource`
error[E0599]: no method named `get_value` found for struct `gio::Settings` in the current scope
--> src/popover.rs:140:31
|
140 | let inputs = settings.get_value("sources").unwrap();
| ^^^^^^^^^ method not found in `gio::Settings`
error[E0599]: no method named `get_value` found for struct `gio::Settings` in the current scope
--> src/popover.rs:252:35
|
252 | let inputs = settings.get_value("sources").unwrap();
| ^^^^^^^^^ method not found in `gio::Settings`
error[E0599]: no function or associated item named `new_from_resource` found for struct `gtk::Builder` in the current scope
--> src/popover.rs:292:41
|
292 | let builder = gtk::Builder::new_from_resource("/sm/puri/squeekboard/popover.ui");
| ^^^^^^^^^^^^^^^^^
| |
| function or associated item not found in `gtk::Builder`
| help: there is an associated function with a similar name: `from_resource`
error[E0599]: no function or associated item named `new_from_model` found for struct `Popover` in the current scope
--> src/popover.rs:306:30
|
306 | let menu = gtk::Popover::new_from_model(Some(&window), &model);
| ^^^^^^^^^^^^^^
| |
| function or associated item not found in `Popover`
| help: there is an associated function with a similar name: `from_model`
error[E0599]: no function or associated item named `get_default` found for struct `gtk::Settings` in the current scope
--> src/style.rs:47:36
|
47 | let theme = gtk::Settings::get_default();
| ^^^^^^^^^^^ function or associated item not found in `gtk::Settings`
error[E0599]: no method named `get_property` found for reference `>k::Settings` in the current scope
--> src/style.rs:104:44
|
104 | let prop = |s: >k::Settings, name| s.get_property(name);
| ^^^^^^^^^^^^ method not found in `>k::Settings`
For more information about this error, try `rustc --explain E0599`.
error: could not compile `rs` due to 8 previous errors
warning: build failed, waiting for other jobs to finish...
error: build failed
error: in phase 'check': uncaught exception:
%exception #<&invoke-error program: "cargo" arguments: ("test" "--release") exit-status: 101 term-signal: #f stop-signal: #f>
Also there is another error as the Cargo complains data/style-Adwaita:dark.css
contains semicolon. I just rename it in the meantime.
Any idea how to fix this?