Mac
記錄台版嘗試跑 Macbook M4 的過程
XIV ON MAC
Git Clone 子模組
直接 Clone 這個專案會遇到錯誤 XIV-on-Mac/XIV on Mac/XIVLauncher.NativeAOT/XIVLauncher.NativeAOT.dylib : No such file or directory
這是因為這個專案使用了 Git 子模組來管理依賴項目。如果你直接克隆這個專案而沒有初始化子模組,會導致缺少必要的檔案。 因此,建議使用以下指令來克隆這個專案,並同時初始化子模組:
如果你已經下載了這個專案,但沒有使用 --recurse-submodules
參數,你可以使用以下指令來更新子模組:
安裝 Wine
直接使用 XCode 會遇到錯誤 XIV-on-Mac/XIV on Mac/wine lstat(XIV-on-Mac/XIV on Mac/wine): No such file or directory (2)
因此需要安裝 Wine 來執行 Windows 應用程式。 Github winecx
按照說明安裝又會遇到錯誤
因此需要先安裝 Bison
並將新版 bison 加入環境變數(建議加到 ~/.zshrc 或 ~/.bash_profile):
再次執行安裝會遇到錯誤
安裝 llvm
先手動建立資料夾 llvm-project/llvm/build/include/lldb
否則會遇到錯誤 FileNotFoundError: [Errno 2] No such file or directory: 'llvm-project/llvm/build/include/lldb/lldb-defines.h'
然後會遇到錯誤 ./strip-llvm.sh: line 129: cd: share: No such file or directory