zmwangx / rust-ffmpeg-sys

FFmpeg bindings for Rust.
125 stars 86 forks source link

Trouble building on target `i686-pc-windows-msvc` #42

Open shashwat1002 opened 2 years ago

shashwat1002 commented 2 years ago

On trying to setup with windows, the following error is observed

EXEC : error : failed to run custom build command forffmpeg-sys-next v5.0.1`

The actual error is

thread 'main' panicked at called Option::unwrap() on a None value, C:\..\ffmpeg-sys-next-5.0.1\build.rs:210:46

The error originated when the compilation was done with the build feature

I observed this error as part of a continuous integration build fail on windows.

url: https://github.com/CCExtractor/ccextractor/runs/7147475795?check_suite_focus=true

abdoei commented 1 year ago

The build job log -attached to the link- is no longer available can you fix this probably all the logs are expired

prateekmedia commented 1 year ago

Tried to fix this issue by switching to vcpkg's ffmpeg but another issue is coming which is related to channel_layout.h header, i.e. https://github.com/zmwangx/rust-ffmpeg-sys/issues/51

amrmostafa800 commented 7 months ago

image Its Build Normal When I Test (i build from windows) using LLVM 32 bit libclang - vcpkg ffmpeg

sabinonweb commented 7 months ago

So I tried to fix this on mac. I ran the command "brew install ffmpeg" and the code now gets built. I don't understand, is it running because ffmpeg is installed onto my machine or is that the way?