Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Fails (missing libopus) #25

Open
rookiesH opened this issue Apr 25, 2022 · 1 comment
Open

Build Fails (missing libopus) #25

rookiesH opened this issue Apr 25, 2022 · 1 comment

Comments

@rookiesH
Copy link

rookiesH commented Apr 25, 2022

rustc 1.59.0 (9d1b2106e 2022-02-23)
Running cargo update

    Updating crates.io index
    Updating git repository `https://github.com/rust-av/av-vorbis`
    Updating git repository `https://github.com/rust-av/opus-rs`
    Updating git repository `https://github.com/rust-av/vpx-rs`
    Updating git repository `https://github.com/rust-av/matroska`

Running cargo build fails

  Compiling opus-sys v0.1.0 (https://github.com/rust-av/opus-rs#a59e7a10)
  Compiling vpx-sys v0.1.1 (https://github.com/rust-av/vpx-rs#84694096)
  error: failed to run custom build command for `opus-sys v0.1.0 (https://github.com/rust-av/opus-rs#a59e7a10)`

  process didn't exit successfully: `F:\_\avp\target\debug\build\opus-sys-acbc3b6f20e1d051\build-script-build` (exit code: 101)
  --- stdout
  cargo:rerun-if-env-changed=OPUS_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=OPUS_STATIC
  cargo:rerun-if-env-changed=OPUS_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-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_pc_windows_msvc
  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-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_pc_windows_msvc
  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-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR

  --- stderr
  thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error(PkgConfig(`"pkg-config" "--libs" "--cflags" "opus" "opus >= 1.3"` did not exit successfully: exit code: 1
  error: could not find system library 'opus' required by the 'opus-sys' crate

  --- stderr
  Package opus was not found in the pkg-config search path.
  Perhaps you should add the directory containing `opus.pc'
  to the PKG_CONFIG_PATH environment variable
  Package 'opus', required by 'virtual:world', not found
  Package 'opus', required by 'virtual:world', not found
  ), State { next_error: None })', C:\Users\User\.cargo\git\checkouts\opus-rs-377ca7da91dbf68d\a59e7a1\opus-sys\build.rs:19:34
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: build failed

@kpcyrd
Copy link
Member

kpcyrd commented Apr 26, 2022

You're missing libopus, since you seem to be building this on windows I have no idea how to fix this though. 😕

@kpcyrd kpcyrd changed the title Build Fails Build Fails (missing libopus) Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants