hyprswitch
hyprswitch copied to clipboard
Issues building from source
I have issues building from source using cargo install --features gui hyprswitch
. Without the GUI it works just fine. I get the following errors:
warning: [email protected]:
error: failed to run custom build command for `gtk4-layer-shell-sys v0.2.0`
Caused by:
process didn't exit successfully: `/tmp/cargo-installdlPuxm/release/build/gtk4-layer-shell-sys-af4c569ab4ff79f5/build-script-build` (exit status: 1)
--- stdout
cargo:rerun-if-env-changed=GTK4_LAYER_SHELL_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=/usr/lib64/pkgconfig/ PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags gtk4-layer-shell-0 gtk4-layer-shell-0 >= 1
The system library `gtk4-layer-shell-0` required by crate `gtk4-layer-shell-sys` was not found.
The file `gtk4-layer-shell-0.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
PKG_CONFIG_PATH contains the following:
- /usr/lib64/pkgconfig/
HINT: you may need to install a package such as gtk4-layer-shell-0, gtk4-layer-shell-0-dev or gtk4-layer-shell-0-devel.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `hyprswitch v1.2.4`, intermediate artifacts can be found at `/tmp/cargo-installdlPuxm`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
I googled for a while now and installed all sorts of gtk packages but without success. Can someone tell me more about the dependencies? I can find nothing about it in the Readme. I'm on Fedora and installed gtk-layer-shell-devel
and added the following to my .zshrc: export PKG_CONFIG_PATH=/usr/lib64/pkgconfig/
, because I was hinted to that by previous errors. Am I missing anything?