Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • S squeekboard
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 129
    • Issues 129
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 10
    • Merge requests 10
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • World
  • Phosh
  • squeekboard
  • Issues
  • #349
Closed
Open
Issue created Aug 14, 2022 by Petr Hodina@phodina

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 `&gtk::Settings` in the current scope
   --> src/style.rs:104:44
    |
104 |     let prop = |s: &gtk::Settings, name| s.get_property(name);
    |                                            ^^^^^^^^^^^^ method not found in `&gtk::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?

Edited Aug 14, 2022 by Petr Hodina
Assignee
Assign to
Time tracking