mpv icon indicating copy to clipboard operation
mpv copied to clipboard

Find a way to make binaries that were build with brew work on older CPUs.

Open ChrisK2 opened this issue 13 years ago • 5 comments

Brew builds some dependencies (last time I checked libass and lua) in a way that makes them incompatible with older CPUs if they were build on newer ones. Namely, if mpv was build on a SandyBridge or newer CPU, it won't work on any Mac with a pre-Sandy CPU.

If we want to distribute binaries for OS X, we need to figure this out, as @pigoz and me both have newer CPUs.

ChrisK2 avatar Aug 06 '13 01:08 ChrisK2

You should maybe check homebrew bottling mechanism or create a build script that builds all the dependencies without touching the CFLAGS/LDFLAGS. This is not a mpv bug at all, homebrew just changes CFLAGS/LDFLAGS of the software it builds.

pigoz avatar Aug 06 '13 07:08 pigoz

Is there a bew bug report? Please link it.

ghost avatar Aug 06 '13 17:08 ghost

It's not a bug, it's a design decision of homebrew. Basically they think they know they can decide better than the original developers of some software which compiler optimizations to to turn on.

pigoz avatar Aug 06 '13 17:08 pigoz

Okay, some digging through their issues and pull requests revealed a --build-bottle option, which uses more generic CFLAGS. Building fontconfig (and possibly lua) with that option makes mpv run fine on older CPUs.

More info: https://github.com/mxcl/homebrew/pull/9350 , https://github.com/mxcl/homebrew/wiki/Bottles

ChrisK2 avatar Aug 06 '13 17:08 ChrisK2

Just a question, for the dependencies (mostly ffmpeg), are you going to to be using the versions on homebrew or the head version?

LabMem765 avatar Aug 07 '13 02:08 LabMem765