CCExtractor / rusty_ffmpeg

FFI bindings for FFmpeg inner libraries.

Home Page:https://crates.io/crates/rusty_ffmpeg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

failed to run custom build command for `rusty_ffmpeg v0.13.1+ffmpeg.6.0`

HavocZhang opened this issue · comments

commented
cargo run                             
   Compiling rusty_ffmpeg v0.13.1+ffmpeg.6.0
error: failed to run custom build command for `rusty_ffmpeg v0.13.1+ffmpeg.6.0`

Caused by:
  process didn't exit successfully: `C:\workspace\rust\rsmpeg-vcpkg-demo\target\debug\build\rusty_ffmpeg-116f84f5a5ff1b98\build-script-build` (exit code: 101)
  --- stdout
  cargo:rerun-if-env-changed=DOCS_RS
  cargo:rerun-if-env-changed=OUT_DIR
  cargo:rerun-if-env-changed=FFMPEG_INCLUDE_DIR
  cargo:rerun-if-env-changed=FFMPEG_DLL_PATH
  cargo:rerun-if-env-changed=FFMPEG_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=FFMPEG_LIBS_DIR
  cargo:rerun-if-env-changed=FFMPEG_BINDING_PATH
  cargo:rustc-link-search=native=C:\workspace\rust\rsmpeg-vcpkg-demo\target\vcpkg\installed\x64-windows-static-md\lib
  cargo:rustc-link-lib=avdevice
  cargo:rustc-link-lib=avfilter
  cargo:rustc-link-lib=avformat
  cargo:rustc-link-lib=avcodec
  cargo:rustc-link-lib=swresample
  cargo:rustc-link-lib=swscale
  cargo:rustc-link-lib=avutil
  cargo:rustc-link-lib=libx264
  cargo:rustc-link-lib=vpx

  --- stderr
  thread 'main' panicked at 'Unable to find libclang: "couldn't find any valid shared libraries matching: ['clang.dll', 'libclang.dll'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [])"', C:\Users\HavocZ\.cargo\registry\src\rsproxy.cn-8f6827c7555bfaf8\bindgen-0.64.0\./lib.rs:2393:31
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
commented

问题已经解决,安装llvm之后运行正常