angelcam / rust-ac-ffmpeg

Simple and safe Rust interface for FFmpeg libraries.
MIT License
197 stars 33 forks source link

Windows build issues/documentation #65

Closed samuelkuz closed 1 year ago

samuelkuz commented 1 year ago

I'm currently trying to build this crate in Windows and I'm running into some issues. I have downloaded ffmpeg-5.0.1-full_build-shared and I've added the two environment variables: FFMPEG_INCLUDE_DIR to \ffmpeg-5.0.1-full_build-shared\include FFMPEG_LIB_DIR to \ffmpeg-5.0.1-full_build-shared\lib

However, when I am running cargo build, the build.rs is failing due to:

Caused by:
  process didn't exit successfully: `C:\Users\Sam\RustProjects\rust-ac-ffmpeg\target\debug\build\ac-ffmpeg-e62ee741c31e84c0\build-script-build` (exit code: 101)
  --- stderr
  thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { kind: NotFound, message: "program not found" }', build.rs:173:10

The build is failing when fetching the output:

    let output = cmd
        .arg(format!("-I{}", src_dir.to_string_lossy()))
        .arg(src_file)
        .arg("-o")
        .arg(&bin)
        .output()
        .unwrap();

Is there any additional setup steps I have to follow to get this to build properly on my windows machine?

samuelkuz commented 1 year ago

Closing this issue as it was solved here: https://github.com/angelcam/rust-ac-ffmpeg/issues/64