[Paraview] Paraview with osmesa cmake issue

Shawn Waldon shawn.waldon at kitware.com
Mon Aug 15 16:40:36 EDT 2016


Hi Chris,

What are you passing in for $*?  CMake, when run in a directory without a
CMakeCache file interprets the current directory as the build directory and
its last (non -ed) argument as the source directory.

HTH,
Shawn

On Mon, Aug 15, 2016 at 4:34 PM, Christopher Neal <chrisneal at snumerics.com>
wrote:

> Hi,
>
> I’m trying to compile a version of Paraview that uses osmesa. I downloaded
> the ParaView soruce, and I’m following the directions from:
> http://www.paraview.org/Wiki/ParaView/ParaView_And_Mesa_3D
>
>
>
> The tutorial gives a sample bash script for compiling with mesa. The only
> trouble that I’m having is that I don’t quite understand how to write a
> cmake shell script. I gave it a shot and it thinks my build directory is my
> source directory. I thought I passed the correct cmake variable to tell
> cmake where my source is and where my build directory are, but it can’t
> understand what I have provided. Below is the shell script that I’m trying
> to execute. Things above the space are my usual build options and things
> below are for Mesa. It can’t seem to understand those first 2 lines under
> ‘cmake’.
>
> Any thoughts on what could be causing this issue?
>
> Shell file:
>
>
> #!/bin/bash
>
>
>
> cmake \
>
>   -DCMAKE_SOURCE_DIR=/home/neal/software/ParaView_osMesa/Source \
>
>   -DCMAKE_INSTALL_PREFIX=/home/neal/software/ParaView_osMesa/build \
>
>   -DCMAKE_BUILD_TYPE:STRING=Release \
>
>   -DCMAKE_SKIP_INSTALL_RPATH:BOOL=YES \
>
>   -DBUILD_TESTING:BOOL=OFF \
>
>   -DPARAVIEW_BUILD_QT_GUI:BOOL=OFF \
>
>   -DVTK_RENDERING_BACKEND=OpenGL2 \
>
>   -DPARAVIEW_USE_MPI:BOOL=ON \
>
>   -DPARAVIEW_ENABLE_PYTHON:BOOL=ON \
>
>   -DPARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON \
>
>   -DPARAVIEW_BUILD_CATALYST_ADAPTERS:BOOL=ON \
>
>   -DPARAVIEW_BUILD_PLUGIN_AnalyzeNIfTIIO:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_ArrowGlyph:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_CDIReader:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_EyeDomeLighting:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_GMVReader:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_GeodesicMeasurement:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_H5PartReader:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_InSituExodus:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_MantaView:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_Moments:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_NonOrthogonalSource:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_PacMan:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_PointSprite:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_RGBZView:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_SLACTools:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_SciberQuestToolKit:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_SierraPlotTools:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_StreamingParticles:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_SurfaceLIC:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_UncertaintyRendering:BOOL=FALSE \
>
>   -DPARAVIEW_BUILD_PLUGIN_AcceleratedAlgorithms:BOOL=OFF \
>
>   -DVTK_USE_CXX11_FEATURES:BOOL=ON \
>
>
>
>   -DPARAVIEW_BUILD_QT_GUI=OFF \
>
>   -DVTK_USE_X=OFF \
>
>   -DOPENGL_INCLUDE_DIR=/home/neal/software/Mesa/build/include \
>
>   -DOPENGL_gl_LIBRARY=/home/neal/software/Mesa/build/lib64/libOSMesa.so \
>
>   -DOPENGL_glu_LIBRARY=/home/neal/software/Mesa/build/lib64/libGLU.so \
>
>   -DVTK_OPENGL_HAS_OSMESA=ON \
>
>   -DOSMESA_INCLUDE_DIR=/home/neal/software/Mesa/build/include \
>
>   -DOSMESA_LIBRARY=/home/neal/software/Mesa/build/lib64/libOSMesa.so \
>
>   $*
>
>
>
> make -j20
>
> make -j20 install
>
>
>
> Thank you,
>
> Chris Neal
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160815/c11b02f6/attachment.html>


More information about the ParaView mailing list