Paraview cannot find ospray modules
I compiled and built paraview 5.5.2 release from source with ospray 1.6.1 without error (using the CMAKE option -DOSPRAY_INSTALL_DIR=$PREFIX/lib/cmake/ospray-1.6.1, where $PREFIX is the directory where I installed paraview and ospray)
I invoke paraview with this script in my $PATH
#! /bin/bash
export PREFIX=/home/beew/opt/paraview
export LD_LIBRARY_PATH=$PREFIX/lib:$LD_LIBRARY_PATH
export PATH=$PREFIX/bin:$PATH
export QT_QPA_PLATFORMTHEME=gtk2
$PREFIX/bin/paraview
to take care of the linking at run time.
But I keep getting
paraview
dlerror() = /usr/local/lib/libembree3.so.3: undefined symbol: _ZN3tbb10interface78internal15task_arena_base24internal_max_concurrencyEPKNS0_10task_arenaE
dlerror() = libospray_module_ispc_native_float.so: cannot open shared object file: No such file or directory
dlerror() = libospray_module_ispc_avx2_float.so: cannot open shared object file: No such file or directory
dlerror() = libospray_module_ispc_avx_float.so: cannot open shared object file: No such file or directory
dlerror() = libospray_module_ispc_sse4_float.so: cannot open shared object file: No such file or directory
#osp: INITIALIZATION ERROR --> could not open module lib ospray_module_ispc
#osp: INITIALIZATION ERROR --> Could not find device of type: default. Make sure you have the correct OSPRay libraries linked
I checked my paraview build directory and $PREFIX/lib there are many libosray modules
libospray_app.a
libospray_common.so
libospray_common.so.0
libospray_common.so.1.6.1
libospray_imgui3d_sg.so
libospray_imgui3d_sg.so.0
libospray_imgui3d_sg.so.1.6.1
libospray_imgui.so
libospray_imgui.so.0
libospray_imgui.so.1.6.1
libospray_imgui_util_sg.so
libospray_imgui_util_sg.so.0
libospray_imgui_util_sg.so.1.6.1
libospray_module_ispc.so
libospray_module_ispc.so.0
libospray_module_ispc.so.1.6.1
libospray_module_mpi.so
libospray_module_mpi.so.0
libospray_module_mpi.so.1.6.1
libospray_mpi_common.so
libospray_mpi_common.so.0
libospray_mpi_common.so.1.6.1
libospray_mpi_maml.so
libospray_mpi_maml.so.0
libospray_mpi_maml.so.1.6.1
libospray_sg.so
libospray_sg.so.0
libospray_sg.so.1.6.1
libospray.so
libospray.so.0
libospray.so.1.6.1
libospray_tfn.so
libospray_tfn.so.0
libospray_tfn.so.1.6.1
but there are no libospray_module_ispc_native_float.so,libospray_module_ispc_avx2_float.so,libospray_module_ispc_avx and libospray_module_ispc_sse4_float.so
So this is not a linking problem, these modules were not built.
I think this might be the reason why some tests involving ospray failed
1714 - vtkRenderingOSPRayCxx-TestOSPRayAMRVolumeRenderer (Failed
1718 - vtkRenderingOSPRayCxx-TestOSPRayImplicits (Faile)
1725 - vtkRenderingOSPRayCxx-TestOSPRayRenderMesh (Timeout)
1730 - vtkRenderingOSPRayCxx-TestGPURayCastCameraInside (Timeout)
1731 - vtkRenderingOSPRayCxx-TestGPURayCastCellData (Timeout)
1732 - vtkRenderingOSPRayCxx-TestGPURayCastCameraInsideSmallSpacing (Timeout)
1733 - vtkRenderingOSPRayCxx-TestGPURayCastMapperBenchmark (Timeout)
1737 - vtkRenderingOSPRayCxx-TestGPURayCastVolumePolyData (Failed)
1738 - vtkRenderingOSPRayCxx-TestGPURayCastVolumeScale (Failed)
1740 - vtkRenderingOSPRayCxx-TestGPUVolumeRayCastMapper (Timeout)
1749 - vtkRenderingOSPRayCxx-TestPathTracerMaterials (Failed)
Any idea?
Thanks.
OS is Ubuntu 16.04 (but I use cmake 3.11 for building since the default cmake 3.5.1 is too old)