Updated Building for macOS (markdown)

Margen67 2020-02-24 20:53:10 -08:00
parent bae18efc78
commit fb9e095b43
1 changed files with 29 additions and 26 deletions

@ -1,48 +1,51 @@
**Note: Mac OS is no longer supported due to Apple deprecating OpenGL and their current version not supporting the OpenGL extensions we require.** # **MacOS is no longer supported due to Apple deprecating OpenGL and their current version not supporting the OpenGL extensions we require.**
### Dependencies ### Dependencies
It's recommended that you use [Homebrew](http://brew.sh/) to install dependencies. It's recommended that you use [Homebrew](https://brew.sh) to install dependencies.
You'll need to download and install the following to build yuzu: You'll need to download and install the following to build yuzu:
* [pkg-config](https://www.freedesktop.org/wiki/Software/pkg-config/) (`brew install pkgconfig`) * [pkg-config](https://www.freedesktop.org/wiki/Software/pkg-config/) - `brew install pkgconfig`
* [SDL2](https://www.libsdl.org/download-2.0.php) (`brew install sdl2`) * [SDL2](https://www.libsdl.org/download-2.0.php) - `brew install sdl2`
* [Qt5](https://www.qt.io/download/) (`brew install qt5`) (**Note:** If you have Qt4 installed, then you will need to remove it before building. `brew unlink qt4`) * [Qt5](https://www.qt.io/download/) - `brew install qt5`
* [CMake](https://cmake.org/) (`brew install cmake`) * If you have Qt4 installed, then you will need to remove it before building: `brew unlink qt4`
* A recent version of Xcode and the Xcode command line tools * [CMake](https://cmake.org/) - `brew install cmake`
* A recent version of Xcode and the Xcode command line tools
### Cloning yuzu with Git ### Cloning yuzu with Git
**Master:** **Master:**
```bash
git clone --recursive https://github.com/yuzu-emu/yuzu ```bash
cd yuzu git clone --recursive https://github.com/yuzu-emu/yuzu
git submodule update --init --recursive cd yuzu
``` git submodule update --init --recursive
```
**Mainline (no assert):** **Mainline (no assert):**
```bash
git clone --recursive https://github.com/yuzu-emu/yuzu-mainline ```bash
cd yuzu-mainline git clone --recursive https://github.com/yuzu-emu/yuzu-mainline
git submodule update --init --recursive cd yuzu-mainline
``` git submodule update --init --recursive
```
### Using CMake ### Using CMake
First of all, you have to tell CMake where Qt5 is installed (add this line to ~/.profile if you want to make this permanent): First of all, you have to tell CMake where Qt5 is installed (add this line to ~/.profile if you want to make this permanent):
```bash ```bash
export Qt5_DIR=$(brew --prefix)/opt/qt5 export Qt5_DIR=$(brew --prefix)/opt/qt5
``` ```
Now you can generate makefiles for the build: Now you can generate makefiles for the build:
```bash ```bash
export MACOSX_DEPLOYMENT_TARGET=10.14 export MACOSX_DEPLOYMENT_TARGET=10.14
mkdir build mkdir build
cd build cd build
cmake .. -DCMAKE_BUILD_TYPE=Release cmake .. -DCMAKE_BUILD_TYPE=Release
``` ```
### Building yuzu ### Building yuzu