zmwangx / rust-ffmpeg

Safe FFmpeg wrapper.
Do What The F*ck You Want To Public License
1.2k stars 195 forks source link

ERROR : failed to run custom build command for `ffmpeg-sys-next v6.0.1` #160

Open 0xhappyboy opened 10 months ago

0xhappyboy commented 10 months ago

environment : win10 x64 intel tool chain : cargo built-in stable-x86_64-pc-windows-msvc describe : when I set all the environment variables as described on the wiki and compiled the project, the above exception occurred.

Coddeus commented 9 months ago

Struggled on this too. It seems I needed to add

[env] FFMPEG_DIR = { value = "ffmpegfolder", relative = true }

in .cargo/config.toml. Setting the environment variable to "./ffmpegfolder" (and a few variations, including absolute path I believe) from the command line didn't seem to work.

I also needed to add the av.dll and sw.dll in the root of the project (even in "static" mode, which I'm not able to make work). Hope this works for you

stonexwx commented 4 months ago

I also encountered this problem, the original issue was #138 and then after installation it became error: failed to run custom build command for 'ffmpeg-sys-next v6.1.0', I don't know how to solve this problem now