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

macOS: fix FFMPEG 7.1 host compiler lacks C11 support issue on macOS #1014

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

jhoyt4
Copy link
Contributor

@jhoyt4 jhoyt4 commented Jan 4, 2025

FFMPEG 7.1 introduces a new issue where "Host C11" testing fails due
due to configure not being able to find system support libraries.
A similar/related issue was fixed previously where --extra-cflags
and --extra-ldflags needed to be set to point configure to the
system includes and libraries.

To resolve this, the host-cflags and host-ldflags options must be
set to the same values as --extra-cflags and --extra-ldflags. The
--host-cppflags and --extra-cxxflags were added for completeness.

An additional update included searching the compiler for either
Xcode or CommandLineTools as the user may have selected one or
the other with xcode-select -s. In either case, the correct path
to the respective SDK's is stored in OSX_SDK_ROOT, so use that path
vs. the previous hard code.

Thank you for contributing to MythTV!

Please review the checklist below to ensure that your contribution
to MythTV is ready for review by our developers.

It is helpful to regularly rebase your pull request to ensure changes
apply cleanly to the current MythTV development branch.

Checklist

@jhoyt4 jhoyt4 marked this pull request as draft January 4, 2025 15:46
@jhoyt4 jhoyt4 marked this pull request as ready for review January 4, 2025 16:04
  FFMPEG 7.1 introduces a new issue where "Host C11" testing fails due
  due to configure not being able to find system support libraries.
  A similar/related issue was fixed previously where --extra-cflags
  and --extra-ldflags needed to be set to point configure to the
  system includes and libraries.

  To resolve this, the host-cflags and host-ldflags options must be
  set to the same values as --extra-cflags and --extra-ldflags. The
  --host-cppflags and --extra-cxxflags were added for completeness.

  An additional update included searching the compiler for either
  Xcode or CommandLineTools as the user may have selected one or
  the other with xcode-select -s. In either case, the correct path
  to the respective SDK's is stored in OSX_SDK_ROOT, so use that path
  vs. the previous hard code.
@linuxdude42 linuxdude42 merged commit 0d25f55 into MythTV:master Jan 16, 2025
8 of 10 checks passed
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