Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 22nd, 2006, 10:35 AM   #1
matko
Newbie
 
Join Date: Sep 2005
Posts: 28
Rep Power: 0 matko is on a distinguished road
libraries

Hello!
I trying to compile simple source which uses some libraries which I dont know how to install. Errors look lijke this:

mklaic@box:~/Programming/OpenGl$ gcc -I/usr/X11R6/include -c -o cube.o cube.c
cube.c:17:39: GL/gl.h: No such file or directory
cube.c:18:45: GL/glu.h: No such file or directory
cube.c:19:46: GL/glut.h: No such file or directory
cube.c:38: error: syntax error before "TexModes"
cube.c:38: error: `GL_DECAL' undeclared here (not in a function)
cube.c:38: error: initializer element is not constant
cube.c:38: error: (near initialization for `TexModes[0]')
cube.c:38: error: `GL_MODULATE' undeclared here (not in a function)
cube.c:38: error: initializer element is not constant
cube.c:38: error: (near initialization for `TexModes[1]')
cube.c:38: error: `GL_BLEND' undeclared here (not in a function)
cube.c:38: error: initializer element is not constant
cube.c:38: error: (near initialization for `TexModes[2]')
cube.c:38: error: `GL_REPLACE' undeclared here (not in a function)
cube.c:38: error: initializer element is not constant
cube.c:38: error: (near initialization for `TexModes[3]')
cube.c:38: warning: data definition has no type or storage class
cube.c: In function `cbRenderScene':
cube.c:108: error: `GL_TEXTURE_2D' undeclared (first use in this function)
cube.c:108: error: (Each undeclared identifier is reported only once
cube.c:108: error: for each function it appears in.)
cube.c:113: error: `GL_LIGHTING' undeclared (first use in this function)
cube.c:118: error: `GL_SRC_ALPHA' undeclared (first use in this function)
cube.c:118: error: `GL_ONE' undeclared (first use in this function)
cube.c:120: error: `GL_ONE_MINUS_SRC_ALPHA' undeclared (first use in this function)
cube.c:124: error: `GL_DEPTH_TEST' undeclared (first use in this function)
cube.c:129: error: `GL_TEXTURE_MIN_FILTER' undeclared (first use in this function)
cube.c:130: error: `GL_LINEAR_MIPMAP_LINEAR' undeclared (first use in this function)
cube.c:131: error: `GL_TEXTURE_MAG_FILTER' undeclared (first use in this function)
cube.c:131: error: `GL_LINEAR' undeclared (first use in this function)
cube.c:134: error: `GL_NEAREST_MIPMAP_NEAREST' undeclared (first use in this function)
cube.c:135: error: `GL_NEAREST' undeclared (first use in this function)
cube.c:140: error: `GL_MODELVIEW' undeclared (first use in this function)
cube.c:154: error: `GL_COLOR_BUFFER_BIT' undeclared (first use in this function)
cube.c:154: error: `GL_DEPTH_BUFFER_BIT' undeclared (first use in this function)
cube.c:158: error: `GL_QUADS' undeclared (first use in this function)
cube.c:237: error: `GL_PROJECTION' undeclared (first use in this function)
cube.c:258: error: `GLUT_BITMAP_HELVETICA_12' undeclared (first use in this function)
cube.c: In function `cbKeyPressed':
cube.c:331: error: `GL_BLEND' undeclared (first use in this function)
cube.c:343: error: `GL_TEXTURE_ENV' undeclared (first use in this function)
cube.c:343: error: `GL_TEXTURE_ENV_MODE' undeclared (first use in this function)
cube.c: In function `cbSpecialKeyPressed':
cube.c:384: error: `GLUT_KEY_PAGE_UP' undeclared (first use in this function)
cube.c:388: error: `GLUT_KEY_PAGE_DOWN' undeclared (first use in this function)
cube.c:392: error: `GLUT_KEY_UP' undeclared (first use in this function)
cube.c:396: error: `GLUT_KEY_DOWN' undeclared (first use in this function)
cube.c:400: error: `GLUT_KEY_LEFT' undeclared (first use in this function)
cube.c:404: error: `GLUT_KEY_RIGHT' undeclared (first use in this function)
cube.c: In function `ourBuildTextures':
cube.c:425: error: `GLenum' undeclared (first use in this function)
cube.c:425: error: syntax error before "gluerr"
cube.c:426: error: `GLubyte' undeclared (first use in this function)
cube.c:432: error: `GL_TEXTURE_2D' undeclared (first use in this function)
cube.c:443: error: `tex' undeclared (first use in this function)
cube.c:465: error: `gluerr' undeclared (first use in this function)
cube.c:465: error: `GL_RGBA' undeclared (first use in this function)
cube.c:466: error: `GL_UNSIGNED_BYTE' undeclared (first use in this function)
cube.c:473: error: `GL_TEXTURE_WRAP_S' undeclared (first use in this function)
cube.c:473: error: `GL_REPEAT' undeclared (first use in this function)
cube.c:474: error: `GL_TEXTURE_WRAP_T' undeclared (first use in this function)
cube.c:477: error: `GL_TEXTURE_ENV' undeclared (first use in this function)
cube.c:477: error: `GL_TEXTURE_ENV_MODE' undeclared (first use in this function)
cube.c:477: error: `GL_DECAL' undeclared (first use in this function)
cube.c: In function `cbResizeScene':
cube.c:497: error: `GL_PROJECTION' undeclared (first use in this function)
cube.c:499: error: `GLfloat' undeclared (first use in this function)
cube.c:499: error: syntax error before "Width"
cube.c:501: error: `GL_MODELVIEW' undeclared (first use in this function)
cube.c: In function `ourInit':
cube.c:524: error: `GL_LESS' undeclared (first use in this function)
cube.c:527: error: `GL_SMOOTH' undeclared (first use in this function)
cube.c:533: error: `GL_LIGHT1' undeclared (first use in this function)
cube.c:533: error: `GL_POSITION' undeclared (first use in this function)
cube.c:534: error: `GL_AMBIENT' undeclared (first use in this function)
cube.c:535: error: `GL_DIFFUSE' undeclared (first use in this function)
cube.c:539: error: `GL_FRONT_AND_BACK' undeclared (first use in this function)
cube.c:539: error: `GL_AMBIENT_AND_DIFFUSE' undeclared (first use in this function)
cube.c:540: error: `GL_COLOR_MATERIAL' undeclared (first use in this function)
cube.c: In function `main':
cube.c:555: error: `GLUT_RGBA' undeclared (first use in this function)
cube.c:555: error: `GLUT_DOUBLE' undeclared (first use in this function)
cube.c:555: error: `GLUT_DEPTH' undeclared (first use in this function)

I'm usin KANOTIX.
matko is offline   Reply With Quote
Old Jan 22nd, 2006, 2:12 PM   #2
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 8 Ooble is on a distinguished road
It uses OpenGL. See if you can get the SDK set up - you should be able to install it with apt-get.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:16 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC