gst-plugin-gtk4: cargo hack fails
When running cargo hack --feature-powerset --no-dev-deps check
in the gst-plugin-gtk4 directory, the cargo check --no-default-features --features dmabuf
check fails with the following error message:
info: running `cargo check --no-default-features --features dmabuf` on gst-plugin-gtk4 (6/2689)
Skipping git submodule `https://github.com/gtk-rs/gir` due to update strategy in .gitmodules
Skipping git submodule `https://github.com/gtk-rs/gir-files` due to update strategy in .gitmodules
Skipping git submodule `https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git` due to update strategy in .gitmodules
Skipping git submodule `https://github.com/gtk-rs/gir` due to update strategy in .gitmodules
Skipping git submodule `https://github.com/gtk-rs/gir-files` due to update strategy in .gitmodules
Skipping git submodule `https://github.com/gtk-rs/gir` due to update strategy in .gitmodules
Skipping git submodule `https://github.com/gtk-rs/gir-files` due to update strategy in .gitmodules
Compiling gdk4-sys v0.9.3 (https://github.com/gtk-rs/gtk4-rs?branch=0.9#e6ed2e3a)
Compiling gsk4-sys v0.9.3 (https://github.com/gtk-rs/gtk4-rs?branch=0.9#e6ed2e3a)
Compiling gtk4-sys v0.9.3 (https://github.com/gtk-rs/gtk4-rs?branch=0.9#e6ed2e3a)
Compiling gst-plugin-gtk4 v0.13.3 (/home/mw/Sources/external/gst-plugins-rs/video/gtk4)
Checking gdk4 v0.9.3 (https://github.com/gtk-rs/gtk4-rs?branch=0.9#e6ed2e3a)
Checking gsk4 v0.9.3 (https://github.com/gtk-rs/gtk4-rs?branch=0.9#e6ed2e3a)
Checking gtk4 v0.9.3 (https://github.com/gtk-rs/gtk4-rs?branch=0.9#e6ed2e3a)
error[E0433]: failed to resolve: use of undeclared crate or module `gdk`
--> video/gtk4/src/sink/imp.rs:768:37
|
768 | let Some(display) = gdk::Display::default() else {
| ^^^ use of undeclared crate or module `gdk`
|
help: there is a crate or module with a similar name
|
768 | let Some(display) = gtk::Display::default() else {
| ~~~
help: consider importing one of these items
|
12 + use std::ffi::os_str::Display;
|
12 + use std::fmt::Display;
|
12 + use std::path::Display;
|
12 + use core::fmt::Display;
|
help: if you import `Display`, refer to it directly
|
768 - let Some(display) = gdk::Display::default() else {
768 + let Some(display) = Display::default() else {
|
warning: use of deprecated method `gtk4::prelude::WidgetExt::show`: Since 4.10
--> video/gtk4/src/sink/imp.rs:860:20
|
860 | window.show();
| ^^^^
|
= note: `#[warn(deprecated)]` on by default
For more information about this error, try `rustc --explain E0433`.
warning: `gst-plugin-gtk4` (lib) generated 1 warning
error: could not compile `gst-plugin-gtk4` (lib) due to 1 previous error; 1 warning emitted
Setup
- Operating System: Ubuntu 24.04 and EndeavourOS
- gst-plugins-rs Version: 0.13.3
- GStreamer Version: 1.24.2 and 1.24.9
Steps to reproduce the bug
git checkout 0.13.3
cd video/gtk4/
cargo hack --feature-powerset --no-dev-deps check
How reproducible is the bug?
Always
Solutions you have tried
Downgrading to version 0.13.1 will fix the problem.
Edited by marcbull