openh264 icon indicating copy to clipboard operation
openh264 copied to clipboard

Cross compiling from an macOS ARM64 machine to x86_64 fails

Open lemonmojo opened this issue 2 years ago • 0 comments

I just tried updating from 1.8.0 to 2.4.0 and noticed that the makefile is set up in a way that makes it impossible to cross-compile from an ARM64 machine (M2 Ultra in this case) to Intel x86_64.

Make invocation is like this: make OS=darwin ARCH=x86_64

But -arch x86_64 is not passed to CFLAGS and LDFLAGS so the build fails. I assume that the reverse (cross-compiling from an Intel machine to ARM64) will work but haven't tried it.

lemonmojo avatar Dec 19 '23 14:12 lemonmojo