From 18b4de33ebf6c498b5e7787628d44b46b58497c7 Mon Sep 17 00:00:00 2001 From: archshift Date: Mon, 19 May 2014 22:50:00 -0700 Subject: [PATCH] Created OSX Build (markdown) --- OSX-Build.md | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 OSX-Build.md diff --git a/OSX-Build.md b/OSX-Build.md new file mode 100644 index 0000000..d352d8a --- /dev/null +++ b/OSX-Build.md @@ -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. \ No newline at end of file