Thanks George. RHEL 5 has freeglut-2.4.0-7.1.el5.i386.rpm coming with it and no development package. I tried to install freeglut-devel-2.2.0-1.i386.rpm (I couldn't find a development package with a higher version i.e. something compatible with freeglut-2.4) but I get a message that it depends on freeglut-2.2.0. So I removed freeglut-2.4 from my laptop and tried to install freeglut-2.2.0-1.i386.rpm. Now it says that it needs libGl.so.1(LIBGL). I don't know what to do ? Did I break something by removing freeglut-2.4 ? I would really appreciate any help on this. Thanks in advance. Regards, Arun On Fri, Oct 31, 2008 at 3:59 AM, George Magklaras <georgios@xxxxxxxxxxxxx>wrote: > There is a freeglut package, but there is also a freeglut-devel package. > The latter contains the files you need to compile programs against the > freeglut libraries. Make sure you have both of them installed. Do you? > > GM > > -- > -- > George Magklaras > > Senior Computer Systems Engineer/UNIX Systems Administrator > EMBnet Technical Management Board > The Biotechnology Centre of Oslo, > University of Oslo > http://folk.uio.no/georgios > > > > > A K Arun wrote: > >> Hi, >> I'm quite new to linux and am facing a few problems while compiling a >> program in C which uses OpenGL. I have installed Red Hat Enterprise Linux >> 5 >> and freeglut was installed as part of the linux installation. >> >> ps3.c: In function 'initGL': >> ps3.c:66: error: 'GL_COLOR_BUFFER_BIT' undeclared (first use in this >> function) >> ps3.c:66: error: (Each undeclared identifier is reported only once >> ps3.c:66: error: for each function it appears in.) >> ps3.c: In function 'mouse': >> ps3.c:262: error: 'GLUT_DOWN' undeclared (first use in this function) >> ps3.c:279: error: 'GLUT_UP' undeclared (first use in this function) >> ps3.c:297: error: 'GLdouble' undeclared (first use in this function) >> ps3.c:297: error: expected ')' before 'X' >> ps3.c:299: error: 'GL_SELECT' undeclared (first use in this function) >> ps3.c:301: error: 'GL_PROJECTION' undeclared (first use in this function) >> ps3.c: In function 'keyboard': >> ps3.c:396: error: 'GL_MODELVIEW' undeclared (first use in this function) >> ps3.c:397: error: 'GL_MODELVIEW_MATRIX' undeclared (first use in this >> function) >> ps3.c:405: error: 'GL_PROJECTION' undeclared (first use in this function) >> ps3.c: In function 'drawLine': >> ps3.c:440: error: 'GL_LINES' undeclared (first use in this function) >> ps3.c: In function 'glowVertex': >> ps3.c:492: error: 'GL_COLOR_LOGIC_OP' undeclared (first use in this >> function) >> ps3.c:493: error: 'GL_XOR' undeclared (first use in this function) >> ps3.c:496: error: 'GL_POINTS' undeclared (first use in this function) >> ps3.c: In function 'glowEdge': >> ps3.c:519: error: 'GL_COLOR_LOGIC_OP' undeclared (first use in this >> function) >> ps3.c:520: error: 'GL_XOR' undeclared (first use in this function) >> ps3.c:524: error: 'GL_LINES' undeclared (first use in this function) >> ps3.c:531: error: 'GL_POINTS' undeclared (first use in this function) >> ps3.c: In function 'drawRect': >> ps3.c:596: error: 'GLUT_DOWN' undeclared (first use in this function) >> ps3.c:597: error: 'GL_COLOR_BUFFER_BIT' undeclared (first use in this >> function) >> ps3.c: In function 'reshape': >> ps3.c:647: error: 'GL_PROJECTION' undeclared (first use in this function) >> ps3.c:652: error: 'GL_MODELVIEW' undeclared (first use in this function) >> ps3.c: In function 'visibility': >> ps3.c:664: error: 'GLUT_VISIBLE' undeclared (first use in this function) >> ps3.c: In function 'display': >> ps3.c:679: error: 'GL_COLOR_BUFFER_BIT' undeclared (first use in this >> function) >> ps3.c:687: error: expected ';' before 'drawRect' >> ps3.c:691: error: expected ';' before 'break' >> ps3.c: In function 'main': >> ps3.c:712: error: 'GLUT_DOUBLE' undeclared (first use in this function) >> ps3.c:712: error: 'GLUT_RGB' undeclared (first use in this function) >> make: *** [ps3.o] Error 1 >> >> >> Please find attached 'sample.tar.gz'. It contains the following- >> - C program which I'm trying to compile >> - Makefile >> - header file >> >> Have I missed a step or two after the installation ? Something like >> configuring the path etc. If so then please let me know of the same. >> Any idea on which header file to use in case of freeglut ? Is it >> freeglut.h >> ? Though I couldn't find it on my linux box. >> >> Regards, >> Arun A K >> >> > > > -- > redhat-list mailing list > unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe > https://www.redhat.com/mailman/listinfo/redhat-list > -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list