[vtkusers] Building VTK against OSMesa causes syntax errors.
Magnus Elden
magnus_elden at hotmail.com
Thu Aug 25 15:29:27 EDT 2016
I am trying to build VTK with OSMesa instead of QT using Cmake 3.5.2 and
Windows 10.
I downloaded the source from http://www.mesa3d.org/download.html and
compiled it using SCons.
I followed the guide
http://www.paraview.org/Wiki/ParaView/ParaView_And_Mesa_3D#Configuring_ParaV
iew_for_use_with_OSMesa and it generated just fine.
When I build Visual Studio complains about syntax errors:
Severity
Code
Description
Project
File
Line
Suppression State
Error
C2146
syntax error: missing ';' before identifier 'OSMesaGetProcAddress'
vtkRenderingOpenGL2
D:\Libraries\VTK\Source\Rendering\OpenGL2\vtkOSOpenGLRenderWindow.cxx
194
Error (active)
a calling convention may not be followed by a nested declarator
vtkRenderingOpenGL2
d:\Libraries\VTK\Source\Rendering\OpenGL2\vtkOSOpenGLRenderWindow.cxx
50
Error
C2059
syntax error: '('
vtkRenderingOpenGL2
D:\Libraries\VTK\Source\Rendering\OpenGL2\vtkOSOpenGLRenderWindow.cxx
50
Error
C2059
syntax error: '('
vtkRenderingOpenGL2
D:\Libraries\VTK\Source\Rendering\OpenGL2\vtkOSOpenGLRenderWindow.cxx
50
Error
C2065
'OSMesaCreateContextAttribs_func': undeclared identifier
vtkRenderingOpenGL2
D:\Libraries\VTK\Source\Rendering\OpenGL2\vtkOSOpenGLRenderWindow.cxx
192
Error
C2065
'OSMesaCreateContextAttribs_func': undeclared identifier
vtkRenderingOpenGL2
D:\Libraries\VTK\Source\Rendering\OpenGL2\vtkOSOpenGLRenderWindow.cxx
192
Error
C2146
syntax error: missing ';' before identifier 'OSMesaCreateContextAttribs'
vtkRenderingOpenGL2
D:\Libraries\VTK\Source\Rendering\OpenGL2\vtkOSOpenGLRenderWindow.cxx
192
Error
C2146
syntax error: missing ';' before identifier 'OSMesaCreateContextAttribs'
vtkRenderingOpenGL2
D:\Libraries\VTK\Source\Rendering\OpenGL2\vtkOSOpenGLRenderWindow.cxx
192
Error
C2065
'OSMesaCreateContextAttribs_func': undeclared identifier
vtkRenderingOpenGL2
D:\Libraries\VTK\Source\Rendering\OpenGL2\vtkOSOpenGLRenderWindow.cxx
193
Error
C2065
'OSMesaCreateContextAttribs_func': undeclared identifier
vtkRenderingOpenGL2
D:\Libraries\VTK\Source\Rendering\OpenGL2\vtkOSOpenGLRenderWindow.cxx
193
Error
C2146
syntax error: missing ';' before identifier 'OSMesaGetProcAddress'
vtkRenderingOpenGL2
D:\Libraries\VTK\Source\Rendering\OpenGL2\vtkOSOpenGLRenderWindow.cxx
194
I am using Visual Studio 2015 and I have no idea what typedef OSMesaContext
GLAPIENTRY (*OSMesaCreateContextAttribs_func)( const int *attribList,
OSMesaContext sharelist ); actually does, so I am at a loss as to what the
problem is.
The only other potential problem is the fact that I did not have the file
libosmesa.lib. I only had osmesa.lib. Not sure if that will cause a problem
or what the difference is.
Thank you for your help.
Yours,
Magnus Elden
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160825/baaa7f97/attachment.html>
More information about the vtkusers
mailing list