| 1 | Installation Instructions for Linux
|
|---|
| 2 | ---------------------------------------
|
|---|
| 3 |
|
|---|
| 4 | sudo apt-get install xorg-dev libglew-dev libglm-dev
|
|---|
| 5 |
|
|---|
| 6 | make newgame && ./newgame
|
|---|
| 7 |
|
|---|
| 8 | (Old Linux instructions for compiling game.cpp)
|
|---|
| 9 | -sudo apt-get install cmake xorg-dev libglew-dev libglu1-mesa-dev freeglut3-dev mesa-common-dev
|
|---|
| 10 | -
|
|---|
| 11 | --Compile GLFW3 from source
|
|---|
| 12 | - (cmake . && make && sudo make install)
|
|---|
| 13 |
|
|---|
| 14 | Installation Instructions for OSX
|
|---|
| 15 | ---------------------------------------
|
|---|
| 16 |
|
|---|
| 17 | brew install glew
|
|---|
| 18 | brew install glfw3 --without-shared-library
|
|---|
| 19 | brew install glm
|
|---|
| 20 |
|
|---|
| 21 | This should place all necessary files (or possibly symlinks to them) in
|
|---|
| 22 | /usr/loca/include and /usr/local/lib.
|
|---|
| 23 |
|
|---|
| 24 | Run 'xcode-select --install'
|
|---|
| 25 | This should make g++ check for libraries in /usr/local/
|
|---|
| 26 |
|
|---|
| 27 | make newgame && ./newgame
|
|---|
| 28 |
|
|---|
| 29 | Installation Instructions for Windows
|
|---|
| 30 | ---------------------------------------
|
|---|
| 31 |
|
|---|
| 32 | Download the precompiled 32bit binaries of GLFW and GLEW. Create lib/ and
|
|---|
| 33 | include/ folders in the root opengl-game directory you cloned.
|
|---|
| 34 | Copy the include/GL/ and include/GLFW/ folders into your include/ folder.
|
|---|
| 35 |
|
|---|
| 36 | For GLEW, copy lib/RELEASE/Win32/glew32s.lib into your lib folder.
|
|---|
| 37 | For GLFW, copy lib-vc2015/glfw3.lib into your lib folder.
|
|---|
| 38 |
|
|---|
| 39 | Download GLM and copy the glm folder (the one with all the .hpp files) into the include/ folder you made above.
|
|---|
| 40 | GLM is a header-only library, so there is nothing to copy into the lib/ folder.
|
|---|
| 41 |
|
|---|
| 42 | Open and run NewOpenGLGame.sln in Visual Studio 2017 and run it.
|
|---|