Fórum Ubuntu CZ/SK

Ostatní => Archiv => Téma založeno: Stepan 18 Června 2006, 11:37:34

Název: Preklad programu vyuzivajici knihovnu GLUT
Přispěvatel: Stepan 18 Června 2006, 11:37:34
Zdravim.
Po upgradu z Ubuntu 5.10 na 6.06 najednou nemuzu kompilovat v cecku programy, ktere vyuzivaji grafickou knihovnu GLUT. Pritom jsem si jisty, ze na Ubuntu 5.10 behalo vse bez problemu.
Pri pokusu o kompilaci napriklas tohoto programu (http://i.iinfo.cz/r/photos/opengl/opengl_02_1.html) dostanu nasledujici chybovy vypis:
Kód: [Vybrat]
gcc -L/usr/X11R6/lib -lglut -lGL -lGLU -lm -lX11 -lXmu -lXi 1.c -o 1
In file included from /usr/include/GL/glut.h:17,
                 from 1.c:16:
/usr/include/GL/freeglut_std.h:114:19: error: GL/gl.h: není souborem ani adresářem
In file included from /usr/include/GL/freeglut_std.h:115,
                 from /usr/include/GL/glut.h:17,
                 from 1.c:16:
/usr/include/GL/glu.h:280: error: syntax error before ‘gluBuild1DMipmapLevels’
/usr/include/GL/glu.h:280: error: syntax error before ‘target’
/usr/include/GL/glu.h:281: error: syntax error before ‘gluBuild1DMipmaps’
/usr/include/GL/glu.h:281: error: syntax error before ‘target’
/usr/include/GL/glu.h:282: error: syntax error before ‘gluBuild2DMipmapLevels’
/usr/include/GL/glu.h:282: error: syntax error before ‘target’
/usr/include/GL/glu.h:283: error: syntax error before ‘gluBuild2DMipmaps’
/usr/include/GL/glu.h:283: error: syntax error before ‘target’
/usr/include/GL/glu.h:284: error: syntax error before ‘gluBuild3DMipmapLevels’
/usr/include/GL/glu.h:284: error: syntax error before ‘target’
/usr/include/GL/glu.h:285: error: syntax error before ‘gluBuild3DMipmaps’
/usr/include/GL/glu.h:285: error: syntax error before ‘target’
/usr/include/GL/glu.h:286: error: syntax error before ‘gluCheckExtension’
/usr/include/GL/glu.h:286: error: syntax error before ‘*’ token
/usr/include/GL/glu.h:287: error: syntax error before ‘GLdouble’
/usr/include/GL/glu.h:291: error: syntax error before ‘GLdouble’
/usr/include/GL/glu.h:296: error: syntax error before ‘*’ token
/usr/include/GL/glu.h:296: error: syntax error before ‘error’
/usr/include/GL/glu.h:297: error: syntax error before ‘GLenum’
/usr/include/GL/glu.h:298: error: syntax error before ‘*’ token
/usr/include/GL/glu.h:298: error: syntax error before ‘name’
/usr/include/GL/glu.h:299: error: syntax error before ‘GLenum’
/usr/include/GL/glu.h:300: error: syntax error before ‘*’ token
/usr/include/GL/glu.h:301: error: syntax error before ‘eyeX’
/usr/include/GL/glu.h:305: error: syntax error before ‘GLenum’
/usr/include/GL/glu.h:306: error: syntax error before ‘GLenum’
/usr/include/GL/glu.h:307: error: syntax error before ‘GLvoid’
/usr/include/GL/glu.h:308: error: syntax error before ‘GLvoid’
/usr/include/GL/glu.h:309: error: syntax error before ‘GLint’
/usr/include/GL/glu.h:310: error: syntax error before ‘GLenum’
/usr/include/GL/glu.h:311: error: syntax error before ‘GLint’
/usr/include/GL/glu.h:312: error: syntax error before ‘left’
/usr/include/GL/glu.h:313: error: syntax error before ‘GLdouble’
/usr/include/GL/glu.h:314: error: syntax error before ‘fovy’
/usr/include/GL/glu.h:315: error: syntax error before ‘x’
/usr/include/GL/glu.h:316: error: syntax error before ‘gluProject’
/usr/include/GL/glu.h:316: error: syntax error before ‘objX’
/usr/include/GL/glu.h:317: error: syntax error before ‘GLint’
/usr/include/GL/glu.h:318: error: syntax error before ‘GLenum’
/usr/include/GL/glu.h:319: error: syntax error before ‘GLenum’
/usr/include/GL/glu.h:320: error: syntax error before ‘GLenum’
/usr/include/GL/glu.h:321: error: syntax error before ‘GLenum’
/usr/include/GL/glu.h:322: error: syntax error before ‘GLboolean’
/usr/include/GL/glu.h:323: error: syntax error before ‘gluScaleImage’
/usr/include/GL/glu.h:323: error: syntax error before ‘format’
/usr/include/GL/glu.h:324: error: syntax error before ‘GLdouble’
/usr/include/GL/glu.h:326: error: syntax error before ‘GLvoid’
/usr/include/GL/glu.h:327: error: syntax error before ‘GLenum’
/usr/include/GL/glu.h:330: error: syntax error before ‘GLdouble’
/usr/include/GL/glu.h:331: error: syntax error before ‘GLenum’
/usr/include/GL/glu.h:332: error: syntax error before ‘GLdouble’
/usr/include/GL/glu.h:333: error: syntax error before ‘gluUnProject’
/usr/include/GL/glu.h:333: error: syntax error before ‘winX’
/usr/include/GL/glu.h:334: error: syntax error before ‘gluUnProject4’
/usr/include/GL/glu.h:334: error: syntax error before ‘winX’
In file included from /usr/include/GL/glut.h:17,
                 from 1.c:16:
/usr/include/GL/freeglut_std.h:432: error: syntax error before ‘layer’
/usr/include/GL/freeglut_std.h:491: error: syntax error before ‘query’
/usr/include/GL/freeglut_std.h:492: error: syntax error before ‘query’
/usr/include/GL/freeglut_std.h:494: error: syntax error before ‘query’
/usr/include/GL/freeglut_std.h:509: error: syntax error before ‘size’
/usr/include/GL/freeglut_std.h:510: error: syntax error before ‘size’
/usr/include/GL/freeglut_std.h:511: error: syntax error before ‘radius’
/usr/include/GL/freeglut_std.h:512: error: syntax error before ‘radius’
/usr/include/GL/freeglut_std.h:513: error: syntax error before ‘base’
/usr/include/GL/freeglut_std.h:514: error: syntax error before ‘base’
/usr/include/GL/freeglut_std.h:516: error: syntax error before ‘innerRadius’
/usr/include/GL/freeglut_std.h:517: error: syntax error before ‘innerRadius’
/usr/include/GL/freeglut_std.h:530: error: syntax error before ‘size’
/usr/include/GL/freeglut_std.h:531: error: syntax error before ‘size’
/usr/include/GL/freeglut_std.h:539: error: syntax error before ‘query’
/usr/include/GL/freeglut_std.h:544: error: syntax error before ‘query’
/usr/include/GL/freeglut_std.h:553: error: syntax error before ‘GLfloat’
/usr/include/GL/freeglut_std.h:554: error: syntax error before ‘glutGetColor’
1.c: In function ‘drawPixmap’:
1.c:77: error: ‘GL_RGB’ undeclared (first use in this function)
1.c:77: error: (Each undeclared identifier is reported only once
1.c:77: error: for each function it appears in.)
1.c:78: error: ‘GL_UNSIGNED_BYTE’ undeclared (first use in this function)
1.c: In function ‘onInit’:
1.c:154: error: ‘GL_UNPACK_ALIGNMENT’ undeclared (first use in this function)
1.c: In function ‘onResize’:
1.c:176: error: ‘GL_PROJECTION’ undeclared (first use in this function)
1.c: In function ‘onDisplay’:
1.c:189: error: ‘GL_COLOR_BUFFER_BIT’ undeclared (first use in this function)
1.c:190: error: ‘GL_FRONT’ undeclared (first use in this function)
zkousel jsem nainstalovat snad vsechny mozne balicky, ktere by s chybou mohli souviset, ale nic se porad nedeje:
freeglut3, freeglut3-dev, glutg3, glutg3-dev, libglut3 a libglut3-dev.

Tak dik za pripadne namety
Název: Preklad programu vyuzivajici knihovnu GLUT
Přispěvatel: Stepan 18 Června 2006, 11:58:38
Tak nakonec jsem to vyresil. Ackoliv jsem mel nainstalovany i balicek mesa-common-dev, ktery by podle vseho mel obsahovat i soubor /usr/include/GL/GL.h, tak na mem pocitaci chybel (stacilo se poradne podivat do toho vypisu :-]). Takze jsem ten balicek preinstaloval a je to OK.
Název: Preklad programu vyuzivajici knihovnu GLUT
Přispěvatel: mallox 18 Června 2006, 12:10:00
he he..dalsi programator 3d aplikaci :D