mpv-player/mpv-build

compiled libmpv.2.dylib can't use

Pulck opened this issue · 1 comments

Pulck commented

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. 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