View Full Version : Compiling OpenGL
January 28th, 2006, 05:10 PM
I've been trying to learn OpenGL with c++ but I couldn't get it to compile in windows. Now that im in linux, what would i need to compile OpenGL with c++?
And how would I compile?
January 28th, 2006, 05:15 PM
In linux and windows you have different headers (ofcourse) and I think you should check for what the source is made, and if you are making it yourself I would start with GLUT (was the 1st I started with). OpenGL is usually already available GLUT isn't and maybe you need some headers that you don't have.. check it
January 31st, 2006, 03:18 PM
Well, I've never actually compiled anything before. But im guessing I need a C++ compiler?
What one do you suggest, and how do I compile with it?
April 11th, 2006, 03:17 PM
try installing this:
sudo apt-get install build-essential freeglut3-dev
or install these packages from synaptic.
build-essential will install the things you need to compile c++ and use makefiles
freeglut3-dev will give you the libraries you need to make opengl programs
August 1st, 2010, 10:30 AM
have installed the libraries needed by OpenGL, but I do not know how to compile programs that I have made..??
August 2nd, 2010, 09:51 AM
gcc yourfile.cpp -lglut -lGLU -o appname
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.