source: opengl-game/README.txt@ 95595de

feature/imgui-sdl points-test
Last change on this file since 95595de was 58088c0, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 6 years ago

Update the OSX build instructions in the README.

  • Property mode set to 100644
File size: 1.6 KB
Line 
1Installation Instructions for Linux
2---------------------------------------
3
4sudo apt-get install xorg-dev libglew-dev libglm-dev
5
6make 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
14Installation Instructions for OSX
15---------------------------------------
16
17brew install glew
18brew install glfw3 --without-shared-library
19brew install glm
20
21This should place all necessary files (or possibly symlinks to them) in
22/usr/loca/include and /usr/local/lib.
23
24Run 'xcode-select --install'
25This should make g++ check for libraries in /usr/local/
26
27If the above command gives you the following error, you should be able to move on and compile the game.
28"xcode-select: error: command line tools are already installed, use "Software Update" to install updates"
29
30make newgame && ./newgame
31
32Installation Instructions for Windows
33---------------------------------------
34
35Download the precompiled 32bit binaries of GLFW and GLEW. Create lib/ and
36include/ folders in the root opengl-game directory you cloned.
37Copy the include/GL/ and include/GLFW/ folders into your include/ folder.
38
39For GLEW, copy lib/RELEASE/Win32/glew32s.lib into your lib folder.
40For GLFW, copy lib-vc2015/glfw3.lib into your lib folder.
41
42Download GLM and copy the glm folder (the one with all the .hpp files) into the include/ folder you made above.
43GLM is a header-only library, so there is nothing to copy into the lib/ folder.
44
45Open and run NewOpenGLGame.sln in Visual Studio 2017 and run it.
Note: See TracBrowser for help on using the repository browser.