Added Mac OSX instructions

Added Stéphane's contribution of Mac OSX fork to readme
This commit is contained in:
Joey de Vries
2015-05-21 21:26:09 +02:00
parent f6c5ac42fc
commit 349a95b997

View File

@@ -11,3 +11,14 @@ Note that you still have to manually copy the required .DLL files from the /dlls
## Linux building
First make sure you have CMake, Git, and GCC by typing as root (sudo) `apt-get install g++ cmake git` and then get the required packages:
Using root (sudo) and type `apt-get install libsoil-dev libglm-dev libassimp-dev libglew-dev libglfw3-dev` . Next, run CMake (preferably CMake-gui). The source directory is LearnOpenGL and specify the build directory as LearnOpenGL/build. Creating the build directory within LearnOpenGL is important for linking to the resource files (it also will be ignored by Git). Hit configure and specify your compiler files (Unix Makefiles are recommended), resolve any missing directories or libraries, and then hit generate. Navigate to the build directory (`cd LearnOpenGL/build`) and type `make` in the terminal. This should generate the executables in the respective chapter folders. Note that using CodeBlocks or an IDE may have issues running the programs due to problems finding the shader and resource files, however it should still be able to generate the exectuables.
## Mac OS X building
Thanks to Stéphane le Boeuf, a Github fork was set up that successfully compiles on Mac OSX (and Linux as well); current CMake hasn't been adapted for Mac OSX yet. The following command lines build the projects on Mac OSX:
```
git clone --recursive [https://github.com/stephane-lb/LearnOpenGL.git
cd LearnOpenGL
mkdir build
cd build
cmake ../.
make -j8
```