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

Kannan U V kannanuv at cshl.edu
Mon Dec 12 01:00:54 EST 2011


Never mind.. my GL headers where zero sized files. Copying the right files
to include directory solved the problem.

On Sun, Dec 11, 2011 at 9:42 PM, Kannan U V <kannanuv at cshl.edu> wrote:

> 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
>



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


More information about the vtk-developers mailing list