[vtk-developers] VTK compilation error in FTBitmapGlyph::RenderOpenGL

Kannan U V kannanuv at cshl.edu
Sun Dec 11 21:42:30 EST 2011


Hi,
I am trying to compile VTK 5.8.0 on Ubuntu 10.04

/home/kannanuv/workspace/VTK/Wrapping/vtkWrapPythonInit.c: In function
‘main’:
/home/kannanuv/workspace/VTK/Wrapping/vtkWrapPythonInit.c:100: warning:
ignoring return value of ‘fscanf’, declared with attribute
warn_unused_result
/home/kannanuv/workspace/VTK/Utilities/ftgl/src/FTBitmapGlyphRenderOpenGL.cpp:
In member function ‘void FTBitmapGlyph::RenderOpenGL(const FT_Vector&,
const FTGLRenderContext*)’:
/home/kannanuv/workspace/VTK/Utilities/ftgl/src/FTBitmapGlyphRenderOpenGL.cpp:15:
error: ISO C++ forbids declaration of ‘type name’ with no type
/home/kannanuv/workspace/VTK/Utilities/ftgl/src/FTBitmapGlyphRenderOpenGL.cpp:15:
error: ISO C++ forbids declaration of ‘type name’ with no type
/home/kannanuv/workspace/VTK/Utilities/ftgl/src/FTBitmapGlyphRenderOpenGL.cpp:15:
error: expected primary-expression before ‘const’
/home/kannanuv/workspace/VTK/Utilities/ftgl/src/FTBitmapGlyphRenderOpenGL.cpp:15:
error: expected ‘)’ before ‘const’
/home/kannanuv/workspace/VTK/Utilities/ftgl/src/FTBitmapGlyphRenderOpenGL.cpp:17:
error: ISO C++ forbids declaration of ‘type name’ with no type
/home/kannanuv/workspace/VTK/Utilities/ftgl/src/FTBitmapGlyphRenderOpenGL.cpp:17:
error: ISO C++ forbids declaration of ‘type name’ with no type
/home/kannanuv/workspace/VTK/Utilities/ftgl/src/FTBitmapGlyphRenderOpenGL.cpp:17:
error: expected primary-expression before ‘const’
/home/kannanuv/workspace/VTK/Utilities/ftgl/src/FTBitmapGlyphRenderOpenGL.cpp:17:
error: expected ‘)’ before ‘const’
/home/kannanuv/workspace/VTK/Utilities/ftgl/src/FTBitmapGlyphRenderOpenGL.cpp:20:
error: ISO C++ forbids declaration of ‘type name’ with no type
/home/kannanuv/workspace/VTK/Utilities/ftgl/src/FTBitmapGlyphRenderOpenGL.cpp:20:
error: ISO C++ forbids declaration of ‘type name’ with no type
/home/kannanuv/workspace/VTK/Utilities/ftgl/src/FTBitmapGlyphRenderOpenGL.cpp:20:
error: expected primary-expression before ‘const’
/home/kannanuv/workspace/VTK/Utilities/ftgl/src/FTBitmapGlyphRenderOpenGL.cpp:20:
error: expected ‘)’ before ‘const’
make[2]: ***
[Utilities/ftgl/CMakeFiles/vtkftgl.dir/src/FTBitmapGlyphRenderOpenGL.cpp.o]
Error 1
make[1]: *** [Utilities/ftgl/CMakeFiles/vtkftgl.dir/all] Error 2

I have the libgl1-mesa-dev, libglu1-mesa-dev packages installed.

Please give me pointers how I can solve this compilation error

-- 
Thanks,
Kannan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20111211/7cb90a89/attachment.html>


More information about the vtk-developers mailing list