rust-ffmpeg icon indicating copy to clipboard operation
rust-ffmpeg copied to clipboard

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

Open 0xhappyboy opened this issue 1 year ago • 2 comments

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.

0xhappyboy avatar Sep 05 '23 09:09 0xhappyboy

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

Coddeus avatar Sep 16 '23 12:09 Coddeus

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

stonexwx avatar Mar 04 '24 16:03 stonexwx