Jump to content

  • Log In with Google      Sign In   
  • Create Account

GL/glut.h: No such file or directory


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 nik600   Members   -  Reputation: 122

Like
0Likes
Like

Posted 08 December 2004 - 06:56 AM

hi everyone i cannot compile my application developed in c++/openGL the error is that:
src/classi.h:1:61: GL/glut.h: No such file or directory
src/classi.h:3:61: GL/glu.h: No such file or directory
src/nik_system.cc: In function `void InitGL(int, int)':
src/nik_system.cc:26: error: `gluPerspective' undeclared (first use this
function)
src/nik_system.cc:26: error: (Each undeclared identifier is reported only once
for each function it appears in.)
src/nik_system.cc: In function `void ReSizeGLScene(int, int)':
src/nik_system.cc:43: error: `gluPerspective' undeclared (first use this
function)
src/nik_system.cc: In function `void DrawGLScene()':
src/nik_system.cc:79: error: `glutSwapBuffers' undeclared (first use this
function)
src/nik_system.cc: In function `void keyPressed(unsigned char, int, int)':
src/nik_system.cc:93: error: `glutDestroyWindow' undeclared (first use this
function)
src/nik_system.cc: In function `int main(int, char**)':
src/nik_system.cc:106: error: `glutInit' undeclared (first use this function)
src/nik_system.cc:113: error: `GLUT_RGBA' undeclared (first use this function)
src/nik_system.cc:113: error: `GLUT_DOUBLE' undeclared (first use this
function)
src/nik_system.cc:113: error: `GLUT_ALPHA' undeclared (first use this function)
src/nik_system.cc:113: error: `GLUT_DEPTH' undeclared (first use this function)
src/nik_system.cc:113: error: `glutInitDisplayMode' undeclared (first use this
function)
src/nik_system.cc:116: error: `glutInitWindowSize' undeclared (first use this
function)
src/nik_system.cc:119: error: `glutInitWindowPosition' undeclared (first use
this function)
src/nik_system.cc:122: error: `glutCreateWindow' undeclared (first use this
function)
src/nik_system.cc:125: error: `glutDisplayFunc' undeclared (first use this
function)
src/nik_system.cc:131: error: `glutIdleFunc' undeclared (first use this
function)
src/nik_system.cc:134: error: `glutReshapeFunc' undeclared (first use this
function)
src/nik_system.cc:137: error: `glutKeyboardFunc' undeclared (first use this
function)
src/nik_system.cc:143: error: `glutMainLoop' undeclared (first use this
function)
make: *** [nik_system.o] Error 1 
i use g++ and compile with the following command: g++ -c src/nik_system.cc g++ -c src/batteria.cc g++ -c src/carattere.cc g++ -c src/texture.cc g++ -c src/ram.cc g++ -c src/uptime.cc g++ -c src/partizione.cc g++ -c src/hdd.cc g++ -Wall -I/usr/include -o nik_system -L/usr/X11R6/lib nik_system.o batteria.o carattere.o texture.o ram.o uptime.o partizione.o hdd.o -lX11 -lXi -lXmu -lglut -lGL -lGLU -lm it works fine on my slackware 10 but doesn't works on a (Knoppix --> Debian Sid) thank's in advance...what can i do?

Sponsor:

#2 RPTD   Members   -  Reputation: 316

Like
0Likes
Like

Posted 08 December 2004 - 07:11 AM

most probably GL/glu.h is not installed or not under /usr/include. take a console, go to '/', do a 'find -iname "glu.h"' and then see where the file is listed. include it then into your build. i suspect you need '-I/usr/X11R6/include'. happy trails

EDIT: that -I needs to go with all the upper compilations, not the linkage at the end.

EDIT, EDIT: stupid fonts on this forum. -I (I=Indigo) in your link command (last line) is useless. only -l (l=lama) and -L apply there.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS