On Linux Mint I checked out VTK-Releas branch via GIT and I imported the sub module for VTKm and build it via CMake, ensuring that vtkm and AcceleratorsVTKm are enabled. This is completed successfully. Anyhow, after running “make” and “make install” it does not seem to build the rendering libraries properly.
When I set up a minimal CMake Project and set the VTK_DIR to “/usr/local/lib/cmake/vtk-9.0” and the VTKm_DIR to “/usr/local/lib/cmake/vtk-9.0/vtkm” it doesn’t build with an error message:
/home/david/Documents/minimal/main.cpp:7:10: fatal error: vtkm/rendering/Actor.h: No such file or directory #include <vtkm/rendering/Actor.h> ^~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. CMakeFiles/minimal.dir/build.make:82: recipe for target 'CMakeFiles/minimal.dir/main.cpp.o' failed make: *** [CMakeFiles/minimal.dir/main.cpp.o] Error 1 CMakeFiles/Makefile2:95: recipe for target 'CMakeFiles/minimal.dir/all' failed make: *** [CMakeFiles/minimal.dir/all] Error 2 Makefile:103: recipe for target 'all' failed make: *** [all] Error 2
Since these are all the includes it seems strange that only the Actor.h fails:
#include <vtkm/cont/Initialize.h> #include <vtkm/filter/Contour.h> #include <vtkm/io/reader/VTKDataSetReader.h> #include <vtkm/rendering/Actor.h>
In the src folder pulled via GIT the Actor.h is present, are there any options I’m unaware of for this to be included? Do I have to build VTKm separately and not as a sub module? Building it independently seems to throw other issues at me which I ran into a dead end with, also discussed on here.
Any further information I can provide I’m happy to.