|
|
 |
|
 |
|
|
OpenGL Graphics Tutorial Page 1
Setting up Your Compiler
Ned Bingham
Previous Index Next
Windows
1) Create a new project.
2) Download glut.
3) Download the glew binaries.
4) From the glut archive, place glut32.dll in C:\WINDOWS\system32,
glut.h in C:\MinGW\include\GL, and libglut32.a in C:\MinGW\lib
5) From the glew archive, place glew32.dll in C:\MinGW\lib, and
glew.h in C:\MinGW\include\GL
6) In your Eclipse project, go to the menu project->properties.
7) Click the Arrow to the left of C/C++ Build.
8) Under C/C++ Build, click Settings, then select the tab Tool Settings.
9) Scroll down to GCC C++ Linker and select Libraries.
10) Next to Libraries (-l) click the Add... button.
11) Type in glut32 and hit enter.
12) Do it again and type in, in turn, glu32, opengl32, and glew32
13) Click Apply, then OK.
Linux
1) Go to System->Administration->Synaptic Package Manager
2) Type in your password and click Ok.
3) Search for glew and mark libglew1.5-dev and libglew1.5 for installation.
4) Search for glut and mark freeglut3-dev and freeglut3 for installation.
5) Click Apply and wait for the installation to finish.
6) Open Eclipse and create a new project.
7) In your Eclipse project, go to project->properties
8) Click the arrow to the left of C/C++ Build
9) Under C/C++ Build, click settings, then select the tab Tool Settings.
10) Scroll down to GCC C++ Linker and select Libraries.
11) Next to Libraries (-l) click the Add... button.
12) Type in glut and hit enter.
13) Do it again and type in, in turn, GLU, GLEW, and GL
14) Click Apply, then OK.
Mac OS X
1) Create a new Carbon Application project.
2) Right click on External Frameworks and select Add Framework.
3) Scroll through the list of frameworks and select OpenGL.framework
and GLUT.framework, and add them in turn.
4) Delete the unneeded .nib and Carbon.framework files from the project
|
|
|
|
|
|