Archive Pages Design$type=blogging

How to install opengl in linux ubuntu

There are many of students feel difficult to install the OpenGL/Glut libraries in Ubuntu or any Linux. Here we are going to learn how to install the OpenGL/Glut libraries in your Desktop or PC to execute the OpenGL Programs in C/C++ Computer graphics.

Executing the OpenGL Programs in Windows is quite easy as compare executing it with the Linux OS. You just need to install the Visual studio in windows machine and paste the right file in proper folder. But in Linux (Ubuntu) that not as easy, this is thought of many students.While this wrong assumption, Linux may be little hard to execute as it need more a programmatic approach rather than a simple use of GUI. There are many of students feel difficult to install the OpenGL/Glut libraries in Ubuntu or any Linux. Here we are going to learn how to install the OpenGL/Glut libraries in your Desktop or PC to execute the OpenGL Programs in C/C++ Computer graphics.

How to Install OpenGL/Glut libraries in Ubuntu/Linux

Download OpenGL/Glut in Ubuntu/Linux:


1. The first step is to open terminal using CTRL+ALT+T command.
2. Now install the development libraries of OpenGL/Glut in Ubuntu (paste the below command on terminal):
 sudo apt-get install freeglut3 freeglut3-dev

System will automatically install the necessary files which you need to run the OpenGL programs in Ubuntu.

3. For newer versions of Ubuntu (>= 11.10) you have to install another package because the linker does not link anymore(paste the below command on terminal):

sudo apt-get install binutils-gold

Note: If you are not administrator then, you need to ask for sudo permission.

Note:
 we are running any openGL code using simple command

4. Now create any c file(for example test.c) and compile :

gcc -lGL -lglut test.c -o test

5. Run the program :

Use the following command and create the file, as done with usual C/C++ program in Linux.

./test 
gcc -lGL -lglut test.c

than run using this command 
./a.out 

If you have any difficulty in installing opengl in linux ubuntu kindly comments in the commention section below. We will let you solve the all the issues related to installation of  opengl in linux ubuntu .

COMMENTS

Name

3D Bi-Cycle 3D Game 3D Laptop 3D Objects 3D Projects 3D Zoo Algorithm Android Aquarium Bellman-Ford Algorithm Block Breaker Blockshooting Bucket Sort C# Chess Clock Code Blocks Colors Complex Project Complex Projects Crab Pong Cross Zero DSAV Escapa First Come First Serve Fluids Font Demo Games Gear Motion GlutDino Glutplane Graphics Editor iOS iPhone Java Java OpenGL Graphics Programming Light Torus Linked List Ludo Board Game Mancala board games Memory blocks game Memory Game Menu Mickey Mouse Minesweeper Miniature Steam Engine moth Motion Blur MoveLight moving car Moving Ship Multiplex Networking Based Project Nuclear Power Plant Olympic opengl c++ examples OpenGL ES OpenGL Tutorial Origami OS Based Projects Paint Paper Folding Particles Drop Path Finding ping pong Pong Game Project Report Projects Report Puzzles qix like Random Flowing lines Rigid Body Rings Robot sample c++ opengl code Screen Saver Screen Saver Ship Shadow Cube Shadowfun Ship Iceberg Simple Drawing Simple Haloed Lined Wireframe Simple Move Light Simple Project Simulation SNAKE XENZIA GAME Solar system Sorting Sphere Spot Light Swing Stars Taj Mahal The Edge Game Tic Tac Toe Tower of Hanoi Traffic Signal Transformation Triangular Animation Tutorial water ripple effects Whirlpool
false
ltr
item
OpenGL Projects: How to install opengl in linux ubuntu
How to install opengl in linux ubuntu
There are many of students feel difficult to install the OpenGL/Glut libraries in Ubuntu or any Linux. Here we are going to learn how to install the OpenGL/Glut libraries in your Desktop or PC to execute the OpenGL Programs in C/C++ Computer graphics.
OpenGL Projects
http://www.openglprojects.in/2014/11/how-to-install-opengl-in-linux-ubuntu.html
http://www.openglprojects.in/
http://www.openglprojects.in/
http://www.openglprojects.in/2014/11/how-to-install-opengl-in-linux-ubuntu.html
true
2020194800836807725
UTF-8
Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago