Error trying to build gst-plugin-gtk4 with dmabuf
Here is my flatpak module file:
{
"name": "gst-plugin-gtk4",
"buildsystem": "simple",
"sources": [
{
"type": "archive",
"url": "https://crates.io/api/v1/crates/gst-plugin-gtk4/0.12.5/download",
"dest-filename": "gst-plugin-gtk4-0.12.5.tar.gz",
"sha256": "56e483cb1452f056ae94ccd5f63bdec697e04c87b30d89eb30c3f934042e1022"
},
"gst-plugin-gtk4-sources.json",
],
"build-commands": [
"cargo cinstall --offline --release --features=wayland,x11glx,x11egl,dmabuf --library-type=cdylib --prefix=/app"
],
"build-options": {
"env": {
"CARGO_HOME": "/run/build/gst-plugin-gtk4/cargo"
}
}
}
The only thing I changed is add dmabuf
to the features in cargo cinstall.
The build fails with the following:
[...more...]
Compiling toml v0.8.12
Compiling futures-macro v0.3.30
Compiling thiserror-impl v1.0.59
Compiling gst-plugin-version-helper v0.8.2
Compiling system-deps v6.2.2
Compiling glib-macros v0.19.5
Compiling gtk4-macros v0.8.2
Compiling futures-util v0.3.30
Compiling glib-sys v0.19.5
Compiling gobject-sys v0.19.5
Compiling gio-sys v0.19.5
Compiling gstreamer-sys v0.22.2
Compiling gstreamer-base-sys v0.22.0
The following warnings were emitted during compilation:
warning: gstreamer-sys@0.22.2:
error: failed to run custom build command for `gstreamer-sys v0.22.2`
Caused by:
process didn't exit successfully: `/run/build/gst-plugin-gtk4/target/release/build/gstreamer-sys-c1931972fd0423eb/build-script-build` (exit status: 1)
--- stdout
cargo:rerun-if-env-changed=GSTREAMER_1.0_NO_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
cargo:warning=
pkg-config exited with status code 1
> PKG_CONFIG_PATH=/app/lib/pkgconfig:/app/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags gstreamer-1.0 gstreamer-1.0 >= 1.23
The system library `gstreamer-1.0` required by crate `gstreamer-sys` was not found.
The file `gstreamer-1.0.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
PKG_CONFIG_PATH contains the following:
- /app/lib/pkgconfig
- /app/share/pkgconfig
- /usr/lib/pkgconfig
- /usr/share/pkgconfig
HINT: you may need to install a package such as gstreamer-1.0, gstreamer-1.0-dev or gstreamer-1.0-devel.
warning: build failed, waiting for other jobs to finish...
Error: CliError { error: Some(1 job failed), exit_code: 101 }
Error: module gst-plugin-gtk4: Child process exited with code 1