-
Notifications
You must be signed in to change notification settings - Fork 3
Offline rendering in ParaView
Alexandre Ancel edited this page Oct 2, 2015
·
14 revisions
ParaView allows to use offline rendering when using mesa (see this link).
To do so, first build mesa:
# Download mesa from: ftp://ftp.freedesktop.org/pub/mesa/ (as of today 11.0.2)
# Extract
# Configure with:
autoreconf -fi
./configure \
CXXFLAGS="-O2 -fPIC -g -DDEFAULT_SOFTWARE_DEPTH_BITS=31" \
CFLAGS="-O2 -fPIC -g -DDEFAULT_SOFTWARE_DEPTH_BITS=31" \
--disable-xvmc \
--disable-glx \
--disable-dri \
--with-dri-drivers="" \
--with-gallium-drivers="swrast" \
--enable-texture-float \
--disable-shared-glapi \
--disable-egl \
--with-egl-platforms="" \
--enable-gallium-osmesa \
--enable-gallium-llvm=yes \
--enable-llvm-shared-libs \
--enable-shared=yes \
--disable-gles1 \
--disable-gles2 \
--prefix=/data/software/install/mesa/11.0.2/gcc-4.9.0
make -j 32 install
Set up the correct library paths and PKG_CONFIG_PATH to the mesa libraries (using module
for example).
Install it in the same dir as osmesa -> easier
Then build glu:
# Download from ftp://ftp.freedesktop.org/pub/mesa/glu/
# Extract
# Configure and build
CFLAGS="-fPIC -O2" CXXFLAGS="-fPIC -O2" ./configure --enable-osmesa=yes --prefix=/data/software/install/mesa/11.0.2/gcc-4.9.0 --enable-shared=yes
make -j 32 install
Set up the correct library paths for Glu.
Then build ParaView:
export MESA_INSTALL_PREFIX=...
cmake /data/software/src/ParaView/ParaView-v4.4.0-source \
-DPARAVIEW_ENABLE_CATALYST=ON -DPARAVIEW_ENABLE_PYTHON=ON \
-DPARAVIEW_INSTALL_DEVELOPMENT_FILES=ON -DPARAVIEW_USE_MPI=ON \
-DPARAVIEW_BUILD_QT_GUI=OFF \
-DVTK_USE_X=OFF \
-DOPENGL_INCLUDE_DIR=${MESA_INSTALL_PREFIX}/include \
-DOPENGL_gl_LIBRARY=${MESA_INSTALL_PREFIX}/lib/libOSMesa.so \
-DOPENGL_glu_LIBRARY=${MESA_INSTALL_PREFIX}/lib/libGLU.so \
-DVTK_OPENGL_HAS_OSMESA=ON \
-DOSMESA_INCLUDE_DIR=${MESA_INSTALL_PREFIX}/include \
-DOSMESA_LIBRARY=${MESA_INSTALL_PREFIX}/lib/libOSMesa.so \
-DCMAKE_INSTALL_PREFIX=/data/software/install/ParaView/4.4.0-mesa/gcc-4.9.0/openmpi-1.8.5