Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@pythoninthegrass
Created April 4, 2023 07:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pythoninthegrass/5008f5335aab691359adddad4a0c051f to your computer and use it in GitHub Desktop.
Save pythoninthegrass/5008f5335aab691359adddad4a0c051f to your computer and use it in GitHub Desktop.
Compile known good Citra build on M1 Mac
#!/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
@pythoninthegrass
Copy link
Author

Install homebrew via:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment