Working with OpenGL Under GNU/Linux and Windows Environment
I) For GNU/Linux :
1.0 Required Packages:
Note: MatrixOS comes with all these packages pre-installed, so if you are running MatrixOS , skip this section and refer the document "Introduction to basics of Programming" which is located at your Desktop.Open Terminal [ Ctrl+Alt+T ]
run the following command:
$sudo apt-get install freeglut3 freeglut3-dev libglew1.5 libglew1.5-dev libglu1-mesa libglu1-mesa-dev libgl1-mesa-glx libgl1-mesa-dev
-----------------------------------------
2.0 Compiling the program:
$g++ -lglut -lGL -lGLU prog.cpp__________________________________________________________
II) For VC++ under Windows :
1.0 Required Packages:
(ignore this section if you already have them)--> Mycrowsoft Visual C++ from http://www.microsoft.com/express , free version is available
--> GLUT Utility , http://user.xmission.com/~nate/glut.html , direct link http://user.xmission.com/~nate/glut/glut-3.7.6-bin.zip
------------------------------------
2.0 Installation
--> Install VC++--> extract GLUT utility
copy glut32.dll to C:\WINDOWS\system\
copy glut32.lib to C:\Program Files\Microsoft Visual Studio 9.0\VC\lib
copy glut.h to C:\Program Files\Microsoft Visual Studio 9.0\VC\include
to avoid "GL/glut.h" and "glut.h" issues
create a directory "GL" under "include" folder and copy glut.h inside "GL" also.
-----------------------------------
3.0 Running
Launch VC++File->New->project
VisualC++-> win32 -> Win32 Console Application
enter Name
--------------
VERY IMPORTANT
--------------begin your program with
#include "stdafx.h"
-----------------------------------
4.0 ignore :P
--> have fun--> send me cash,cheque, chocolates...
-----------------------------------
Lab Progs with Explanation:
https://docs.google.com/open?id=0B-Gxor1ZeLK1eEQyQ3dmejJwNFk
Reference links:
http://stackoverflow.com/questions/859501/learning-opengl-in-ubuntuhttp://www.microsoft.com/express
http://csf11.acs.uwosh.edu/cs371/visualstudio/
http://user.xmission.com/~nate/glut.html
No comments:
Post a Comment