Created OSX Build (markdown)

archshift 2014-05-19 22:50:00 -07:00
parent 1eafbdb58d
commit 18b4de33eb

45
OSX-Build.md Normal file

@ -0,0 +1,45 @@
#### NOTE: WHILE OSX BUILDS WILL COMPILE, NO IMAGE WILL SHOW UPON LOADING A FILE!
### 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 Citra:
* [GLEW](http://glew.sourceforge.net/) (`brew install glew`)
* [pkg-config](http://www.freedesktop.org/wiki/Software/pkg-config/) (`brew install pkgconfig`)
* [GLFW](http://www.glfw.org/download.html) (`brew tap homebrew/versions`, `brew install glfw3`)
* [Qt4](http://qt-project.org/downloads) (`brew install qt`)
* Note... Qt5 will be supported soon
* [CMake](http://www.cmake.org/) (`brew install cmake`)
#### Building GLFW from source:
Should you choose not to use homebrew, type these commands in a terminal:
```
git clone https://github.com/glfw/glfw.git
cd glfw
mkdir build && cd build
cmake ..
make
sudo make install
```
### Using CMake:
```
mkdir build
cd build
cmake .. -GXcode
```
Optionally, you can use `cmake -i ..` to adjust various options (e.g. disable Qt4 GUI).
#### Building with debug symbols:
```
cmake .. -GXcode -DCMAKE_BUILD_TYPE=Debug
```
### Building Citra:
Open the project file in Xcode, switch the target from `ALL_BUILD` to `citra` or `citra_qt`, and press the play button.