gamebooster / soundboard

cross-platform desktop application to spice up your audio/video conferences
GNU Affero General Public License v3.0
70 stars 7 forks source link

I can't install because there is a error in ep-miniaudio-sys #40

Closed mdtrooper closed 2 years ago

mdtrooper commented 3 years ago

It is the log:

$ cargo install soundboard
    Updating crates.io index
  Installing soundboard v0.1.1
   Compiling proc-macro2 v1.0.24
   Compiling unicode-xid v0.2.1
   Compiling libc v0.2.86
   Compiling syn v1.0.60
   Compiling pkg-config v0.3.19
   Compiling serde v1.0.123
   Compiling serde_derive v1.0.123
   Compiling version_check v0.9.2
   Compiling cfg-if v1.0.0
   Compiling unicode-segmentation v1.7.1
   Compiling memchr v2.3.4
   Compiling strum v0.18.0
   Compiling version-compare v0.0.10
   Compiling bitflags v1.2.1
   Compiling autocfg v1.0.1
   Compiling log v0.4.14
   Compiling lazy_static v1.4.0
   Compiling slab v0.4.2
   Compiling cc v1.0.67
   Compiling futures-core v0.3.13
   Compiling proc-macro-hack v0.5.19
   Compiling pin-project-lite v0.2.4
   Compiling futures-sink v0.3.13
   Compiling proc-macro-nested v0.1.7
   Compiling once_cell v1.7.0
   Compiling futures-io v0.3.13
   Compiling pin-utils v0.1.0
   Compiling futures-task v0.3.13
   Compiling cfg-if v0.1.10
   Compiling typenum v1.12.0
   Compiling anyhow v1.0.38
   Compiling itoa v0.4.7
   Compiling fnv v1.0.7
   Compiling bytes v0.5.6
   Compiling bytes v1.0.1
   Compiling byteorder v1.4.2
   Compiling either v1.6.1
   Compiling xml-rs v0.8.3
   Compiling tinyvec_macros v0.1.0
   Compiling autocfg v0.1.7
   Compiling matches v0.1.8
   Compiling rand_core v0.4.2
   Compiling httparse v1.3.5
   Compiling ppv-lite86 v0.2.10
   Compiling pin-project-lite v0.1.11
   Compiling getrandom v0.1.16
   Compiling glob v0.3.0
   Compiling percent-encoding v2.1.0
   Compiling smallvec v1.6.1
   Compiling getrandom v0.2.2
   Compiling gio v0.9.1
   Compiling hashbrown v0.9.1
   Compiling ryu v1.0.5
   Compiling same-file v1.0.6
   Compiling bindgen v0.54.0
   Compiling scoped-tls v1.0.0
   Compiling regex-syntax v0.6.22
   Compiling openssl v0.10.32
   Compiling foreign-types-shared v0.1.1
   Compiling peeking_take_while v0.1.2
   Compiling shlex v0.1.1
   Compiling cairo-rs v0.9.1
   Compiling maybe-uninit v2.0.0
   Compiling nix v0.18.0
   Compiling pango v0.9.1
   Compiling pin-project-internal v0.4.27
   Compiling ttf-parser v0.6.2
   Compiling try-lock v0.2.3
   Compiling native-tls v0.2.7
   Compiling rustc-hash v1.1.0
   Compiling downcast-rs v1.2.0
   Compiling lazycell v1.3.0
   Compiling mime v0.3.16
   Compiling byte-tools v0.3.1
   Compiling gdk-pixbuf v0.9.0
   Compiling opaque-debug v0.3.0
   Compiling ab_glyph_rasterizer v0.1.4
   Compiling gdk v0.13.2
   Compiling openssl-probe v0.1.2
   Compiling httpdate v0.3.2
   Compiling cpuid-bool v0.1.2
   Compiling atk v0.9.0
   Compiling tower-service v0.3.1
   Compiling safemem v0.3.3
   Compiling xdg v2.2.0
   Compiling opaque-debug v0.2.3
   Compiling base64 v0.12.3
   Compiling base64 v0.13.0
   Compiling encoding_rs v0.8.28
   Compiling scopeguard v1.1.0
   Compiling serde_json v1.0.62
   Compiling utf-8 v0.7.5
   Compiling fake-simd v0.1.2
   Compiling remove_dir_all v0.5.3
   Compiling fs_extra v1.2.0
   Compiling quick-error v1.2.3
   Compiling adler v0.2.3
   Compiling dtoa v0.4.7
   Compiling unicode-width v0.1.8
   Compiling gimli v0.23.0
   Compiling hotkey-soundboard v0.0.3
   Compiling ipnet v2.3.0
   Compiling humantime v2.1.0
   Compiling termcolor v1.1.2
   Compiling ansi_term v0.11.0
   Compiling urlencoding v1.1.1
   Compiling strsim v0.8.0
   Compiling object v0.23.0
   Compiling vec_map v0.8.2
   Compiling rustc-demangle v0.1.18
   Compiling stable_deref_trait v1.2.0
   Compiling strum v0.20.0
   Compiling webbrowser v0.5.5
   Compiling paste v1.0.4
   Compiling hound v3.4.0
   Compiling claxon v0.4.3
   Compiling wayland-sys v0.28.4
   Compiling x11-dl v2.18.5
   Compiling gtk v0.9.2
   Compiling libloading v0.6.7
   Compiling instant v0.1.9
   Compiling proc-macro-error-attr v1.0.4
   Compiling proc-macro-error v1.0.4
   Compiling unicase v2.6.0
   Compiling nom v5.1.2
   Compiling generic-array v0.14.4
   Compiling nom v6.1.2
   Compiling heck v0.3.2
   Compiling tracing-core v0.1.17
   Compiling indexmap v1.6.1
   Compiling num-traits v0.2.14
   Compiling num-integer v0.1.44
   Compiling crossbeam-utils v0.8.2
   Compiling miniz_oxide v0.4.3
   Compiling futures-channel v0.3.13
   Compiling thread_local v1.1.3
   Compiling openssl-sys v0.9.60
   Compiling libloading v0.5.2
   Compiling minimp3-sys v0.3.2
   Compiling input_buffer v0.3.1
   Compiling ogg v0.5.1
   Compiling ogg v0.8.0
   Compiling ogg v0.7.1
   Compiling itertools v0.9.0
   Compiling http v0.2.3
   Compiling tinyvec v1.1.1
   Compiling unicode-bidi v0.3.4
   Compiling rand_core v0.3.1
   Compiling rand_jitter v0.1.4
   Compiling rand_pcg v0.1.2
   Compiling rand_chacha v0.1.1
   Compiling rand v0.6.5
   Compiling form_urlencoded v1.0.1
   Compiling clang-sys v0.29.3
   Compiling walkdir v2.3.1
   Compiling foreign-types v0.3.2
   Compiling block-padding v0.1.5
   Compiling owned_ttf_parser v0.6.0
   Compiling lock_api v0.4.2
   Compiling soundboard v0.1.1
   Compiling textwrap v0.11.0
   Compiling addr2line v0.14.1
   Compiling owning_ref v0.4.1
   Compiling dlib v0.4.2
   Compiling ogg_metadata v0.4.1
   Compiling rand_isaac v0.1.1
   Compiling rand_xorshift v0.1.1
   Compiling rand_hc v0.1.0
   Compiling unicode-normalization v0.1.17
   Compiling lewton v0.10.2
   Compiling http-body v0.3.1
   Compiling headers-core v0.2.0
   Compiling rust-embed-utils v5.1.0
   Compiling rusttype v0.9.2
   Compiling quote v1.0.9
   Compiling aho-corasick v0.7.15
   Compiling twoway v0.1.8
   Compiling buf_redux v0.8.4
   Compiling dirs-sys-next v0.1.2
   Compiling net2 v0.2.37
   Compiling iovec v0.1.4
   Compiling signal-hook-registry v1.3.0
   Compiling num_cpus v1.13.0
   Compiling time v0.1.43
   Compiling socket2 v0.3.19
   Compiling rand_os v0.1.3
   Compiling atty v0.2.14
   Compiling parking_lot_core v0.8.3
   Compiling memmap2 v0.1.0
   Compiling slice-deque v0.3.0
   Compiling raw-window-handle v0.3.3
   Compiling dirs-sys v0.3.5
   Compiling nix v0.20.0
   Compiling tracing v0.1.25
   Compiling want v0.3.0
   Compiling audiopus_sys v0.1.8
   Compiling generic-array v0.12.3
   Compiling idna v0.2.2
   Compiling andrew v0.3.1
   Compiling wayland-scanner v0.28.4
   Compiling mime_guess v2.0.3
   Compiling regex v1.4.3
   Compiling cexpr v0.4.0
   Compiling dirs-next v2.0.0
   Compiling mio v0.6.23
   Compiling rand_core v0.5.1
   Compiling rand_core v0.6.2
   Compiling clap v2.33.3
   Compiling xcursor v0.3.3
   Compiling parking_lot v0.11.1
   Compiling dirs v3.0.1
   Compiling backtrace v0.3.56
   Compiling crossbeam-channel v0.5.0
   Compiling block-buffer v0.9.0
   Compiling digest v0.9.0
   Compiling wayland-commons v0.28.4
   Compiling calloop v0.6.5
   Compiling block-buffer v0.7.3
   Compiling digest v0.8.1
   Compiling url v2.2.1
   Compiling wayland-client v0.28.4
   Compiling wayland-protocols v0.28.4
   Compiling env_logger v0.8.3
   Compiling shellexpand v2.1.0
   Compiling mio-uds v0.6.8
   Compiling mio-extras v2.0.6
   Compiling rand_chacha v0.2.2
   Compiling rand_chacha v0.3.0
   Compiling thiserror-impl v1.0.24
   Compiling strum_macros v0.18.0
   Compiling futures-macro v0.3.13
   Compiling tokio-macros v0.2.6
   Compiling pin-project-internal v1.0.5
   Compiling strum_macros v0.20.1
   Compiling chrono v0.4.19
   Compiling sha-1 v0.9.4
   Compiling sha-1 v0.8.2
   Compiling rust-embed-impl v5.9.0
   Compiling rand v0.7.3
   Compiling rand v0.8.3
   Compiling thiserror v1.0.24
   Compiling futures-util v0.3.13
   Compiling tokio v0.2.25
   Compiling pin-project v1.0.5
   Compiling pin-project v0.4.27
   Compiling headers v0.3.3
   Compiling rust-embed v5.9.0
   Compiling tungstenite v0.11.1
   Compiling tempfile v3.2.0
   Compiling ep-miniaudio-sys v2.4.0
   Compiling mp3-duration v0.1.10
   Compiling minimp3 v0.5.1
   Compiling tracing-futures v0.2.5
   Compiling futures-executor v0.3.13
   Compiling tokio-util v0.3.1
   Compiling tokio-tls v0.3.1
   Compiling toml v0.5.8
   Compiling serde_urlencoded v0.6.1
   Compiling serde_urlencoded v0.7.0
   Compiling ulid v0.4.1
   Compiling tokio-tungstenite v0.11.0
   Compiling wayland-cursor v0.28.4
   Compiling multipart v0.17.1
   Compiling futures v0.3.13
   Compiling h2 v0.2.7
   Compiling system-deps v1.3.2
   Compiling proc-macro-crate v0.1.5
   Compiling glib-sys v0.10.1
   Compiling gobject-sys v0.10.0
   Compiling gio-sys v0.10.1
   Compiling pango-sys v0.10.0
   Compiling gdk-pixbuf-sys v0.10.0
   Compiling cairo-sys-rs v0.10.0
   Compiling atk-sys v0.10.0
   Compiling gdk-sys v0.10.0
   Compiling gtk-sys v0.10.0
   Compiling smithay-client-toolkit v0.12.2
   Compiling glib-macros v0.10.1
   Compiling audiopus v0.2.0
   Compiling hyper v0.13.10
The following warnings were emitted during compilation:

warning: In file included from ./miniaudio-wrapper.c:17:0:
warning: ././miniaudio/miniaudio.h:6227:18: warning: 'g_maStandardSampleRatePriorities' defined but not used [-Wunused-variable]
warning:  static ma_uint32 g_maStandardSampleRatePriorities[] = {
warning:                   ^
warning: In file included from ./miniaudio-wrapper.c:17:0:
warning: ././miniaudio/miniaudio.h: In function 'ma_decoder__on_read_vfs':
warning: ././miniaudio/miniaudio.h:44773:12: warning: 'bytesRead' may be used uninitialized in this function [-Wmaybe-uninitialized]
warning:      size_t bytesRead;
warning:             ^

error: failed to run custom build command for `ep-miniaudio-sys v2.4.0`

Caused by:
  process didn't exit successfully: `/tmp/cargo-install6WOUdM/release/build/ep-miniaudio-sys-e492033e5e952cbf/build-script-build` (exit code: 101)
  --- stdout
  TARGET = Some("x86_64-unknown-linux-gnu")
  OPT_LEVEL = Some("3")
  HOST = Some("x86_64-unknown-linux-gnu")
  CC_x86_64-unknown-linux-gnu = None
  CC_x86_64_unknown_linux_gnu = None
  HOST_CC = None
  CC = None
  CFLAGS_x86_64-unknown-linux-gnu = None
  CFLAGS_x86_64_unknown_linux_gnu = None
  HOST_CFLAGS = None
  CFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("false")
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  CC_x86_64-unknown-linux-gnu = None
  CC_x86_64_unknown_linux_gnu = None
  HOST_CC = None
  CC = None
  CFLAGS_x86_64-unknown-linux-gnu = None
  CFLAGS_x86_64_unknown_linux_gnu = None
  HOST_CFLAGS = None
  CFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  CC_x86_64-unknown-linux-gnu = None
  CC_x86_64_unknown_linux_gnu = None
  HOST_CC = None
  CC = None
  CFLAGS_x86_64-unknown-linux-gnu = None
  CFLAGS_x86_64_unknown_linux_gnu = None
  HOST_CFLAGS = None
  CFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "./miniaudio" "-Wall" "-Wextra" "-Wno-unused-function" "-msse2" "-DMINIAUDIO_IMPLEMENTATION=" "-DMA_LOG_LEVEL=1" "-o" "/tmp/cargo-install6WOUdM/release/build/ep-miniaudio-sys-773ad511e002cd91/out/./miniaudio-wrapper.o" "-c" "./miniaudio-wrapper.c"
  cargo:warning=In file included from ./miniaudio-wrapper.c:17:0:
  cargo:warning=././miniaudio/miniaudio.h:6227:18: warning: 'g_maStandardSampleRatePriorities' defined but not used [-Wunused-variable]
  cargo:warning= static ma_uint32 g_maStandardSampleRatePriorities[] = {
  cargo:warning=                  ^
  cargo:warning=In file included from ./miniaudio-wrapper.c:17:0:
  cargo:warning=././miniaudio/miniaudio.h: In function 'ma_decoder__on_read_vfs':
  cargo:warning=././miniaudio/miniaudio.h:44773:12: warning: 'bytesRead' may be used uninitialized in this function [-Wmaybe-uninitialized]
  cargo:warning=     size_t bytesRead;
  cargo:warning=            ^
  exit code: 0
  AR_x86_64-unknown-linux-gnu = None
  AR_x86_64_unknown_linux_gnu = None
  HOST_AR = None
  AR = None
  running: "ar" "cq" "/tmp/cargo-install6WOUdM/release/build/ep-miniaudio-sys-773ad511e002cd91/out/liblibminiaudio.a" "/tmp/cargo-install6WOUdM/release/build/ep-miniaudio-sys-773ad511e002cd91/out/./miniaudio-wrapper.o"
  exit code: 0
  running: "ar" "s" "/tmp/cargo-install6WOUdM/release/build/ep-miniaudio-sys-773ad511e002cd91/out/liblibminiaudio.a"
  exit code: 0
  cargo:rustc-link-lib=static=libminiaudio
  cargo:rustc-link-search=native=/tmp/cargo-install6WOUdM/release/build/ep-miniaudio-sys-773ad511e002cd91/out
  cargo:rustc-cfg=feature="ma-unix"
  cargo:rustc-cfg=feature="ma-linux"
  cargo:rustc-cfg=feature="ma-posix"
  cargo:rustc-cfg=feature="ma-support-alsa"
  cargo:rustc-cfg=feature="ma-support-pulseaudio"
  cargo:rustc-cfg=feature="ma-support-jack"
  cargo:rustc-cfg=feature="ma-support-null"
  cargo:rustc-cfg=feature="ma-enable-jack"
  cargo:rustc-cfg=feature="ma-enable-alsa"
  cargo:rustc-cfg=feature="ma-enable-pulseaudio"
  cargo:rustc-cfg=feature="ma-enable-null"

  --- stderr
  thread 'main' panicked at 'Unable to find libclang: "couldn\'t find any valid shared libraries matching: [\'libclang.so\', \'libclang-*.so\', \'libclang.so.*\', \'libclang-*.so.*\'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [])"', /home/miguel/.cargo/registry/src/github.com-1ecc6299db9ec823/bindgen-0.54.0/src/lib.rs:1959:31
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `soundboard v0.1.1`, intermediate artifacts can be found at `/tmp/cargo-install6WOUdM`

Caused by:
  build failed

And I have:

$ lsb_release --all
No LSB modules are available.
Distributor ID: Linuxmint
Description:    Linux Mint 20
Release:    20
Codename:   ulyana

Well, rust and cargo:

$ whereis cargo
cargo: /home/miguel/.cargo/bin/cargo

$ cargo --version
cargo 1.49.0 (d00d64df9 2020-12-05)

$ rustup show
Default host: x86_64-unknown-linux-gnu
rustup home:  /home/miguel/.rustup

stable-x86_64-unknown-linux-gnu (default)
rustc 1.49.0 (e1884a8e3 2020-12-29)
mdtrooper commented 3 years ago

I fixed (the log said that there was not a clang lib):

$ sudo apt install libclang-dev

But maybe it is good idea to add this requirements in the README.md file.

docweirdo commented 3 years ago

Thanks for the heads up, in our Github CI it worked without any additional installs. Glad you were able to resolve the issue!