mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-21 13:40:05 +00:00
Page:
Building for macOS
Pages
AES Keys
Archive of 3DS Documentation
Archive of 3DS Tests
Building for Android
Building for Linux
Building for OpenBSD
Building for Windows
Building for macOS
CPU
Citra Android user data and storage
Citra Legacy Builds
Citra Web Service
Common Issues
Compatibility List
Contributing
Default Keyboard Bindings
Developer Information
Dumping Config Savegame from a 3DS Console
Dumping Extra Data from a 3DS Console
Dumping Game Cartridges
Dumping Installed Titles
Dumping Save Data from a 3DS Console
Dumping System Archives and the Shared Fonts from a 3DS Console
Dumping Updates and DLCs
FAQ
Home
Installing FFmpeg for the Video Dumper
Issue Labels
Lifetime of an LLE library applet
Log Filters
Set Up APK Signing in Bitrise
Stack Trace Guide for Citra
Typical Git Workflow
User Directory
Using a Controller or Android Phone for Motion or Touch Input
25
Building for macOS
Steveice10 edited this page 2024-02-26 10:28:48 -08:00
Dependencies:
It's recommended that you use homebrew to install dependencies. You'll need to download and install the following to build Citra:
- CMake (
brew install cmake
) - A recent version of Xcode and the Xcode command line tools
Cloning Citra in Git:
git clone --recursive https://github.com/citra-emu/citra
cd citra
Using CMake:
Create a build folder and generate makefiles for the build:
mkdir build
cd build
cmake ..
Building Citra
make -j4
A citra-qt.app
application bundle will now be present under build/bin/
. Note that this is non-portable and only works on your machine. You can create distributable bundles as well by running make bundle
and checking the output in build/bundle/
.
About building on Apple Silicon machines
To build Citra targeting macOS on ARM, the process is largely the same. A few things to note are:
- Make sure the Homebrew version you have installed is the ARM version
- If you are cross-compiling from an x86_64 machine for ARM, when running the cmake command you'll want to use this command instead:
cmake .. -DCMAKE_OSX_ARCHITECTURES="arm64"
- Similarly, if you are cross-compiling from an ARM machine for x86_64, you'll want to use this command:
cmake .. -DCMAKE_OSX_ARCHITECTURES="x86_64"