mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-25 05:00:14 +00:00
Updated Building for macOS (markdown)
parent
39fce9f9a2
commit
c0fb3cf2a7
@ -4,9 +4,7 @@ It's recommended that you use [homebrew](http://brew.sh/) to install dependencie
|
||||
You'll need to download and install the following to build Citra:
|
||||
|
||||
* [CMake](https://cmake.org/) (`brew install cmake`)
|
||||
* [Python 3](https://www.python.org/) (`brew install python3`)
|
||||
* The version included with the default developer tools may run into an issue downloading Qt.
|
||||
* glslang (`brew install glslang`)
|
||||
* [glslang](https://github.com/KhronosGroup/glslang) (`brew install glslang`)
|
||||
* A recent version of Xcode and the Xcode command line tools
|
||||
|
||||
### Cloning Citra in Git:
|
||||
@ -22,11 +20,9 @@ Create a build folder and generate makefiles for the build:
|
||||
```
|
||||
mkdir build
|
||||
cd build
|
||||
cmake .. -DCMAKE_OSX_ARCHITECTURES="x86_64;x86_64h" -DCMAKE_BUILD_TYPE=Release
|
||||
cmake ..
|
||||
```
|
||||
|
||||
This builds a fat binary that has slices targeting early and late x64 machines.
|
||||
|
||||
### Building Citra
|
||||
|
||||
```
|
||||
@ -40,7 +36,11 @@ A `citra-qt.app` application bundle will now be present under `build/bin/`. Note
|
||||
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, when running the cmake command you'll want to use this command instead:
|
||||
* 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" -DCMAKE_BUILD_TYPE=Release
|
||||
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"
|
||||
```
|
Loading…
Reference in New Issue
Block a user