Results 1 to 5 of 5
hey all
I have fedora 12 and have just installed it.I
am having lots of trouble installing opengl in linux.
I want to link its libraries with gcc so that ...
- 04-17-2010 #1Just Joined!
- Join Date
- Apr 2010
- Posts
- 8
Opengl for linux
hey all
I have fedora 12 and have just installed it.I
am having lots of trouble installing opengl in linux.
I want to link its libraries with gcc so that i am able to run my c code.
Can someone please tell me how to do it .
Thanxx!!
- 04-18-2010 #2Linux Newbie
- Join Date
- Apr 2010
- Location
- Novosibirsk, Russia
- Posts
- 136
- 04-18-2010 #3Just Joined!
- Join Date
- Apr 2010
- Posts
- 8
Thanks for answering.......
Do you know whether the libraries for opengl and glut are preinstalled in linux or not...........
Thanxx...................
- 04-18-2010 #4Linux Newbie
- Join Date
- Apr 2010
- Location
- Novosibirsk, Russia
- Posts
- 136
header files must be in /usr/include (or any other directory where your system stores header files), in a folder name GL, then your code must have:
opengl libraries must be already installed, if you install your linux distro as for developing.Code:#include <GL/gl.h> #include <GL/glut.h>
- 04-18-2010 #5Just Joined!
- Join Date
- Apr 2010
- Location
- Edinburgh, Scotland
- Posts
- 4
Remember to install the graphics card drivers or your nicely written programs may not run very well.

You can check the extensions you require for your code to compile are there with the glxinfo command.


Reply With Quote
