[Paraview] Reg. paraview using off

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Wed Jul 29 12:00:03 EDT 2015


Check this out:
http://www.paraview.org/Wiki/ParaView/ParaView_And_Mesa_3D#Configuring_ParaView_for_use_with_OSMesa

You're missing several other flags needed for ParaView to use OSMesa
e.g. VTK_OPENGL_HAS_OSMESA. Also, your CMakeCache.txt shows that
OPENGL_gl_LIBRARY, OPENGL_glu_LIBRARY, OPENGL_INCLUDE_DIR are set to
use system OpenGL. That will cause runtime issues. The Wiki indicates
the values that these should be set to.

On Tue, Jul 28, 2015 at 11:39 PM, Ganesh Vijayakumar
<ganesh.iitm at gmail.com> wrote:
> Hello,
>
>   I'm trying to install paraview using off-screen rendering on a cluster. I
> attached my CMakeCache. It configures just fine. However, I'm unable to
> progress beyond this error during the compile. Could anyone please help?
> I load the required modules first
>
> module load gcc/4.9.2
> module load cmake/3.1.0
> module load python/2.7.9
> module load hdf5/1.8.14
> export HDF5_ROOT=/opt/aci/sw/gcc/hdf5/1.8.14_gcc-4.9.2/
> export PYTHON_INCLUDE_DIRS=/opt/aci/sw/python27/2.7.9_gcc-4.9.2-1/include/
> export
> PYTHON_LIBRARY=/opt/aci/sw/python27/2.7.9_gcc-4.9.2-1/lib/libpython2.7.so
> export PYTHON_EXECUTABLE=/opt/aci/sw/python27/2.7.9_gcc-4.9.2-1/bin/python
>
> Then, I configured as
>
> ccmake ~/software/ParaView-v4.3.1-source
> -DOSMESA_INCLUDE_DIR:PATH=/storage/home/guv106/software/mesa-10.5.4/include
> -DOSMESA_LIBRARY:FILEPATH=/storage/home/guv106/software/mesa-10.5.4/lib/gallium/libOSMesa.so
> -DVTK_USE_X:BOOL=OFF  -DVTK_USE_SYSTEM_HDF5:BOOL=ON
> -DPYTHON_INCLUDE_DIRS=/opt/aci/sw/python27/2.7.9_gcc-4.9.2-1/include/python2.7/
>
> The error during the make process is
>
> [ 11%] Building CXX object
> VTK/Rendering/OpenGL/CMakeFiles/vtkRenderingOpenGL.dir/vtkOSOpenGLRenderWindow.cxx.o
> cd /storage/home/guv106/software/ParaView-v4.3.1-build/VTK/Rendering/OpenGL
> && /usr/bin/c++   -DVTK_IN_VTK -DvtkRenderingO
> penGL_EXPORTS -O3 -DNDEBUG -fPIC
> -I/storage/home/guv106/software/ParaView-v4.3.1-build
> -I/storage/home/guv106/software/mes
> a-10.5.4/include
> -I/storage/home/guv106/software/ParaView-v4.3.1-build/VTK/Imaging/Hybrid
> -I/storage/home/guv106/software/
> ParaView-v4.3.1-source/VTK/Imaging/Hybrid
> -I/storage/home/guv106/software/ParaView-v4.3.1-build/VTK/IO/Image
> -I/storage/ho
> me/guv106/software/ParaView-v4.3.1-source/VTK/IO/Image
> -I/storage/home/guv106/software/ParaView-v4.3.1-build/VTK/Common/Da
> taModel
> -I/storage/home/guv106/software/ParaView-v4.3.1-source/VTK/Common/DataModel
> -I/storage/home/guv106/software/ParaVi
> ew-v4.3.1-build/VTK/Common/Math
> -I/storage/home/guv106/software/ParaView-v4.3.1-source/VTK/Common/Math
> -I/storage/home/guv
> 106/software/ParaView-v4.3.1-build/VTK/Common/Core
> -I/storage/home/guv106/software/ParaView-v4.3.1-source/VTK/Common/Core
> -I/storage/home/guv106/software/ParaView-v4.3.1-build/VTK/Utilities/KWSys
> -I/storage/home/guv106/software/ParaView-v4.3.1-
> source/VTK/Utilities/KWSys
> -I/storage/home/guv106/software/ParaView-v4.3.1-build/VTK/Common/Misc
> -I/storage/home/guv106/so
> ftware/ParaView-v4.3.1-source/VTK/Common/Misc
> -I/storage/home/guv106/software/ParaView-v4.3.1-build/VTK/Common/System -I/s
> torage/home/guv106/software/ParaView-v4.3.1-source/VTK/Common/System
> -I/storage/home/guv106/software/ParaView-v4.3.1-build
> /VTK/Common/Transforms
> -I/storage/home/guv106/software/ParaView-v4.3.1-source/VTK/Common/Transforms
> -I/storage/home/guv106
> /software/ParaView-v4.3.1-build/VTK/Common/ExecutionModel
> -I/storage/home/guv106/software/ParaView-v4.3.1-source/VTK/Commo
> n/ExecutionModel
> -I/storage/home/guv106/software/ParaView-v4.3.1-build/VTK/Utilities/DICOMParser
> -I/storage/home/guv106/so
> ftware/ParaView-v4.3.1-source/VTK/Utilities/DICOMParser
> -I/storage/home/guv106/software/ParaView-v4.3.1-build/VTK/IO/Core
> -I/storage/home/guv106/software/ParaView-v4.3.1-source/VTK/IO/Core
> -I/storage/home/guv106/software/ParaView-v4.3.1-build/VTK/ThirdParty/zlib
> -I/storage/home/guv106/software/ParaView-v4.3.1-source/VTK/ThirdParty/zlib
> -I/storage/home/guv106/software/ParaView-v4.3.1-build/VTK/Utilities/MetaIO/vtkmetaio
> -I/storage/home/guv106/software/ParaView-v4.3.1-build/VTK/Utilities/MetaIO
> -I/storage/home/guv106/software/ParaView-v4.3.1-source/VTK/Utilities/MetaIO
> -I/storage/home/guv106/software/ParaView-v4.3.1-build/VTK/ThirdParty/jpeg
> -I/storage/home/guv106/software/ParaView-v4.3.1-source/VTK/ThirdParty/jpeg
> -I/storage/home/guv106/software/ParaView-v4.3.1-build/VTK/ThirdParty/png
> -I/storage/home/guv106/software/ParaView-v4.3.1-source/VTK/ThirdParty/png
> -I/storage/home/guv106/software/ParaView-v4.3.1-build/VTK/ThirdParty/tiff
> -I/storage/home/guv106/software/ParaView-v4.3.1-source/VTK/ThirdParty/tiff
> -I/storage/home/guv106/software/ParaView-v4.3.1-build/VTK/Imaging/Core
> -I/storage/home/guv106/software/ParaView-v4.3.1-source/VTK/Imaging/Core
> -I/storage/home/guv106/software/ParaView-v4.3.1-build/VTK/Utilities/ParseOGLExt
> -I/storage/home/guv106/software/ParaView-v4.3.1-source/VTK/Utilities/ParseOGLExt
> -I/storage/home/guv106/software/ParaView-v4.3.1-build/VTK/Rendering/Core
> -I/storage/home/guv106/software/ParaView-v4.3.1-source/VTK/Rendering/Core
> -I/storage/home/guv106/software/ParaView-v4.3.1-build/VTK/Common/Color
> -I/storage/home/guv106/software/ParaView-v4.3.1-source/VTK/Common/Color
> -I/storage/home/guv106/software/ParaView-v4.3.1-build/VTK/Filters/Extraction
> -I/storage/home/guv106/software/ParaView-v4.3.1-source/VTK/Filters/Extraction
> -I/storage/home/guv106/software/ParaView-v4.3.1-build/VTK/Filters/Core
> -I/storage/home/guv106/software/ParaView-v4.3.1-source/VTK/Filters/Core
> -I/storage/home/guv106/software/ParaView-v4.3.1-build/VTK/Filters/General
> -I/storage/home/guv106/software/ParaView-v4.3.1-source/VTK/Filters/General
> -I/storage/home/guv106/software/ParaView-v4.3.1-build/VTK/Common/ComputationalGeometry
> -I/storage/home/guv106/software/ParaView-v4.3.1-source/VTK/Common/ComputationalGeometry
> -I/storage/home/guv106/software/ParaView-v4.3.1-build/VTK/Filters/Statistics
> -I/storage/home/guv106/software/ParaView-v4.3.1-source/VTK/Filters/Statistics
> -I/storage/home/guv106/software/ParaView-v4.3.1-build/VTK/Imaging/Fourier
> -I/storage/home/guv106/software/ParaView-v4.3.1-source/VTK/Imaging/Fourier
> -I/storage/home/guv106/software/ParaView-v4.3.1-build/VTK/ThirdParty/alglib
> -I/storage/home/guv106/software/ParaView-v4.3.1-source/VTK/ThirdParty/alglib
> -I/storage/home/guv106/software/ParaView-v4.3.1-build/VTK/Filters/Geometry
> -I/storage/home/guv106/software/ParaView-v4.3.1-source/VTK/Filters/Geometry
> -I/storage/home/guv106/software/ParaView-v4.3.1-build/VTK/Filters/Sources
> -I/storage/ home/guv106/software/ParaView-v4.3.1-source/VTK/Filters/Sources
> -I/storage/home/guv106/software/ParaView-v4.3.1-build/VTK/Utilities/EncodeString
> -I/storage/home/guv106/software/ParaView-v4.3.1-source/VTK/Utilities/EncodeString
> -I/storage/home/guv106/software/ParaView-v4.3.1-build/VTK/Rendering/OpenGL
> -I/storage/home/guv106/software/ParaView-v4.3.1-source/VTK/Rendering/OpenGL
> -fvisibility=hidden -fvisibility-inlines-hidden -o
> CMakeFiles/vtkRenderingOpenGL.dir/vtkOSOpenGLRenderWindow.cxx.o -c
> /storage/home/guv106/software/ParaView-v4.3.1-source/VTK/Rendering/OpenGL/vtkOSOpenGLRenderWindow.cxx
> /storage/home/guv106/software/ParaView-v4.3.1-source/VTK/Rendering/OpenGL/vtkOSOpenGLRenderWindow.cxx:52:
> error: ‘OSMesaContext’ does not name a type
> /storage/home/guv106/software/ParaView-v4.3.1-source/VTK/Rendering/OpenGL/vtkOSOpenGLRenderWindow.cxx:
> In constructor
> ‘vtkOSOpenGLRenderWindowInternal::vtkOSOpenGLRenderWindowInternal(vtkRenderWindow*)’:
> /storage/home/guv106/software/ParaView-v4.3.1-source/VTK/Rendering/OpenGL/vtkOSOpenGLRenderWindow.cxx:64:
> error: ‘class vtkOSOpenGLRenderWindowInternal’ has no member named
> ‘OffScreenContextId’
> /storage/home/guv106/software/ParaView-v4.3.1-source/VTK/Rendering/OpenGL/vtkOSOpenGLRenderWindow.cxx:
> In member function ‘virtual void
> vtkOSOpenGLRenderWindow::SetStereoCapableWindow(int)’:
> /storage/home/guv106/software/ParaView-v4.3.1-source/VTK/Rendering/OpenGL/vtkOSOpenGLRenderWindow.cxx:128:
> error: ‘class vtkOSOpenGLRenderWindowInternal’ has no member named
> ‘OffScreenContextId’
> /storage/home/guv106/software/ParaView-v4.3.1-source/VTK/Rendering/OpenGL/vtkOSOpenGLRenderWindow.cxx:
> In member function ‘void vtkOSOpenGLRenderWindow::CreateOffScreenWindow(int,
> int)’:
> /storage/home/guv106/software/ParaView-v4.3.1-source/VTK/Rendering/OpenGL/vtkOSOpenGLRenderWindow.cxx:185:
> error: ‘class vtkOSOpenGLRenderWindowInternal’ has no member named
> ‘OffScreenContextId’
> /storage/home/guv106/software/ParaView-v4.3.1-source/VTK/Rendering/OpenGL/vtkOSOpenGLRenderWindow.cxx:187:
> error: ‘class vtkOSOpenGLRenderWindowInternal’ has no member named
> ‘OffScreenContextId’
> /storage/home/guv106/software/ParaView-v4.3.1-source/VTK/Rendering/OpenGL/vtkOSOpenGLRenderWindow.cxx:187:
> error: ‘OSMesaCreateContext’ was not declared in this scope
> /storage/home/guv106/software/ParaView-v4.3.1-source/VTK/Rendering/OpenGL/vtkOSOpenGLRenderWindow.cxx:
> In member function ‘void vtkOSOpenGLRenderWindow::DestroyOffScreenWindow()’:
>
>
> ganesh
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>


More information about the ParaView mailing list