Setting up OpenGL on Ubuntu

I need help setting up OpenGL and SDL on Ubuntu. Is Ubuntu ideal for such graphics development? I have a CodeBlocks IDE for C / C ++ and I downloaded the SDL 1.2 libraries. I have a hard time installing OpenGL. What step should I follow?

+7
source share
2 answers

To configure OpenGL and SDL, you must open a terminal and run the command:

sudo apt-get update && sudo apt-get install libgl sdl 

This will install the basic libraries needed to run OGL / SDL applications after entering the root password. I suggest you google for synaptic and learn how to use it.

Linux is always a good place to develop something.

+3
source

I'm having a hard time installing OpenGL

Technically, OpenGL is just a specification implemented by your graphics driver. There is no such thing as an OpenGL SDK library. There just libGL.so comes with your driver. To use it, you need bindings for your programming language of choice. If it is C, "bindings" consist only of header files. However, you probably also want to use the OpenGL extensions, which are easiest to use with GLEW.

Therefore, I suggest you install the GLEW development files, all other dependencies (including OpenGL headers) will be pulled in by the package manager:

 apt-get install libglew1.5-dev 
+15
source

All Articles