|
Step 1 :::. Check For Required
Libraries |
|
Check Whether Following Required Libraries
Exist Under Corresponding Directory. |
|
Filename |
Directory |
libgl.a
or libGL.a
or
libgl.so or
libGL.so |
/usr/lib/... ... |
libglu.a
or libGLU.a
or
libglu.so or
libGLU.so |
/usr/lib/... ... |
libglut.a
or libglut.so |
/usr/lib/... ... |
libXmu.a
or libxmu.so |
/usr/X11R6/lib/ |
libXi.a
or libxi.so |
/usr/X11R6/lib/ |
libXert.a
or libxert.so |
/usr/X11R6/lib/ |
libX11.a
or libx11.so |
/usr/X11R6/lib/ |
|
|
Step 2 :::. Check For Required
Header Files |
|
Check Whether All These 3 Header Files Exists :-
gl.h, glu.h, glut.h |
|
Step 3 :::. Download "imakefile"
with Sample Program |
|
Click Here to
Download Sample Program Along with imakefile
& Then Extract with WinZip |
|
Step 4 :::. Change "imakefile"
When & Where Needed |
|
Change First 3 Lines as Necessary. |
1. First Line Contains TARGET Filename
Which is The Name of Executable File. |
2. Second Line Contains OBJS Filename
Which is The Name of Object File(s) |
3. Third Line Contains SRCS Filename
Which is The Name of Source File(s) |
Change GLLIB According to The Case of
Library Filenames. |
1. If libGL.a or libGL.so is Found
the Use -lGL |
2. If libgl.a or libgl.so is Found
the Use -lgl |
3. If libGLU.a or libGLU.so is
Found the Use -lGLU |
4. If libglu.a or libglu.so is
Found the Use -lglu |
|
Step 5 :::. Copy "imakefile"
& *.cpp or *.c Files in
Same Folder |
|
After Modifying imakefile , Copy This
File Along with Other Source Files in The Same
Folder. |
|
Step 6 :::. Compile Files |
|
Now From That Directory Where Both Source
Files & imakefile Exists Run The
Following Command |
|
|
|
This command will generate object files &
you will see some text on the screen. |
|
Step 7 :::. Generate Executable File |
|
Now From The Same Folder Run The Following
Command - |
|
|
|
|
Step 8 :::. Execute Executable File Using
Graphical User Interface |
|
Now To Execute That File Run The Following
Command - ( For Sample Program windw ) |
|
|
|
|
|
|