I had installed OpenGL and freeglut in Ubuntu 10.04 and it worked fine in 10.04 and 10.10. But after I upgraded to 11.04, the applications I\'ve developed using OpenGL is no
You could need Bumblebee. But this is supported only for 12.04 and from 13.10 up. Oficial instructions here: https://wiki.ubuntu.com/Bumblebee
You need to open your terminal and enter the commands below.
If on 12.04.3, replace linux-headers-generic with linux-headers-generic-lts-raring.
sudo add-apt-repository ppa:bumblebee/stable
Enable the Universe and Multiverse repositories (for bumblebee and nvidia packages respectively).
sudo apt-get update
Install Bumblebee using the default proprietary nvidia driver:
sudo apt-get install bumblebee bumblebee-nvidia linux-headers-generic
Reboot
All should be ok now.