Skip to content

MacOS (aarch64): fix compilation error#19

Open
7phs wants to merge 1 commit intoallyourcodebase:mainfrom
7phs:macos_aarch64_fix_compilation_error
Open

MacOS (aarch64): fix compilation error#19
7phs wants to merge 1 commit intoallyourcodebase:mainfrom
7phs:macos_aarch64_fix_compilation_error

Conversation

@7phs
Copy link

@7phs 7phs commented Feb 2, 2025

This PR fixes compilation errors when building ffmpeg (Zig) on MacOS 15.2 (M1, aarch64).

Fixes:

  1. Error 1 OS_CODE macro redefined – resolved by updating zlib to the latest version.
  2. Error 2 sys/prctl.h not found and _DARWIN_C_SOURCE macro redefined – fixed by conditionally disabling prctl for MacOS.

There are still some linker issues. I think it would be best to address them in a separate PR or issue.

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.

1 participant