We wanted to try out ANARI in ParaView. According to Jefferson Amstutz of the ANARI working group, Sankhesh Jhaveri had a merge request (https://gitlab.kitware.com/paraview/paraview/-/merge_requests/6573) of ANARI in ParaView. Since the merge didn’t make it into ParaView source, I am using the following to get a version of ParaView with ANARI,
- git clone --recursive https://gitlab.kitware.com/sankhesh/paraview.git
- cd paraview/VTK
- git remote add sankhesh https://gitlab.kitware.com/sankhesh/vtk.git
- git fetch sankhesh
- cd …
- git checkout anari
- git submodule update --init --recursive
Git log of VTK directory is at the following commit
c:\b\pv-anari\paraview\VTK>git log
commit c70ebb8261f6c109473e702e9bf62558acacea07 (HEAD)
Merge: b59db30f40 52b28c916f
Author: Sankhesh Jhaveri sankhesh.jhaveri@kitware.com
Date: Thu Feb 15 14:39:37 2024 +0000
Merge topic 'anari_fixes'
Git log of the ParaView directory is at the following commit
c:\b\pv-anari\paraview>git log
commit fae4d07301bc7bfe15919b93f7258a8d90e0224f (HEAD → anari, origin/anari)
Author: Sankhesh Jhaveri sankhesh.jhaveri@kitware.com
Date: Wed Mar 6 10:22:34 2024 -0500
Fix issue with anari library name string comparison
Using -DPARAVIEW_ENABLE_RAYTRACING:BOOL=ON dependencies from my ParaView Superbuild installation directories and -Danari_DIR compiled from GitHub - KhronosGroup/ANARI-SDK: ANARI Software Development Kit (SDK), I used the following cmake to configure ParaView with ANARI
c:\b\pv-anari\b>cmake …\paraview -G Ninja -DCMAKE_INSTALL_PREFIX=C:\t\pv-anari -DCMAKE_BUILD_TYPE=Release -DPARAVIEW_ENABLE_RAYTRACING:BOOL=ON -Dospray_DIR=C:/b/pvsb/b/install/lib/cmake/ospray-2.7.1 -Dembree_DIR=C:/b/pvsb/b/install/lib/cmake/embree-3.13.1 -Drkcommon_DIR=C:/b/pvsb/b/install/lib/cmake/rkcommon-1.7.0 -DTBB_ROOT=C:/b/pvsb/b/install/lib/cmake/TBB -Dopenvkl_DIR=C:/b/pvsb/b/install/lib/cmake/openvkl-1.0.1 -Danari_DIR=C:/t/anari/lib/cmake/anari-0.10.1
However, I am running into a number of cxx compilation errors. I included some of them below:
C:\b\pv-anari\paraview\VTK\Rendering\ANARI\vtkAnariRendererNode.cxx(219): error C2065: ‘u_char’: undeclared identifier
C:\b\pv-anari\paraview\VTK\Rendering\ANARI\vtkAnariRendererNode.cxx(219): error C2059: syntax error: ‘]’
C:\b\pv-anari\paraview\VTK\Rendering\ANARI\vtkAnariRendererNode.cxx(253): error C2439: ‘vtkAnariRendererNodeInternals::ColorBuffer’: member could not be initialized
C:\b\pv-anari\paraview\VTK\Rendering\ANARI\vtkAnariRendererNode.cxx(219): note: see declaration of ‘vtkAnariRendererNodeInternals::ColorBuffer’
C:\b\pv-anari\paraview\VTK\Rendering\ANARI\vtkAnariRendererNode.cxx(2081): error C2061: syntax error: identifier ‘uint’
C:\b\pv-anari\paraview\VTK\Rendering\ANARI\vtkAnariRendererNode.cxx(2081): error C2143: syntax error: missing ‘;’ before ‘}’
C:\b\pv-anari\paraview\VTK\Rendering\ANARI\vtkAnariRendererNode.cxx(2084): error C2065: ‘frameSize’: undeclared identifier
C:\b\pv-anari\paraview\VTK\Rendering\ANARI\vtkAnariPolyDataMapperNode.cxx(366): error C2976: ‘std::vector’: too few template arguments
C:\b\pv-anari\paraview\VTK\Rendering\ANARI\vtkAnariPolyDataMapperNode.cxx(70): error C2065: ‘u_int’: undeclared identifier
C:\b\pv-anari\paraview\VTK\Rendering\ANARI\vtkAnariPolyDataMapperNode.cxx(388): note: ‘_Ty *std::vector<_Ty,_Alloc>::data(void) noexcept’: cannot convert ‘this’ pointer from ‘std::vector’ to ‘std::vector<_Ty,_Alloc> &’
Am I using a wrong version of ANARI? or not checkout the right ParaView ANARI branch? Any insight into getting ParaView with ANARI compiled is greatly appreciated. TIA
thanks
-simon