make Error 2 when installing VTK

Hi! I have been trying to install VTK on my macbook via the code snippet:


However, I run into a make error

Can someone please help me in resolving this error?
Thank you!

How about including the actual error in your post or screenshot :slight_smile: ?

You may want to use the last release of VTK though, VTK v9.3.0

Thank you so much! using VTK v9.3.0 successfully resolved this error and got me to the point of installation. However, it raised this error message:
Install the project…
– Install configuration: “Debug”
CMake Error at Wrapping/Tools/cmake_install.cmake:41 (file):
file cannot create directory: /include/vtk-9.3. Maybe need administrative
privileges.
Call Stack (most recent call first):
cmake_install.cmake:42 (include)
make: *** [install] Error 1
This is the output before the error message:
[100%] Built target FiltersPoints
[100%] Built target vtkFiltersPoints-hierarchy
[100%] Built target FiltersParallelImaging
[100%] Built target vtkFiltersParallelImaging-hierarchy
[100%] Built target FiltersGeometryPreview
[100%] Built target vtkFiltersGeometryPreview-hierarchy
[100%] Built target FiltersGeneric
[100%] Built target vtkFiltersGeneric-hierarchy
[100%] Built target FiltersFlowPaths
[100%] Built target vtkFiltersFlowPaths-hierarchy
[100%] Built target DomainsChemistryOpenGL2
[100%] Built target vtkDomainsChemistryOpenGL2-hierarchy
Could you please kindly guide me through how to resolve it?

You are currently trying to install system wide, is this really what you want to do ?

I am following the manual VTK installation instruction given by CHASTE (a C++ program) as it is one of the dependencies. The code I am running is taken from their tutorial page with the version changed to 9.3. Here is the code I am running:
wget https://www.vtk.org/files/release/9.1/VTK-9.1.0.tar.gz
tar -zxf VTK-9.1.0.tar.gz
mkdir build_VTK-9.1.0 && cd build_VTK-9.1.0
cmake -DCMAKE_INSTALL_PREFIX=$CHASTE_LIBS …/VTK-9.1.0 && make -j4 && make install
cd …
rm -rf build_VTK-9.1.0 VTK-9.1.0 VTK-9.1.0.tar.gz

is that defined somewhere ?

I am following the manual VTK installation instruction given by CHASTE (a C++ program) as it is one of the dependencies.

Link ?

Yes, there are previous steps where CHASTE_LIBS is defined. Here is the link: Developer Install Guide | Chaste
I am running the code on a Macbook in VScode.

Make sure it is set, because it looks like it is empty right now.