danyspin97 / wpaperd

Modern wallpaper daemon for Wayland
GNU General Public License v3.0
332 stars 26 forks source link

[Bug] Failed to build the package #83

Closed Heus-Sueh closed 4 months ago

Heus-Sueh commented 4 months ago
> cargo build --release
  Updating crates.io index
  Downloaded built v0.7.3
  Downloaded cfg_aliases v0.2.1
  Downloaded bitstream-io v2.4.2
  Downloaded wayland-sys v0.31.2
  Downloaded wayland-protocols-wlr v0.3.1
  Downloaded wayland-scanner v0.31.2
  Downloaded wayland-client v0.31.3
  Downloaded wayland-backend v0.3.4
  Downloaded wayland-protocols v0.32.1
  Downloaded smithay-client-toolkit v0.19.1
  Downloaded nix v0.29.0
  Downloaded clap_builder v4.5.7
  Downloaded cc v1.0.101
  Downloaded serde_json v1.0.118
  Downloaded clap_complete v4.5.6
  Downloaded clap v4.5.7
  Downloaded calloop v0.13.0
  Downloaded clap_derive v4.5.5
  Downloaded wayland-egl v0.32.1
  Downloaded wayland-cursor v0.31.3
  Downloaded ravif v0.11.7
  Downloaded format-bytes-macros v0.4.0
  Downloaded clap_mangen v0.2.21
  Downloaded calloop-wayland-source v0.3.0
  Downloaded format-bytes v0.3.0
  Downloaded 25 crates (1.5 MB) in 0.94s
   Compiling proc-macro2 v1.0.86
   Compiling unicode-ident v1.0.12
   Compiling cfg-if v1.0.0
   Compiling autocfg v1.3.0
   Compiling libc v0.2.155
   Compiling log v0.4.22
   Compiling rustix v0.38.34
   Compiling bitflags v2.6.0
   Compiling linux-raw-sys v0.4.14
   Compiling smallvec v1.13.2
   Compiling pkg-config v0.3.30
   Compiling cc v1.0.101
   Compiling crossbeam-utils v0.8.20
   Compiling libloading v0.8.4
   Compiling utf8parse v0.2.2
   Compiling dlib v0.5.2
   Compiling colorchoice v1.0.1
   Compiling anstyle-parse v0.2.4
   Compiling serde v1.0.203
   Compiling simd-adler32 v0.3.7
   Compiling heck v0.5.0
   Compiling num-traits v0.2.19
   Compiling anstyle-query v1.1.0
   Compiling is_terminal_polyfill v1.70.0
   Compiling anstyle v1.0.7
   Compiling thiserror v1.0.61
   Compiling lock_api v0.4.12
   Compiling downcast-rs v1.2.1
   Compiling anstream v0.6.14
   Compiling scoped-tls v1.0.1
   Compiling strsim v0.11.1
   Compiling wayland-sys v0.31.2
   Compiling clap_lex v0.7.1
   Compiling scopeguard v1.2.0
   Compiling quote v1.0.36
   Compiling rayon-core v1.12.1
   Compiling crossbeam-epoch v0.9.18
error: failed to run custom build command for `wayland-sys v0.31.2`

Caused by:
  process didn't exit successfully: `/tmp/wpaperd/target/release/build/wayland-sys-f469822aea45568b/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-env-changed=WAYLAND_CLIENT_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=WAYLAND_CLIENT_STATIC
  cargo:rerun-if-env-changed=WAYLAND_CLIENT_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  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

  --- stderr
  thread 'main' panicked at /var/home/heus/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wayland-sys-0.31.2/build.rs:10:47:
  called `Result::unwrap()` on an `Err` value:
  pkg-config exited with status code 1
  > PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags wayland-client

  The system library `wayland-client` required by crate `wayland-sys` was not found.
  The file `wayland-client.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
  The PKG_CONFIG_PATH environment variable is not set.

  HINT: if you have installed the library, try setting PKG_CONFIG_PATH to the directory containing `wayland-client.pc`.

  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
danyspin97 commented 4 months ago

Hi @Heus-Sueh and thank you for the report!

It looks like the system is missing wayland libraries. Which distribution are you using?

Heus-Sueh commented 4 months ago

Hi @Heus-Sueh and thank you for the report!

It looks like the system is missing wayland libraries. Which distribution are you using?

sorry, I tried to build the package using distrobox but it still gave a dependency error, I had to delete the directory and clone it again to build it with clean dependencies

Heus-Sueh commented 4 months ago

Would you be able to distribute the project binary compressed in tar.gz with each release and create a script that places the binary in ~/.local/bin?

example: $curl https://mise.run | sh

This would make the tool easier to use for lay users.