Starting with OpenGL in Ubuntu Linux [by Chandan]

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
6,148
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Apr 25, 2010

Its just a few steps to work with the OpenGL in Ubuntu.
1. Install the required packages sudo apt-get install build-essential # standard C/C++ library & header files sudo apt-get install glutg3-dev # GLUT headers
2. Additionally, an Integrated Development Environment (aka, IDE) would be a good choice for easier programming. That's why, I've chosen Geany sudo apt-get install geany

Hope his helped you ;-)

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (cdnatutube)

  • Hiii...

    When a run an openGL program in ubuntu it gives me the following error message.

    Xlib: extension "GLX" missing on display ":0.0".

    freeglut (./ex1): OpenGL GLX extension not supported by display ':0.0'

    I am really struggling with this for quite sometime. Can you please help me what should be done to make openGL programs run in ubuntu? Your help is really appreciated. (I am using ubuntu 64 bit version).

  • @kesav1985 This should help: [bit . ly / tFwwHj] and [bit . ly / vZctgd]

  • is it using cpu or gpu, when i run it on fullscreen its really laggy and the cpu usage is 100%

  • @pfbjjz No GPU... It is using just the on-board nVidia Chipset :)

  • is it using cpu or gpu, when i run it on fullscreen its really laggy and the cpu usage is 100%

  • @pfbjjz Thank you :)

see all

All Comments (19)

Sign In or Sign Up now to post a comment!
  • @cdnatutube

    Thanks. I guess there is a problem with Ubuntu11.10 - 64bit version. I have installed a fresh copy of Ubuntu 10.04 and everything is working fine.

  • thanks !.

  • @cdnatutube Thanks! ;)

  • @CubeVon I hope you know some basics of OpenGL. It has three basic libraries - glut (library "GLUT" on Windows), GL (library "OpenGL" on Windows) and GLU (library "GL Utilities" on Windows).

    Since these libraries are not included in the standard C/C++ set, we have to specify their location for the compiler. For that, you can use -l (el) option along with the required library. By doing so, you are actually telling the compiler where to find it. -lm is for math library (for power, sqrt, etc).

    :)

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more