Skip to content

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

Open
Ni1esh-Yadav wants to merge 1 commit intozmwangx:masterfrom
Ni1esh-Yadav:fix-failed-build
Open

fixes #42: FFmpeg Build Error for ffmpeg-sys-next in Rust#101
Ni1esh-Yadav wants to merge 1 commit intozmwangx:masterfrom
Ni1esh-Yadav:fix-failed-build

Conversation

@Ni1esh-Yadav
Copy link
Copy Markdown

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
Copy Markdown
Collaborator

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

Copy link
Copy Markdown
Collaborator

@dmtrKovalenko dmtrKovalenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am unapproving PR becuase this change becomes a readme PR without any fix

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