[vtkusers] Troubles Compiling on SuSE linux

Matt Zumwalt mz108 at york.ac.uk
Mon May 26 11:44:27 EDT 2003


Hi,
    I'm trying to install VTK-4.2.2 but am having some troubles.  I am running 
SuSE Linux 8.1 on a Pentium III. 
    The initial problem I ran into was that cmake could not find the GL and 
GLU libraries.  I am using the mesa implementation that comes with SuSE8.1, 
which includes:
mesa-4.0.3-53
mesasoft-4.0.3-53
mesaglu-4.0.3-53
mesaglut-4.0.3-53

   mesasoft and mesaglu provide the following files:
/usr/X11R6/bin/switch2mesasoft
/usr/lib/GL/libGL.so.1.3.mesasoft
and
/usr/lib/libGLU.so.1
/usr/lib/libGLU.so.1.3
/usr/lib/libMesaGLU.so.3

   Using cmake's 'advanced options', I set all of the GL and GLU library and 
include paths to /usr/lib/
   After this change, I ran make, which seemed to be working until it spit out 
the following:

Building shared library /usr/share/vtk-4.2/VTK-4.2.2/bin/libvtkfreetype.so...
/usr/share/vtk-4.2/VTK-4.2.2/Utilities/ftgl: building default_target
Building dependencies. cmake.depends...
Building object file FTBitmapGlyph.o...
Building object file FTBitmapGlyphRenderOpenGL.o...
In file included from 
/usr/share/vtk-4.2/VTK-4.2.2/Utilities/ftgl/src/FTBitmapGlyphRenderOpenGL.cpp:2:
/usr/share/vtk-4.2/VTK-4.2.2/Utilities/ftgl/src/FTGLgl.h:25:29: GL/gl.h: No 
such file or directory
/usr/share/vtk-4.2/VTK-4.2.2/Utilities/ftgl/src/FTBitmapGlyphRenderOpenGL.cpp: 
In
   member function `void FTBitmapGlyph::RenderOpenGL(const FT_Vector&, const
   FTGLRenderContext*)':
/usr/share/vtk-4.2/VTK-4.2.2/Utilities/ftgl/src/FTBitmapGlyphRenderOpenGL.cpp:15: 
parse
   error before `*' token
/usr/share/vtk-4.2/VTK-4.2.2/Utilities/ftgl/src/FTBitmapGlyphRenderOpenGL.cpp:17: 
parse
   error before `*' token
/usr/share/vtk-4.2/VTK-4.2.2/Utilities/ftgl/src/FTBitmapGlyphRenderOpenGL.cpp:20: 
parse
   error before `*' token
make[5]: *** [FTBitmapGlyphRenderOpenGL.o] Error 1
make[4]: *** [default_target] Error 2
make[3]: *** [default_target_ftgl] Error 2
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_Utilities] Error 2
make: *** [default_target] Error 2



any thoughts?
I ran 3Ddiag and everything seems to be fine.  gears works fine as well.

Thanks,
 Matt Z



More information about the vtkusers mailing list