[Paraview] Building with OSMesa using CMake does not have the the correct variables.

Magnus Elden magnus_elden at hotmail.com
Wed Aug 24 08:02:22 EDT 2016


I am using the latest PV source as of this date downloaded from the github
repo. I am also using CMake 3.5.2 to build for Visual Studio 2015 on Windows
10.

 

After configuring once I followed the instructions provided here
<http://www.paraview.org/Wiki/Setting_up_a_ParaView_Server#OSMesa_support>
and tried to search for the CMake variable OPENGL_INCLUDE_DIR. However, it
does not show up. I only see the QT version of it: QT_QT OPENGL_INCLUDE_DIR.
I set the option to build qt gui to off and I set VTK_OPENGL_HAS_OSMESA to
true. 

 

Then I tried to look for the libraries libGL and libGLU, but none of those
is to be found inside the OSMesa build directory so I assumed that you are
talking about the standard library files so I left the OPENGL_gl_LIBRARY and
OPENGL_glu_LIBRARY variables alone. I set the osmesa library and include
library to osmesa.lib and to <OSMesa SOURCE DIR>/include and NOT the build
directory. The reason why I am doing this is because I was unable to install
using scons. It configures and builds just fine. What am I doing wrong?

 

These are the osmesa variables:

http://puu.sh/qMzRY/e7d481b134.png

 

These are the OPENGL variables:

http://puu.sh/qMzWI/187cf17769.png

 

And these are some of the errors I get when I build it like this:


Severity

Code

Description

Project

File

Line

Suppression State


Error

C2440

'static_cast': cannot convert from 'OSMESAproc' to
'vtkOpenGLExtensionManagerFunctionPointer'

vtkRenderingOpenGL

D:\Projects\Paraview\ParaviewUpdated\ParaviewSource\VTK\Rendering\OpenGL\vtk
OpenGLExtensionManager.cxx

725

 


Error

C2440

'static_cast': cannot convert from 'OSMESAproc' to
'vtkOpenGLExtensionManagerFunctionPointer'

vtkRenderingOpenGL

D:\Projects\Paraview\ParaviewUpdated\ParaviewSource\VTK\Rendering\OpenGL\vtk
OpenGLExtensionManager.cxx

725

 


Error

LNK1104

cannot open file '..\..\..\lib\Debug\vtkRenderingOpenGL-pv5.1.lib'

vtkRenderingContextOpenGL

D:\Projects\Paraview\ParaviewUpdated\ParaviewBuild\VTK\Rendering\ContextOpen
GL\LINK

1

 


Error

LNK1104

cannot open file '..\..\..\lib\Debug\vtkRenderingOpenGL-pv5.1.lib'

vtkRenderingContextOpenGL

D:\Projects\Paraview\ParaviewUpdated\ParaviewBuild\VTK\Rendering\ContextOpen
GL\LINK

1

 


Error

LNK1104

cannot open file '..\..\..\lib\Debug\vtkRenderingOpenGL-pv5.1.lib'

vtkRenderingLIC

D:\Projects\Paraview\ParaviewUpdated\ParaviewBuild\VTK\Rendering\LIC\LINK

1

 


Error

LNK1104

cannot open file '..\..\..\lib\Debug\vtkRenderingOpenGL-pv5.1.lib'

vtkRenderingLIC

D:\Projects\Paraview\ParaviewUpdated\ParaviewBuild\VTK\Rendering\LIC\LINK

1

 


Error

LNK1104

cannot open file '..\..\..\lib\Debug\vtkRenderingOpenGL-pv5.1.lib'

vtkRenderingVolumeOpenGL

D:\Projects\Paraview\ParaviewUpdated\ParaviewBuild\VTK\Rendering\VolumeOpenG
L\LINK

1

 


Error

LNK1104

cannot open file '..\..\..\lib\Debug\vtkRenderingOpenGL-pv5.1.lib'

vtkRenderingVolumeOpenGL

D:\Projects\Paraview\ParaviewUpdated\ParaviewBuild\VTK\Rendering\VolumeOpenG
L\LINK

1

 


Error

LNK1104

cannot open file '..\..\..\lib\Debug\vtkRenderingOpenGL-pv5.1.lib'

vtkRenderingParallel

D:\Projects\Paraview\ParaviewUpdated\ParaviewBuild\VTK\Rendering\Parallel\LI
NK

1

 


Error

LNK1104

cannot open file '..\..\..\lib\Debug\vtkRenderingOpenGL-pv5.1.lib'

vtkRenderingParallel

D:\Projects\Paraview\ParaviewUpdated\ParaviewBuild\VTK\Rendering\Parallel\LI
NK

1

 


Error

LNK1104

cannot open file '..\..\..\lib\Debug\vtkRenderingContextOpenGL-pv5.1.lib'

vtkRenderingGL2PS

D:\Projects\Paraview\ParaviewUpdated\ParaviewBuild\VTK\Rendering\GL2PS\LINK

1

 


Error

LNK1104

cannot open file '..\..\..\lib\Debug\vtkRenderingContextOpenGL-pv5.1.lib'

vtkRenderingGL2PS

D:\Projects\Paraview\ParaviewUpdated\ParaviewBuild\VTK\Rendering\GL2PS\LINK

1

 


Error

LNK1104

cannot open file '..\..\..\lib\Debug\vtkRenderingVolumeOpenGL-pv5.1.lib'

vtkRenderingVolumeAMR

D:\Projects\Paraview\ParaviewUpdated\ParaviewBuild\VTK\Rendering\VolumeAMR\L
INK

1

 

http://puu.sh/qMAIx/d57d40e5a5.png

 

All the OSMesa libraries I got:

http://puu.sh/qMAX3/3dc72dfa9e.png

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160824/9cea9985/attachment.html>


More information about the ParaView mailing list