desktop-widget icon indicating copy to clipboard operation
desktop-widget copied to clipboard

failed to get `gtk-extras` as a dependency of package `pop-desktop-widget v0.1.2

Open Dale-CDL opened this issue 3 years ago • 3 comments

I cloned the desktop-widget and tried to build it. It is similar to #68 but with a different cause by reason. I am using Debian 11 with Gnome 3.38.5 using Wayland.

dale@debian11:~/Git/desktop-widget$ make cargo build --release Updating git repository https://github.com/pop-os/gtk-extras error: failed to get gtk-extras as a dependency of package pop-desktop-widget v0.1.2 (/home/dale/Git/desktop-widget)

Caused by: failed to load source for dependency gtk-extras

Caused by: Unable to update https://github.com/pop-os/gtk-extras?branch=gtk-rs-0.14#590a8b61

Caused by: object not found - no match for id (590a8b6166b3c52d9446a661f55b025814a18dd4); class=Odb (9); code=NotFound (-3) make: *** [Makefile:31: target/release/pop-desktop-widget] Error 101 dale@debian11:~/Git/desktop-widget$

Dale-CDL avatar Nov 09 '21 03:11 Dale-CDL

It looks like the branch gtk-rs-0.14 does not exist on the gtk-extra git repo. You can try to edit the file Cargo.toml and change the gtk-extra dependency branch to master.

gtk-extras = { git = "https://github.com/pop-os/gtk-extras", branch = "master" }

efernandesng avatar Nov 11 '21 14:11 efernandesng

Probably related: https://github.com/pop-os/desktop-widget/pull/67/files

SirRFI avatar Nov 12 '21 16:11 SirRFI

Sorry @efernandesng for the late replies. Been busy with balancing work and life. I edited the Cargo.toml and removed the instances of gtk-rs-0.14. I was able to get further along, but needed to install gstreamer-1.0 and libhandy-1-dev. I now have another build issue. Should I create a new issue? Here is the details.

dale@debian11:~/Git/desktop-widget$ make cargo build --release Compiling libhandy-sys v0.8.0 Compiling glib v0.14.2 Compiling gio-sys v0.14.0 Compiling pango-sys v0.14.0 Compiling atk-sys v0.14.0 Compiling gstreamer-sys v0.17.0 Compiling i18n-embed v0.12.1 error[E0599]: no function or associated item named increment_strong_count found for struct Arc<_> in the current scope --> /home/dale/.cargo/registry/src/github.com-1ecc6299db9ec823/glib-0.14.2/src/subclass/shared.rs:29:25 | 29 | std::sync::Arc::increment_strong_count(this); | ^^^^^^^^^^^^^^^^^^^^^^ | | | function or associated item not found in Arc<_> | help: there is an associated function with a similar name: incr_strong_count

Compiling gdk-pixbuf-sys v0.14.0 error: aborting due to previous error

For more information about this error, try rustc --explain E0599. error: could not compile glib.

To learn more, run the command again with --verbose. warning: build failed, waiting for other jobs to finish... error: build failed make: *** [Makefile:31: target/release/pop-desktop-widget] Error 101 dale@debian11:~/Git/desktop-widget$

Dale-CDL avatar Dec 11 '21 21:12 Dale-CDL