Skip to content
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

[ffmpeg] add if guard, fix library ordering on linux, minor clean up #14360

Merged
merged 3 commits into from
Nov 4, 2020

Conversation

mcmtroffaes
Copy link
Contributor

  • What does your PR fix? Currently, repeated calls to find_package(FFMPEG) across a single cmake project results in the FFmpeg libraries being included more than once (see for instance the cmake log here: https://travis-ci.org/github/mcmtroffaes/ffmpeg-msvc-build/jobs/740501464#L361). This patch adds a guard to fix that problem. It also fixes the link ordering of the x64-linux static builds, because gcc expects dependencies to be specified last (see for instance build failure here: https://travis-ci.org/github/mcmtroffaes/ffmpeg-msvc-build/jobs/740832347#L430 - unresolved symbols even though the library is specified on the command line, but the symbol is not resolved due to wrong library ordering). Finally, there's some minor clean ups too (cmake includes, version field). Tested on x64-linux and x64-windows-static-md triplets.

  • Which triplets are supported/not supported? Have you updated the CI baseline? No changes.

  • Does your PR follow the maintainer guide? To the best of my knowledge, yes.

@mcmtroffaes mcmtroffaes force-pushed the feature/ffmpeg-if-guard branch from 18705ba to e6e225e Compare November 2, 2020 23:37
@mcmtroffaes
Copy link
Contributor Author

Just rebased onto latest master to correct port version bump.

@NancyLi1013 NancyLi1013 added the category:port-bug The issue is with a library, which is something the port should already support label Nov 3, 2020
@NancyLi1013 NancyLi1013 added the info:reviewed Pull Request changes follow basic guidelines label Nov 3, 2020
@NancyLi1013
Copy link
Contributor

Thanks again for your efforts. @mcmtroffaes

@mcmtroffaes
Copy link
Contributor Author

You're welcome. Thank you for the quick review!

@BillyONeal BillyONeal merged commit c98fa19 into microsoft:master Nov 4, 2020
@BillyONeal
Copy link
Member

Encode all the things! Thanks!

@mcmtroffaes mcmtroffaes deleted the feature/ffmpeg-if-guard branch November 4, 2020 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support info:reviewed Pull Request changes follow basic guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants