ffmpeg icon indicating copy to clipboard operation
ffmpeg copied to clipboard

MacOS (aarch64): fix compilation error

Open 7phs opened this issue 1 year ago • 0 comments

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.

7phs avatar Feb 02 '25 14:02 7phs