pop-os / desktop-widget

Pop Desktop Settings Widget
GNU Lesser General Public License v3.0
43 stars 34 forks source link

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

Open Dale-CDL opened 3 years ago

Dale-CDL commented 3 years ago

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$

efernandesng commented 3 years ago

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" }

SirRFI commented 3 years ago

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

Dale-CDL commented 2 years ago

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$