Hi all, after some changes in the general makefile (so that it tries to build loch), here's the result... (in the attachment). I'm trying with latest version... thierrygonon a écrit :
Hi all,
sorry for coming back on an old topic... I've installed vtk as described, and tried to compile latest therion, including loch, with the indicated changes, but it doesn't work. In the log file (see attachments), it seems that it didn't even try to compile Loch... Any idea ?
Thanks
Thierry
Martin Sluka a écrit :
This one according m.l. works too
m.s.
# PLATFORM MACOSX CXX = c++ CC = cc VTKPATH = /Users/confero_4/Development/VTKBin VTKINCLUDEPATH = $(VTKPATH)/include/vtk-5.4 VTKLIBPATH = $(VTKPATH)/lib/vtk-5.4 VTKLIBS = -lvtkHybrid -lvtkImaging -lvtkIO -lvtkGraphics -lvtkFiltering -lvtkCommon -lvtkjpeg -lvtkpng -lvtkzlib -lvtksys -lfreetype -lGLU -lGL POBJECTS = getline.o CXXPFLAGS = -W -Wall -DLXMACOSX $(shell wx-config --cxxflags) -I$(VTKINCLUDEPATH) -Wno-deprecated -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 CCPFLAGS = -W -Wall -DLXMACOSX $(shell wx-config --cflags) -I/usr/X11R6/include LXLIBDIR = PLIBS = -lz -L/usr/X11R6/lib $(shell wx-config --libs --gl-libs) -L$(VTKLIBPATH) $(VTKLIBS) POSTMAKE = cp -f ./loch ./loch.app/Contents/MacOS STRIPFLAG =
# PLATFORM ENDCONFIG
_______________________________________________ Therion mailing list Therion@speleo.sk http://mailman.speleo.sk/mailman/listinfo/therion
------------------------------------------------------------------------
_______________________________________________ Therion mailing list Therion@speleo.sk http://mailman.speleo.sk/mailman/listinfo/therion
cc -c -Wall -D_GNU_SOURCE -DLOCH -O2 -o lxTR.o lxTR.c In file included from lxTR.c:42: lxTR.h:92:19: error: GL/gl.h: No such file or directory lxTR.h:93:20: error: GL/glu.h: No such file or directory In file included from lxTR.c:42: lxTR.h:136: error: parse error before 'GLint' lxTR.h:138: error: parse error before 'GLenum' lxTR.h:142: error: parse error before 'GLint' lxTR.h:144: error: parse error before 'GLenum' lxTR.h:151: error: parse error before 'trGet' lxTR.h:151: warning: type defaults to 'int' in declaration of 'trGet' lxTR.h:151: warning: data definition has no type or storage class lxTR.h:155: error: parse error before 'GLdouble' lxTR.h:160: error: parse error before 'GLdouble' lxTR.h:165: error: parse error before 'GLdouble' lxTR.h:174: error: parse error before 'GLfloat' lxTR.c:56: error: parse error before 'GLint' lxTR.c:56: warning: no semicolon at end of struct or union lxTR.c:57: warning: type defaults to 'int' in declaration of 'ImageFormat' lxTR.c:57: warning: type defaults to 'int' in declaration of 'ImageType' lxTR.c:57: warning: data definition has no type or storage class lxTR.c:58: error: parse error before '*' token lxTR.c:58: warning: type defaults to 'int' in declaration of 'ImageBuffer' lxTR.c:58: warning: data definition has no type or storage class lxTR.c:61: error: parse error before 'TileWidth' lxTR.c:61: warning: type defaults to 'int' in declaration of 'TileWidth' lxTR.c:61: warning: type defaults to 'int' in declaration of 'TileHeight' lxTR.c:61: warning: data definition has no type or storage class lxTR.c:62: error: parse error before 'TileWidthNB' lxTR.c:62: warning: type defaults to 'int' in declaration of 'TileWidthNB' lxTR.c:62: warning: type defaults to 'int' in declaration of 'TileHeightNB' lxTR.c:62: warning: data definition has no type or storage class lxTR.c:63: error: parse error before 'TileBorder' lxTR.c:63: warning: type defaults to 'int' in declaration of 'TileBorder' lxTR.c:63: warning: data definition has no type or storage class lxTR.c:64: error: parse error before 'TileFormat' lxTR.c:64: warning: type defaults to 'int' in declaration of 'TileFormat' lxTR.c:64: warning: type defaults to 'int' in declaration of 'TileType' lxTR.c:64: warning: data definition has no type or storage class lxTR.c:65: error: parse error before '*' token lxTR.c:65: warning: type defaults to 'int' in declaration of 'TileBuffer' lxTR.c:65: warning: data definition has no type or storage class lxTR.c:68: error: parse error before 'Perspective' lxTR.c:68: warning: type defaults to 'int' in declaration of 'Perspective' lxTR.c:68: warning: data definition has no type or storage class lxTR.c:69: error: parse error before 'Left' lxTR.c:69: warning: type defaults to 'int' in declaration of 'Left' lxTR.c:69: warning: data definition has no type or storage class lxTR.c:70: error: parse error before 'Right' lxTR.c:70: warning: type defaults to 'int' in declaration of 'Right' lxTR.c:70: warning: data definition has no type or storage class lxTR.c:71: error: parse error before 'Bottom' lxTR.c:71: warning: type defaults to 'int' in declaration of 'Bottom' lxTR.c:71: warning: data definition has no type or storage class lxTR.c:72: error: parse error before 'Top' lxTR.c:72: warning: type defaults to 'int' in declaration of 'Top' lxTR.c:72: warning: data definition has no type or storage class lxTR.c:73: error: parse error before 'Near' lxTR.c:73: warning: type defaults to 'int' in declaration of 'Near' lxTR.c:73: warning: data definition has no type or storage class lxTR.c:74: error: parse error before 'Far' lxTR.c:74: warning: type defaults to 'int' in declaration of 'Far' lxTR.c:74: warning: data definition has no type or storage class lxTR.c:78: error: parse error before 'Rows' lxTR.c:78: warning: type defaults to 'int' in declaration of 'Rows' lxTR.c:78: warning: type defaults to 'int' in declaration of 'Columns' lxTR.c:78: warning: data definition has no type or storage class lxTR.c:79: error: parse error before 'CurrentTile' lxTR.c:79: warning: type defaults to 'int' in declaration of 'CurrentTile' lxTR.c:79: warning: data definition has no type or storage class lxTR.c:80: error: parse error before 'CurrentTileWidth' lxTR.c:80: warning: type defaults to 'int' in declaration of 'CurrentTileWidth' lxTR.c:80: warning: type defaults to 'int' in declaration of 'CurrentTileHeight' lxTR.c:80: warning: data definition has no type or storage class lxTR.c:81: error: parse error before 'CurrentRow' lxTR.c:81: warning: type defaults to 'int' in declaration of 'CurrentRow' lxTR.c:81: warning: type defaults to 'int' in declaration of 'CurrentColumn' lxTR.c:81: warning: data definition has no type or storage class lxTR.c:83: error: parse error before 'ViewportSave' lxTR.c:83: warning: type defaults to 'int' in declaration of 'ViewportSave' lxTR.c:83: warning: data definition has no type or storage class lxTR.c:84: error: parse error before '}' token lxTR.c: In function 'Setup': lxTR.c:96: error: dereferencing pointer to incomplete type lxTR.c:96: error: dereferencing pointer to incomplete type lxTR.c:96: error: dereferencing pointer to incomplete type lxTR.c:96: error: dereferencing pointer to incomplete type lxTR.c:97: error: dereferencing pointer to incomplete type lxTR.c:97: error: dereferencing pointer to incomplete type lxTR.c:97: error: dereferencing pointer to incomplete type lxTR.c:97: error: dereferencing pointer to incomplete type lxTR.c:98: error: dereferencing pointer to incomplete type lxTR.c: In function 'trNew': lxTR.c:108: error: invalid application of 'sizeof' to incomplete type 'TRcontext' lxTR.c:110: error: dereferencing pointer to incomplete type lxTR.c:111: error: dereferencing pointer to incomplete type lxTR.c:112: error: dereferencing pointer to incomplete type lxTR.c:113: error: dereferencing pointer to incomplete type lxTR.c:114: error: dereferencing pointer to incomplete type lxTR.c: At top level: lxTR.c:128: error: parse error before 'GLint' lxTR.c: In function 'trTileSize': lxTR.c:130: error: 'tr' undeclared (first use in this function) lxTR.c:130: error: (Each undeclared identifier is reported only once lxTR.c:130: error: for each function it appears in.) lxTR.c:139: error: 'border' undeclared (first use in this function) lxTR.c:140: error: 'width' undeclared (first use in this function) lxTR.c:141: error: 'height' undeclared (first use in this function) lxTR.c: At top level: lxTR.c:149: error: parse error before 'GLenum' lxTR.c: In function 'trTileBuffer': lxTR.c:151: error: 'tr' undeclared (first use in this function) lxTR.c:154: error: 'format' undeclared (first use in this function) lxTR.c:155: error: 'type' undeclared (first use in this function) lxTR.c:156: error: 'image' undeclared (first use in this function) lxTR.c: At top level: lxTR.c:161: error: parse error before 'GLint' lxTR.c: In function 'trImageSize': lxTR.c:163: error: 'tr' undeclared (first use in this function) lxTR.c:166: error: 'width' undeclared (first use in this function) lxTR.c:167: error: 'height' undeclared (first use in this function) lxTR.c: At top level: lxTR.c:172: error: parse error before 'GLenum' lxTR.c: In function 'trImageBuffer': lxTR.c:174: error: 'tr' undeclared (first use in this function) lxTR.c:177: error: 'format' undeclared (first use in this function) lxTR.c:178: error: 'type' undeclared (first use in this function) lxTR.c:179: error: 'image' undeclared (first use in this function) lxTR.c: At top level: lxTR.c:183: error: parse error before 'trGet' lxTR.c:184: warning: return type defaults to 'int' lxTR.c: In function 'trGet': lxTR.c:190: error: dereferencing pointer to incomplete type lxTR.c:192: error: dereferencing pointer to incomplete type lxTR.c:194: error: dereferencing pointer to incomplete type lxTR.c:196: error: dereferencing pointer to incomplete type lxTR.c:198: error: dereferencing pointer to incomplete type lxTR.c:200: error: dereferencing pointer to incomplete type lxTR.c:202: error: dereferencing pointer to incomplete type lxTR.c:204: error: dereferencing pointer to incomplete type lxTR.c:207: error: dereferencing pointer to incomplete type lxTR.c:209: error: dereferencing pointer to incomplete type lxTR.c:212: error: dereferencing pointer to incomplete type lxTR.c:214: error: dereferencing pointer to incomplete type lxTR.c:216: error: dereferencing pointer to incomplete type lxTR.c:218: error: 'GLint' undeclared (first use in this function) lxTR.c:218: error: parse error before 'tr' lxTR.c: In function 'trRowOrder': lxTR.c:231: error: dereferencing pointer to incomplete type lxTR.c: At top level: lxTR.c:236: error: parse error before 'GLdouble' lxTR.c: In function 'trOrtho': lxTR.c:240: error: 'tr' undeclared (first use in this function) lxTR.c:243: error: 'GL_FALSE' undeclared (first use in this function) lxTR.c:244: error: 'left' undeclared (first use in this function) lxTR.c:245: error: 'right' undeclared (first use in this function) lxTR.c:246: error: 'bottom' undeclared (first use in this function) lxTR.c:247: error: 'top' undeclared (first use in this function) lxTR.c:248: error: 'zNear' undeclared (first use in this function) lxTR.c:249: error: 'zFar' undeclared (first use in this function) lxTR.c: At top level: lxTR.c:254: error: parse error before 'GLdouble' lxTR.c: In function 'trFrustum': lxTR.c:258: error: 'tr' undeclared (first use in this function) lxTR.c:261: error: 'GL_TRUE' undeclared (first use in this function) lxTR.c:262: error: 'left' undeclared (first use in this function) lxTR.c:263: error: 'right' undeclared (first use in this function) lxTR.c:264: error: 'bottom' undeclared (first use in this function) lxTR.c:265: error: 'top' undeclared (first use in this function) lxTR.c:266: error: 'zNear' undeclared (first use in this function) lxTR.c:267: error: 'zFar' undeclared (first use in this function) lxTR.c: At top level: lxTR.c:272: error: parse error before 'GLdouble' lxTR.c: In function 'trPerspective': lxTR.c:275: error: 'GLdouble' undeclared (first use in this function) lxTR.c:275: error: parse error before 'xmin' lxTR.c:276: error: 'ymax' undeclared (first use in this function) lxTR.c:276: error: 'zNear' undeclared (first use in this function) lxTR.c:276: error: 'fovy' undeclared (first use in this function) lxTR.c:277: error: 'ymin' undeclared (first use in this function) lxTR.c:278: error: 'xmin' undeclared (first use in this function) lxTR.c:278: error: 'aspect' undeclared (first use in this function) lxTR.c:279: error: 'xmax' undeclared (first use in this function) lxTR.c:280: error: 'tr' undeclared (first use in this function) lxTR.c:280: error: 'zFar' undeclared (first use in this function) lxTR.c: In function 'trBeginTile': lxTR.c:286: error: 'GLint' undeclared (first use in this function) lxTR.c:286: error: parse error before 'matrixMode' lxTR.c:288: error: 'GLdouble' undeclared (first use in this function) lxTR.c:293: error: dereferencing pointer to incomplete type lxTR.c:296: warning: implicit declaration of function 'glGetIntegerv' lxTR.c:296: error: 'GL_VIEWPORT' undeclared (first use in this function) lxTR.c:296: error: dereferencing pointer to incomplete type lxTR.c:300: error: dereferencing pointer to incomplete type lxTR.c:301: error: dereferencing pointer to incomplete type lxTR.c:301: error: dereferencing pointer to incomplete type lxTR.c:301: error: dereferencing pointer to incomplete type lxTR.c:302: error: dereferencing pointer to incomplete type lxTR.c:302: error: dereferencing pointer to incomplete type lxTR.c:302: error: dereferencing pointer to incomplete type lxTR.c:304: error: dereferencing pointer to incomplete type lxTR.c:305: error: dereferencing pointer to incomplete type lxTR.c:305: error: dereferencing pointer to incomplete type lxTR.c:305: error: dereferencing pointer to incomplete type lxTR.c:305: error: dereferencing pointer to incomplete type lxTR.c:306: error: dereferencing pointer to incomplete type lxTR.c:306: error: dereferencing pointer to incomplete type lxTR.c:306: error: dereferencing pointer to incomplete type lxTR.c:315: error: 'border' undeclared (first use in this function) lxTR.c:315: error: dereferencing pointer to incomplete type lxTR.c:318: error: dereferencing pointer to incomplete type lxTR.c:318: error: dereferencing pointer to incomplete type lxTR.c:319: error: 'tileHeight' undeclared (first use in this function) lxTR.c:319: error: dereferencing pointer to incomplete type lxTR.c:321: error: dereferencing pointer to incomplete type lxTR.c:321: error: dereferencing pointer to incomplete type lxTR.c:321: error: dereferencing pointer to incomplete type lxTR.c:323: error: dereferencing pointer to incomplete type lxTR.c:323: error: dereferencing pointer to incomplete type lxTR.c:324: error: 'tileWidth' undeclared (first use in this function) lxTR.c:324: error: dereferencing pointer to incomplete type lxTR.c:326: error: dereferencing pointer to incomplete type lxTR.c:326: error: dereferencing pointer to incomplete type lxTR.c:326: error: dereferencing pointer to incomplete type lxTR.c:329: error: dereferencing pointer to incomplete type lxTR.c:330: error: dereferencing pointer to incomplete type lxTR.c:332: warning: implicit declaration of function 'glViewport' lxTR.c:335: error: 'GL_MATRIX_MODE' undeclared (first use in this function) lxTR.c:335: error: 'matrixMode' undeclared (first use in this function) lxTR.c:336: warning: implicit declaration of function 'glMatrixMode' lxTR.c:336: error: 'GL_PROJECTION' undeclared (first use in this function) lxTR.c:337: warning: implicit declaration of function 'glLoadIdentity' lxTR.c:340: error: 'left' undeclared (first use in this function) lxTR.c:340: error: dereferencing pointer to incomplete type lxTR.c:340: error: dereferencing pointer to incomplete type lxTR.c:340: error: dereferencing pointer to incomplete type lxTR.c:341: error: dereferencing pointer to incomplete type lxTR.c:341: error: dereferencing pointer to incomplete type lxTR.c:341: error: dereferencing pointer to incomplete type lxTR.c:342: error: 'right' undeclared (first use in this function) lxTR.c:342: error: dereferencing pointer to incomplete type lxTR.c:342: error: dereferencing pointer to incomplete type lxTR.c:342: error: dereferencing pointer to incomplete type lxTR.c:343: error: 'bottom' undeclared (first use in this function) lxTR.c:343: error: dereferencing pointer to incomplete type lxTR.c:343: error: dereferencing pointer to incomplete type lxTR.c:343: error: dereferencing pointer to incomplete type lxTR.c:344: error: dereferencing pointer to incomplete type lxTR.c:344: error: dereferencing pointer to incomplete type lxTR.c:344: error: dereferencing pointer to incomplete type lxTR.c:345: error: 'top' undeclared (first use in this function) lxTR.c:345: error: dereferencing pointer to incomplete type lxTR.c:345: error: dereferencing pointer to incomplete type lxTR.c:345: error: dereferencing pointer to incomplete type lxTR.c:347: error: dereferencing pointer to incomplete type lxTR.c:348: warning: implicit declaration of function 'glFrustum' lxTR.c:348: error: dereferencing pointer to incomplete type lxTR.c:348: error: dereferencing pointer to incomplete type lxTR.c:350: warning: implicit declaration of function 'glOrtho' lxTR.c:350: error: dereferencing pointer to incomplete type lxTR.c:350: error: dereferencing pointer to incomplete type lxTR.c: In function 'trEndTile': lxTR.c:360: error: 'GLint' undeclared (first use in this function) lxTR.c:360: error: parse error before 'prevRowLength' lxTR.c:368: warning: implicit declaration of function 'glFinish' lxTR.c:371: error: 'GL_PACK_ROW_LENGTH' undeclared (first use in this function) lxTR.c:371: error: 'prevRowLength' undeclared (first use in this function) lxTR.c:372: error: 'GL_PACK_SKIP_ROWS' undeclared (first use in this function) lxTR.c:372: error: 'prevSkipRows' undeclared (first use in this function) lxTR.c:373: error: 'GL_PACK_SKIP_PIXELS' undeclared (first use in this function) lxTR.c:373: error: 'prevSkipPixels' undeclared (first use in this function) lxTR.c:376: error: dereferencing pointer to incomplete type lxTR.c:377: error: parse error before 'srcX' lxTR.c:381: warning: implicit declaration of function 'glReadPixels' lxTR.c:381: error: 'srcX' undeclared (first use in this function) lxTR.c:381: error: 'srcY' undeclared (first use in this function) lxTR.c:381: error: 'srcWidth' undeclared (first use in this function) lxTR.c:381: error: 'srcHeight' undeclared (first use in this function) lxTR.c:382: error: dereferencing pointer to incomplete type lxTR.c:382: error: dereferencing pointer to incomplete type lxTR.c:382: error: dereferencing pointer to incomplete type lxTR.c:385: error: dereferencing pointer to incomplete type lxTR.c:386: error: parse error before 'srcX' lxTR.c:394: warning: implicit declaration of function 'glPixelStorei' lxTR.c:394: error: dereferencing pointer to incomplete type lxTR.c:395: error: 'destY' undeclared (first use in this function) lxTR.c:396: error: 'destX' undeclared (first use in this function) lxTR.c:401: error: dereferencing pointer to incomplete type lxTR.c:401: error: dereferencing pointer to incomplete type lxTR.c:401: error: dereferencing pointer to incomplete type lxTR.c:411: error: dereferencing pointer to incomplete type lxTR.c:412: error: dereferencing pointer to incomplete type lxTR.c:412: error: dereferencing pointer to incomplete type lxTR.c:412: error: dereferencing pointer to incomplete type lxTR.c:414: error: dereferencing pointer to incomplete type lxTR.c:414: error: dereferencing pointer to incomplete type lxTR.c:415: error: dereferencing pointer to incomplete type lxTR.c:415: error: dereferencing pointer to incomplete type lxTR.c:416: error: dereferencing pointer to incomplete type lxTR.c: At top level: lxTR.c:428: error: parse error before 'GLfloat' lxTR.c: In function 'trRasterPos3f': lxTR.c:430: error: 'tr' undeclared (first use in this function) lxTR.c:432: warning: implicit declaration of function 'glRasterPos3f' lxTR.c:432: error: 'x' undeclared (first use in this function) lxTR.c:432: error: 'y' undeclared (first use in this function) lxTR.c:432: error: 'z' undeclared (first use in this function) lxTR.c:435: error: 'GLdouble' undeclared (first use in this function) lxTR.c:435: error: parse error before 'modelview' lxTR.c:436: error: 'GLint' undeclared (first use in this function) lxTR.c:440: warning: implicit declaration of function 'glGetDoublev' lxTR.c:440: error: 'GL_MODELVIEW_MATRIX' undeclared (first use in this function) lxTR.c:440: error: 'modelview' undeclared (first use in this function) lxTR.c:441: error: 'GL_PROJECTION_MATRIX' undeclared (first use in this function) lxTR.c:441: error: 'proj' undeclared (first use in this function) lxTR.c:442: error: 'viewport' undeclared (first use in this function) lxTR.c:448: warning: implicit declaration of function 'gluProject' lxTR.c:448: error: 'winX' undeclared (first use in this function) lxTR.c:448: error: 'winY' undeclared (first use in this function) lxTR.c:448: error: 'winZ' undeclared (first use in this function) lxTR.c:451: error: 'GL_MODELVIEW' undeclared (first use in this function) lxTR.c:452: warning: implicit declaration of function 'glPushMatrix' lxTR.c:454: error: 'GL_PROJECTION' undeclared (first use in this function) lxTR.c:459: error: 'GLfloat' undeclared (first use in this function) lxTR.c:463: error: 'GLubyte' undeclared (first use in this function) lxTR.c:463: error: parse error before 'bitmap' lxTR.c:464: warning: implicit declaration of function 'glBitmap' lxTR.c:464: error: parse error before 'winX' lxTR.c:468: warning: implicit declaration of function 'glPopMatrix' lxTR.c: At top level: lxTR.c:477: error: parse error before '}' token make[1]: *** [lxTR.o] Error 1 make: *** [loch/loch] Error 2