FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Red Hat Linux

 
 
LinkBack Thread Tools
 
Old 10-30-2008, 06:24 PM
"A K Arun"
 
Default Compilation error with freeglut

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@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 10-31-2008, 06:59 AM
George Magklaras
 
Default Compilation error with freeglut

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@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 11-01-2008, 09:12 PM
"A K Arun"
 
Default Compilation error with freeglut

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@biotek.uio.no>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@redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 11-01-2008, 11:50 PM
Dag Wieers
 
Default Compilation error with freeglut

On Sat, 1 Nov 2008, A K Arun wrote:


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 ?


This is what you should have:

[dag@rhun ~]# rpm -q freeglut freeglut-devel
freeglut-2.4.0-7.1.el5
freeglut-devel-2.4.0-7.1.el5

Please stick tothe packages that come with your distribution version if
you want to stay away from "bricolage". RHEL5 _does_ come with both.


--
-- dag wieers, dag@wieers.com, http://dag.wieers.com/ --
[Any errors in spelling, tact or fact are transmission errors]

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 11-04-2008, 04:27 PM
"A K Arun"
 
Default Compilation error with freeglut

I really appreciate the prompt help.
I figured out the problem and it was concerned with my RHEL installation
which was rhel-5-client-i386. Well, the client doesn't come with the
freeglut-devel package. I installed rhel-5-server-i386 and it had both
freeglut and freeglut-devel packages.

Things are working for me now.

Thanks again for all the help.

cheers,
Arun

On Sat, Nov 1, 2008 at 7:50 PM, Dag Wieers <dag@wieers.com> wrote:

> On Sat, 1 Nov 2008, A K Arun wrote:
>
> 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 ?
>>
>
> This is what you should have:
>
> [dag@rhun ~]# rpm -q freeglut freeglut-devel
> freeglut-2.4.0-7.1.el5
> freeglut-devel-2.4.0-7.1.el5
>
> Please stick tothe packages that come with your distribution version if you
> want to stay away from "bricolage". RHEL5 _does_ come with both.
>
> --
> -- dag wieers, dag@wieers.com, http://dag.wieers.com/ --
> [Any errors in spelling, tact or fact are transmission errors]
>
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 

Thread Tools




All times are GMT. The time now is 03:09 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org