Skip to content

fixes #42: FFmpeg Build Error for ffmpeg-sys-next in Rust #101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Ni1esh-Yadav
Copy link

Summary

This PR provides a fix for the FFmpeg build error encountered when compiling Rust projects that depend on ffmpeg-sys-next. The issue arises due to missing FFmpeg development files, incorrect environment configurations, or missing .pc files required by pkg-config.

Changes

  • Added step-by-step instructions for installing FFmpeg via vcpkg (recommended for Windows).
  • Included environment variable setup to ensure proper library detection.
  • Removed unnecessary details for a more concise and actionable guide.

Why This Fix?

Using vcpkg simplifies FFmpeg installation, resolves linking issues, and ensures compatibility with Rust's build system. This approach reduces manual configuration errors and makes it easier for developers to integrate FFmpeg into their Rust projects.

Testing

  • Verified that cargo build completes without errors.

@dmtrKovalenko
Copy link
Collaborator

look okay to me but why are you installing it suing vcpkg instead of building from source using build feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants