kennylevinsen / wldash

Wayland launcher/dashboard
https://sr.ht/~kennylevinsen/wldash
GNU General Public License v3.0
186 stars 16 forks source link

Cannot compile on openSuse tumbleweed #11

Closed moljac024 closed 5 years ago

moljac024 commented 5 years ago
❯ cargo build --release
    Updating crates.io index
    Updating git repository `https://github.com/kennylevinsen/libivy.git`
  Downloaded nix v0.15.0
  Downloaded chrono v0.4.7
  Downloaded lazy_static v1.4.0
  Downloaded wayland-protocols v0.23.5
  Downloaded memmap v0.7.0
  Downloaded byteorder v1.3.2
  Downloaded fuzzy-matcher v0.2.1
  Downloaded rusttype v0.7.7
  Downloaded rust-ini v0.13.0
  Downloaded os_pipe v0.8.1
  Downloaded shlex v0.1.1
  Downloaded wayland-client v0.23.5
  Downloaded rcalc_lib v0.9.3
  Downloaded libc v0.2.62
  Downloaded num-integer v0.1.41
  Downloaded smithay-client-toolkit v0.6.4
  Downloaded bitflags v1.1.0
  Downloaded num-traits v0.2.8
  Downloaded dbus v0.6.5
  Downloaded ordered-float v1.0.2
  Downloaded downcast-rs v1.0.4
  Downloaded nix v0.13.1
  Downloaded nix v0.14.1
  Downloaded libpulse-binding v2.11.1
  Downloaded approx v0.3.2
  Downloaded arrayvec v0.4.11
  Downloaded stb_truetype v0.2.6
  Downloaded wayland-sys v0.23.5
  Downloaded wayland-scanner v0.23.5
  Downloaded time v0.1.42
  Downloaded cfg-if v0.1.9
  Downloaded void v1.0.2
  Downloaded num-rational v0.2.2
  Downloaded andrew v0.2.1
  Downloaded proc-macro2 v0.4.30
  Downloaded autocfg v0.1.6
  Downloaded libpulse-sys v1.9.1
  Downloaded num-complex v0.2.3
  Downloaded dlib v0.4.1
  Downloaded quote v0.6.13
  Downloaded num-bigint v0.2.2
  Downloaded libdbus-sys v0.2.0
  Downloaded pest_derive v2.1.0
  Downloaded pest v2.1.1
  Downloaded nodrop v0.1.13
  Downloaded xml-rs v0.8.0
  Downloaded wayland-commons v0.23.5
  Downloaded libloading v0.5.2
  Downloaded walkdir v2.2.9
  Downloaded xdg v2.2.0
  Downloaded pkg-config v0.3.15
  Downloaded unicode-xid v0.1.0
  Downloaded ucd-trie v0.1.2
  Downloaded pest_generator v2.1.0
  Downloaded dtoa v0.4.4
  Downloaded same-file v1.0.5
  Downloaded line_drawing v0.7.0
  Downloaded cc v1.0.41
  Downloaded pest_meta v2.1.1
  Downloaded syn v0.15.44
  Downloaded maplit v1.0.2
   Compiling cc v1.0.41
   Compiling proc-macro2 v0.4.30
   Compiling unicode-xid v0.1.0
   Compiling libc v0.2.62
   Compiling bitflags v1.1.0
   Compiling autocfg v0.1.6
   Compiling nix v0.14.1
   Compiling xml-rs v0.8.0
   Compiling byteorder v1.3.2
   Compiling cfg-if v0.1.9
   Compiling arrayvec v0.4.11
   Compiling ucd-trie v0.1.2
   Compiling lazy_static v1.4.0
   Compiling syn v0.15.44
   Compiling void v1.0.2
   Compiling pkg-config v0.3.15
   Compiling nodrop v0.1.13
   Compiling num-bigint v0.2.2
   Compiling maplit v1.0.2
   Compiling nix v0.13.1
   Compiling downcast-rs v1.0.4
   Compiling same-file v1.0.5
   Compiling nix v0.15.0
   Compiling xdg v2.2.0
   Compiling dtoa v0.4.4
   Compiling shlex v0.1.1
   Compiling rust-ini v0.13.0
   Compiling fuzzy-matcher v0.2.1
   Compiling num-traits v0.2.8
   Compiling num-integer v0.1.41
   Compiling num-rational v0.2.2
   Compiling num-complex v0.2.3
   Compiling walkdir v2.2.9
   Compiling pest v2.1.1
   Compiling libdbus-sys v0.2.0
   Compiling libpulse-sys v1.9.1
   Compiling stb_truetype v0.2.6
   Compiling pest_meta v2.1.1
error: failed to run custom build command for `libdbus-sys v0.2.0`

Caused by:
  process didn't exit successfully: `/mnt/data/Projects/oss/wldash/target/release/build/libdbus-sys-63618c97dcb0d76b/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Failure { command: "\"pkg-config\" \"--libs\" \"--cflags\" \"dbus-1\" \"dbus-1 >= 1.6\"", output: Output { status: ExitStatus(ExitStatus(256)), stdout: "", stderr: "Package dbus-1 was not found in the pkg-config search path.\nPerhaps you should add the directory containing `dbus-1.pc\'\nto the PKG_CONFIG_PATH environment variable\nPackage \'dbus-1\', required by \'virtual:world\', not found\nPackage \'dbus-1\', required by \'virtual:world\', not found\n" } }', src/libcore/result.rs:999:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

warning: build failed, waiting for other jobs to finish...
error: build failed

❯ rustc --version
rustc 1.37.0 (eae3437df 2019-08-13)

Using rust 1.37.0, from asdf. Am I missing some packages?

moljac024 commented 5 years ago

Fixed by running sudo zypper install dbus-1-devel.

kennylevinsen commented 5 years ago

I made note of the dependency in the README.

Please close issues in the future when they are no longer applicable or fixed, rename the issue as the topic changes, or create new issues as applicable.

Thanks!