larksuite / rsmpeg

A Rust crate that exposes FFmpeg's power as much as possible.
https://docs.rs/rsmpeg/latest/rsmpeg/
MIT License
678 stars 41 forks source link

compile "rsmpeg-vcpkg-demo" error on windows #123

Closed osenberg-x closed 1 year ago

osenberg-x commented 1 year ago

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

image

what should i do?

ldm0 commented 1 year ago

Please post the full error report, the screenshot is missing important information.

ldm0 commented 1 year ago

@ldm0 this is full output.

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\osenb.cargo\registry\src\index.crates.io-6f17d22bba15001f\bindgen-0.64.0./lib.rs:2393:31 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace`

The build script cannot find the libclang.dll to generate rust bindings for FFmpeg header files. You can install Clang here and check again.

osenberg-x commented 1 year ago

@ldm0 thinks,i have solved this problem, and success to run example