angelcam / rust-ac-ffmpeg

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

use pkg config on macos too #67

Closed bavardage closed 1 year ago

bavardage commented 1 year ago

previously:

error: failed to run custom build command for `ac-ffmpeg-features v0.1.0`

Caused by:
  process didn't exit successfully: `[...snip...]/target/debug/build/ac-ffmpeg-features-61bfed659e0637da/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-env-changed=FFMPEG_INCLUDE_DIR_X86_64_APPLE_DARWIN
  cargo:rerun-if-env-changed=FFMPEG_INCLUDE_DIR

  --- stderr
  thread 'main' panicked at 'Unable to find FFmpeg include dir. You can specify it explicitly by setting the FFMPEG_INCLUDE_DIR environment variable.', [...snip...]/ac-ffmpeg-build/src/lib.rs:16:10
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

with this change it correctly finds ffmpeg

bavardage commented 1 year ago

cc @operutka

operutka commented 1 year ago

Hi @bavardage and thank you for your PR. No objections here. I'm merging it.