angelcam / rust-ac-ffmpeg

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

build errors in windows #77

Open ZohebMOPO opened 9 months ago

ZohebMOPO commented 9 months ago

The program runs fine and builds fine in Mac. When I run it on my windows machine after setting up the necessary ffmpeg environment variables. It shows build command error. I can't seem to figure out, what's causing the error. I am using the ffmpeg-shared-6.0.1 image

operutka commented 9 months ago

The build script requires cc to be available in your PATH env. variable (either gcc or msvc depending on your build environment). It uses it to sniff the FFmpeg libs for available features. Though I'm not sure if that's even possible with MSVC. I'm not a Windows dev.

Anyway, the whole build script has been redesigned to use the cc crate and make it more platform independent. It just hasn't been released yet. You can try using the latest version from the master branch of this repo.