On Linux

Setting GLUT

sudo apt-get install freeglut3-dev

Setting GLEW for OpenGL

sudo apt-get install libglew-dev

for 64-bit

after the installation

sudo apt-get install libxmu-dev
sudo apt-get install libxi-dev

eg. Ubuntu 12.04 and 13.04 LTS

  1. Download eq. Source TGZ
  2. expand TGZ file using tar.
  3. “sudo make install” in Source Folders.
  4. g++ -lGL -lglut -lGL -lGLEW sample25.cpp -o test
  5. g++ -o test main.cpp -lglut -lGLU -lGL -lGLEW
  6. ./test

Screenshot_from_2013-12-22 14:25:37