<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Patrick,<br>
<br>
Your output shows you enabled some gpu specific drivers, and GLX. I
think that is going to screw things up for you. Best to disable all
of them but the ones you specifically need and to explicitly disable
glx.<br>
<br>
Here is how I configured OSMesa for a Cray<br>
<blockquote><tt>../mesa-17.0.2/configure --enable-texture-float
--disable-glx --disable-dri --disable-egl --disable-gles1
--disable-gles2 --disable-gbm --disable-driglx-direct
--disable-xvmc --enable-gallium-osmesa
--with-gallium-drivers=swrast,swr
--prefix=/usr/common/software/ParaView/mesa/17.0.2/</tt></blockquote>
And here is how ParaView is configured on the same system. When
building ParaView with OSMesa the ParaView GUI should be disabled to
prevent window system dependencies(X11, Qt etc). Note that there are
a number of options in play to configure for OSMesa. I've
highlighted them in blue below. This info is also on the Wiki.<br>
<blockquote><tt>#!/bin/bash</tt><br>
<br>
<tt>LIB_EXT=so</tt><br>
<tt>PY_LIB_EXT=so</tt><br>
<tt>GLU_LIB_EXT=so</tt><br>
<tt>MESA_LIB_EXT=so</tt><br>
<br>
<tt>COMP_FLAGS="-fPIC -Ofast -march=native -mtune=native"</tt><br>
<tt>CCOMP=`which gcc`</tt><br>
<tt>CXXCOMP=`which g++`</tt><br>
<tt>FTNCOMP=`which gfortran`</tt><br>
<br>
<tt>export XTPE_LINK_TYPE=dynamic</tt><br>
<br>
<tt>PYTHON=/usr/common/software/ParaView/python/2.7.12</tt><br>
<tt>GLU=/usr/common/software/ParaView/glu/9.0.0/</tt><br>
<tt>BOOST=/usr/common/software/ParaView/boost/1.63.0/</tt><br>
<tt>MESA=/usr/common/software/ParaView/mesa/17.0.2/</tt><br>
<br>
<tt>RCA=/opt/cray/rca/2.1.6_g2c60fbf-2.265/lib64</tt><br>
<tt>ALPS=/opt/cray/alps/6.3.4-2.21/lib64</tt><br>
<tt>XPMEM=/opt/cray/xpmem/2.1.1_gf9c9084-2.38/lib64</tt><br>
<tt>DMAPP=/opt/cray/dmapp/7.1.1-39.37/lib64</tt><br>
<tt>PMI=/opt/cray/pe/pmi/5.0.10-1.0000.11050.0.0.ari/lib64</tt><br>
<tt>UGNI=/opt/cray/ugni/6.0.15-2.2/lib64</tt><br>
<tt>UDREG=/opt/cray/udreg/2.3.2-7.54/lib64</tt><br>
<tt>MPT=/opt/cray/pe/mpt/7.4.4/gni/mpich-gnu/5.1/lib</tt><br>
<br>
<tt>cmake \</tt><br>
<tt> -DCMAKE_C_COMPILER=$CCOMP \</tt><br>
<tt> -DCMAKE_CXX_COMPILER=$CXXCOMP \</tt><br>
<tt> -DCMAKE_Fortran_COMPILER=$FTNCOMP \</tt><br>
<tt> -DCMAKE_BUILD_TYPE=Release \</tt><br>
<tt> -DCMAKE_CXX_FLAGS=$COMP_FLAGS \</tt><br>
<tt> -DCMAKE_C_FLAGS=$COMP_FLAGS \</tt><br>
<tt> -DBUILD_SHARED_LIBS=OFF \</tt><br>
<tt> -DPARAVIEW_ENABLE_PYTHON=ON \</tt><br>
<tt> -DPYTHON_EXECUTABLE=$PYTHON/bin/python \</tt><br>
<tt> -DPYTHON_INCLUDE_DIR=$PYTHON/include/python2.7 \</tt><br>
<tt> -DPYTHON_LIBRARY=$PYTHON/lib/libpython2.7.$PY_LIB_EXT \</tt><br>
<tt> -DPYTHON_UTIL_LIBRARY=/usr/lib64/libutil.$PY_LIB_EXT \</tt><br>
<tt> -DPARAVIEW_FREEZE_PYTHON=OFF \</tt><br>
<tt> -DBUILD_TESTING=OFF \</tt><br>
<tt> <font color="#000099"><b> -DPARAVIEW_BUILD_QT_GUI=OFF \</b></font></tt><font
color="#000099"><b><br>
</b><b><tt> -DCMAKE_X_LIBS="" \</tt></b><b><br>
</b><b><tt> -DX11_LIBRARIES="" \</tt></b><b><br>
</b><b><tt> -DVTK_USE_X=OFF \</tt></b><b><br>
</b><b><tt> -DVTK_OPENGL_HAS_OSMESA=ON \</tt></b><b><br>
</b><b><tt> -DOSMESA_INCLUDE_DIR=$MESA/include \</tt></b><b><br>
</b><b><tt>
-DOSMESA_LIBRARY="$MESA/lib/libOSMesa.$MESA_LIB_EXT;" \</tt></b><b><br>
</b><b><tt> -DOPENGL_INCLUDE_DIR=$MESA/include \</tt></b><b><br>
</b><b><tt>
-DOPENGL_gl_LIBRARY=$MESA/lib/libOSMesa.$MESA_LIB_EXT \</tt></b><b><br>
</b><b><tt> -DOPENGL_glu_LIBRARY=$GLU/lib/libGLU.$GLU_LIB_EXT
\</tt></b><b><br>
</b><b><tt> -DOPENGL_xmesa_INCLUDE_DIR=$MESA/include \</tt></b></font><br>
<tt> -DPARAVIEW_USE_MPI=ON \</tt><br>
<tt> -DMPI_CXX_LIBRARIES="" \</tt><br>
<tt>
-DMPI_C_LIBRARIES="-Wl,--start-group;$MPT/libmpich.$LIB_EXT;$PMI/libpmi.$LIB_EXT;$DMAPP/libdmapp.$LIB_EXT;$MPT/libmpichcxx.$LIB_EXT;$UGNI/libugni.$LIB_EXT;$ALPS/libalpslli.$LIB_EXT;$ALPS/libalpsutil.$LIB_EXT;$RCA/librca.$LIB_EXT;$XPMEM/libxpmem.$LIB_EXT;-Wl,--end-group;"
\</tt><br>
<tt> -DMPI_INCLUDE_PATH=$MPT/../include \</tt><br>
<tt> -DMPIEXEC=`which srun` \</tt><br>
<tt> -DMPI_CXX_LIBRARIES="" \</tt><br>
<tt> -DPARAVIEW_USE_VISITBRIDGE=ON \</tt><br>
<tt> -DBoost_INCLUDE_DIR=$BOOST/include \</tt><br>
<tt> -DVISIT_BUILD_READER_CGNS=OFF \</tt><br>
<tt> -DVISIT_BUILD_READER_Silo=OFF \</tt><br>
<tt> -DVTK_USE_SYSTEM_HDF5=OFF \</tt><br>
<tt> -DPARAVIEW_INSTALL_DEVELOPMENT_FILES=ON \</tt><br>
<tt> $*</tt><br>
</blockquote>
<br>
<br>
<div class="moz-cite-prefix">On 05/15/2017 02:24 AM, Patrick Begou
wrote:<br>
</div>
<blockquote
cite="mid:f84e18ff-61bc-709b-a6a7-81070e94183e@legi.grenoble-inp.fr"
type="cite">Hi Chuck, Hi Burlen
<br>
<br>
Thanks for your reply.
<br>
<br>
I've attached the setup of my mesa installation. I have more
options enabled in my config than in yours. May be too much as
this frontend has no GPU available.
<br>
<br>
I'll try a setup with -DVTK_USE_X=OFF as Burlen suggest, but is it
possible to build paraview GUI with this option ? It is not clear
for me.
<br>
<br>
Patrick
<br>
<br>
prefix: /share/apps/paraview-5.3.0
<br>
exec_prefix: ${prefix}
<br>
libdir: ${exec_prefix}/lib
<br>
includedir: ${prefix}/include
<br>
<br>
OpenGL: yes (ES1: yes ES2: yes)
<br>
<br>
OSMesa: libOSMesa (Gallium)
<br>
<br>
DRI platform: drm
<br>
DRI drivers: i915 i965 nouveau r200 radeon swrast
<br>
DRI driver dir: ${libdir}/dri
<br>
GLX: DRI-based
<br>
<br>
EGL: yes
<br>
EGL platforms: x11 drm
<br>
EGL drivers: builtin:egl_dri2 builtin:egl_dri3
<br>
GBM: yes
<br>
<br>
Vulkan drivers: no
<br>
<br>
llvm: yes
<br>
llvm-config:
/share/apps/paraview-5.3.0/bin/llvm-config
<br>
llvm-version: 4.0.0
<br>
<br>
Gallium drivers: r300 r600 svga swrast
<br>
Gallium st: mesa xvmc
<br>
<br>
HUD extra stats: no
<br>
HUD lmsensors: no
<br>
<br>
Shared libs: yes
<br>
Static libs: no
<br>
Shared-glapi: yes
<br>
<br>
CFLAGS: -g -O2 -Wall -std=c99
-Werror=implicit-function-declaration -Werror=missing-prototypes
-fno-math-errno -fno-trapping-math
<br>
CXXFLAGS: -g -O2 -Wall -fno-math-errno
-fno-trapping-math
<br>
Macros: -D__STDC_LIMIT_MACROS
-D__STDC_CONSTANT_MACROS -D_GNU_SOURCE -DUSE_SSE41
-DUSE_GCC_ATOMIC_BUILTINS -DNDEBUG -DUSE_X86_64_ASM
-DHAVE_XLOCALE_H -DHAVE_SYS_SYSCTL_H -DHAVE_STRTOF -DHAVE_MKOSTEMP
-DHAVE_DLOPEN -DHAVE_POSIX_MEMALIGN -DHAVE_LIBDRM -DGLX_USE_DRM
-DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_TLS
-DHAVE_DRI3 -DENABLE_SHADER_CACHE -DHAVE_MINCORE
-DHAVE_LLVM=0x0400 -DMESA_LLVM_VERSION_PATCH=0
<br>
<br>
LLVM_CFLAGS: -I/share/apps/paraview-5.3.0/include
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS
<br>
LLVM_CXXFLAGS: -I/share/apps/paraview-5.3.0/include
-std=c++11 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS
<br>
LLVM_CPPFLAGS: -I/share/apps/paraview-5.3.0/include
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS
<br>
LLVM_LDFLAGS: -L/share/apps/paraview-5.3.0/lib
<br>
<br>
PYTHON2: python2.7
<br>
<br>
</blockquote>
<br>
</body>
</html>