sudo apt-get install freeglut3 sudo apt-get install freeglut3-dev sudo apt-get install binutils-goldAnd you are done :)
/* * File: main.cpp * Author: lordamit * * Created on July 9, 2012, 12:53 PM */ #include <GL/glut.h> using namespace std; void draw(void) { //set Background color glClearColor(1, 0, 0, 1); glClear(GL_COLOR_BUFFER_BIT); //Draw color glFlush(); } //Main program int main(int argc, char **argv) { glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); //set window position glutInitWindowPosition(50, 25); //set window size glutInitWindowSize(500, 250); //set window name glutCreateWindow("My window"); //Call to the drawing function glutDisplayFunc(draw); glutMainLoop(); return 0; }
gcc -lGL -lglut program.c -o program
./program
nope... it didn't help any. I tried --fix-missing --fix-broken an -f . Then I reran install and same error.:-)~MIKE~(-:On Sun, Jul 6, 2014 at 7:17 PM, Walter Mack <wmack@componentsw.com> wrote:maybe this will fix it:
sudo apt-get update
sudo apt-get --fix-missing
then try sudo apt-get install again
On 07/06/2014 06:57 PM, Michael Havens wrote:
I had it working before but don't know how I did itthis is what the readme file says (in part)
LinuxYou'll need to make sure the appropriate OpenGL drivers are installed, plus these libraries:
* libSDL 1.2
* libSDL_image
* OpenAL
(Note: To use the client provided with the Linux package, you will need OpenAL-Soft instead of OpenAL, otherwise you will need to compile your own client if you would rather use normal OpenAL).
I know what they want me to do but googling it is confusing. HOw do I do this. this is what I was told to do and the result:
bmike1@Presario1:~$ sudo apt-get install xlibmesa-gl xlibmesa-glu mesa-utils libgl1-mesa-dri libgl1-mesa-glx libgl1-mesa-dri:i386 libgl1-mesa-driReading package lists... DoneBuilding dependency treeReading state information... DoneE: Unable to locate package xlibmesa-glE: Unable to locate package xlibmesa-glubmike1@Presario1:~$
:-)~MIKE~(-:
--------------------------------------------------- PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org To subscribe, unsubscribe, or to change your mail settings: http://lists.phxlinux.org/mailman/listinfo/plug-discuss
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss