PDA

Visualizza la versione completa : [c] problema con openGL


nik600
18-05-2004, 16:41
ciao a tutti

non riesco a compilare questo sorgente su linux:

http://astronomy.swin.edu.au/~pbourke/oldstuff/gl/

eppure ho installato l'ultima versione di Mesa6.0.1 che dovrebbe contenere anche le GL...

questo l'output del comando:

#cc sorgente.c

gltest.c:4:19: gl/gl.h: No such file or directory
gltest.c:5:23: gl/device.h: No such file or directory
gltest.c: In function `main':
gltest.c:49: `ESCKEY' undeclared (first use in this function)
gltest.c:49: (Each undeclared identifier is reported only once
gltest.c:49: for each function it appears in.)
gltest.c:50: `QKEY' undeclared (first use in this function)
gltest.c:53: `RKEY' undeclared (first use in this function)
gltest.c:57: `LEFTMOUSE' undeclared (first use in this function)
gltest.c:59: `MIDDLEMOUSE' undeclared (first use in this function)
gltest.c:60: `RIGHTMOUSE' undeclared (first use in this function)
gltest.c: In function `CreateWindow':
gltest.c:95: `LEFTMOUSE' undeclared (first use in this function)
gltest.c:96: `MIDDLEMOUSE' undeclared (first use in this function)
gltest.c:97: `RIGHTMOUSE' undeclared (first use in this function)
gltest.c:98: `RKEY' undeclared (first use in this function)
gltest.c:99: `QKEY' undeclared (first use in this function)
gltest.c:100: `ESCKEY' undeclared (first use in this function)


sapete aiutarmi?

GNAWS
18-05-2004, 17:08
Originariamente inviato da nik600
ciao a tutti

non riesco a compilare questo sorgente su linux:

http://astronomy.swin.edu.au/~pbourke/oldstuff/gl/

eppure ho installato l'ultima versione di Mesa6.0.1 che dovrebbe contenere anche le GL...

questo l'output del comando:

#cc sorgente.c

gltest.c:4:19: gl/gl.h: No such file or directory
gltest.c:5:23: gl/device.h: No such file or directory
gltest.c: In function `main':
gltest.c:49: `ESCKEY' undeclared (first use in this function)
gltest.c:49: (Each undeclared identifier is reported only once
gltest.c:49: for each function it appears in.)
gltest.c:50: `QKEY' undeclared (first use in this function)
gltest.c:53: `RKEY' undeclared (first use in this function)
gltest.c:57: `LEFTMOUSE' undeclared (first use in this function)
gltest.c:59: `MIDDLEMOUSE' undeclared (first use in this function)
gltest.c:60: `RIGHTMOUSE' undeclared (first use in this function)
gltest.c: In function `CreateWindow':
gltest.c:95: `LEFTMOUSE' undeclared (first use in this function)
gltest.c:96: `MIDDLEMOUSE' undeclared (first use in this function)
gltest.c:97: `RIGHTMOUSE' undeclared (first use in this function)
gltest.c:98: `RKEY' undeclared (first use in this function)
gltest.c:99: `QKEY' undeclared (first use in this function)
gltest.c:100: `ESCKEY' undeclared (first use in this function)


sapete aiutarmi? Non trova le librerie delle opengle...
Le mesagl non contengono le opengl: sono compatibili con esse... Cosa significhi esattamente non lo so...

nik600
19-05-2004, 16:32
ciao

sapresti dirmi da dove posso scaricare le openGL?

GNAWS
19-05-2004, 16:43
Originariamente inviato da nik600
ciao

sapresti dirmi da dove posso scaricare le openGL? Mi sa che non esiste un pacchetto per le opengl... Vengono installate con i driver...
Che scheda video hai? Prova a installare i dri ( http://dri.sourceforge.net/cgi-bin/moin.cgi/ ) e abilitare il direct rendering per la tua scheda video...

Comunque non ne sono sicurissimo... Chiedi sul forum di Linux...

:ciauz:

Loading