VTK compilation error in Ubuntu 16.04

Submitted by venkatkrisshna on Fri, 01/14/2022 - 02:19

Hello, I am trying to install LIGGGHTS in Ubuntu 16.04LS. Please help, I have been trying to install it for over 5 weeks. Autoinstall VTK did not work so I manually installed VTK 8.1 with MPI on. I can see the vtk include files and the several vtk library files in my computer. However when I try to compile LIGGGHTS, it gives me the following error -
Creating list of contact models completed.
make[1]: Entering directory '/home/toral/LIGGGHTS-PUBLIC/src/Obj_auto'
Warning: MPICXX compiler is g++-5 but CXX=g++. Thus, setting OMPI_CXX to g++.
Makefile:945: *** 'Could not determine suitable appendix of VTK library with VTK_INC="-I/usr/local/include/vtk-8.1/", VTK_LIB="-L/usr/local/lib/" and VTK_APPENDIX="-8.1"'. Stop.
make[1]: Leaving directory '/home/toral/LIGGGHTS-PUBLIC/src/Obj_auto'
Makefile:106: recipe for target 'auto' failed
make: *** [auto] Error 2
My vtk include files are in usr/local/include/vtk-8.1/ and my vtk library files are in usr/local/lib/. Can you please help? I have been trying to install for over 5 weeks now.

venkatkrisshna | Fri, 01/14/2022 - 19:29

Thank you. I installed using cmake and did sudo apt install LIGGGHTS in the build folder and I am now able to execute LIGGGHTS from src/build. Example works. Thank you.