Created
April 4, 2023 07:25
-
-
Save pythoninthegrass/5008f5335aab691359adddad4a0c051f to your computer and use it in GitHub Desktop.
Compile known good Citra build on M1 Mac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# shellcheck disable=SC2046,SC2155,SC2164 | |
brew install doxygen pkgconfig sdl2 qt5 ffmpeg cmake openssl | |
brew link --force openssl | |
pkg-config --modversion openssl | |
git clone --recursive https://github.com/citra-emu/citra-nightly.git | |
cd citra-nightly/ | |
git checkout d380980 | |
git submodule update --init --recursive | |
mkdir -p build && cd build | |
export Qt5_DIR=$(brew --prefix)/opt/qt5 | |
cmake .. -DCMAKE_OSX_ARCHITECTURES="arm64" -DCMAKE_BUILD_TYPE=Release -DENABLE_FFMPEG_AUDIO_DECODER=ON | |
make -j$(nproc) | |
ln -s $(pwd)/citra-qt.app /Applications/Citra.app | |
open /Applications/Citra.app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Install homebrew via:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"