mpv-player / mpv-build

🔨 Helper scripts to compile mpv on Linux
http://mpv.io
414 stars 108 forks source link

compiled libmpv.2.dylib can't use #217

Closed Pulck closed 1 year ago

Pulck commented 1 year ago

compile use ./rebuild, -Dlibmpv=true >> mpv_options delete "-Wl,-Bsymbolic" in mpv-config script only have arm64, not include x86-64 can't run in my macOS app

Pulck commented 1 year ago
  1. Install homebrew with two different architectures(x86_64, arm64)
  2. Use homebrew to install meson of two different architectures and the required dependencies
  3. Compile libmpv with meson of two different architectures
  4. Use install_name_tool to modify the lookup path for dependencies
  5. Use the lipo tool to synthesize libmpv.dylib of two different architectures