cxfksword / MPVKit

mpv library for iOS, macOS, tvOS applications
GNU General Public License v3.0
71 stars 19 forks source link

M2 设备上无法编译 #4

Closed tingv closed 11 months ago

tingv commented 11 months ago
iShot_2023-08-03_11 44 32

M2 设备上无法编译,一开始就提示我安装 brew,但我确实已经安装过了。在 Intel 芯片设备上能编译

Building for debugging...
[3/3] Linking build
Build complete! (3.16s)
/bin/zsh -c which brew environment: [:]
brew not found
The operation couldn’t be completed. (fail error 1.)
You need to run the script first
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
cxfksword commented 11 months ago

你可以自己改下代码,把opt执行目录加到PATH中

guyman624 commented 8 months ago

你可以自己改下代码,把opt执行目录加到PATH中

are you able to elaborate? I already see /opt/homebrew/bin in /Plugins/BuildFFMpeg/main.swift and I added it to ~/.zshrc

cxfksword commented 8 months ago

你可以自己改下代码,把opt执行目录加到PATH中

are you able to elaborate? I already see /opt/homebrew/bin in /Plugins/BuildFFMpeg/main.swift and I added it to ~/.zshrc

I have added the default path, you can try using the new code to build.

guyman624 commented 8 months ago

I have added the default path, you can try using the new code to build.

this fixed that issue, now I have another issue but I will open a new issue.