Installation issues with VTK

Submitted by oarcelus on Wed, 04/14/2021 - 15:22

Hi,

I am trying to install LIGGGTHS. I saw that VTK must be installed with support for MPI. I did it, and when trying to install LIGGGTHS again I get the following errors.

```
Creating list of contact models completed.
"Warning: both CXX and CXX_USR are set, precedence is given to CXX = icpc (CXX_USR = )"
make[1]: Entering directory `/home/LIGGGHTS-PUBLIC-master/src/Obj_auto'
Makefile:940: *** 'Could not determine suitable appendix of VTK library with VTK_INC="-I/home/VTK-8.2.0_bin/include_vtk", VTK_LIB="-L/home/VTK-8.2.0_bin/lib" and VTK_APPENDIX="-VTK_MAJOR_VERSION.VTK_MINOR_VERSION"'. Stop.
make[1]: Leaving directory `/home/LIGGGHTS-PUBLIC-master/src/Obj_auto'
make: *** [auto] Error 2
```

I say in some forum issues that it has something to do with the installation of VTK, but I have not found a definite answer yet.

Could you help me with this issue?

Best regards,

Oier.

mschramm | Wed, 04/14/2021 - 16:24

Hello,
How did you install vtk? Via apt or yum or dnf?
Did you build it yourself? If so where?
Lastly, what do you have in the following lines of your Makefile.user file:
# VTK specific variables
#
# Path that contains the includes (vtkVersion.h)
#VTK_INC_USR=-I/path/to/vtk/include
# Path that contains the VTK libraries
#VTK_LIB_USR=-L/path/to/vtk/lib
# Additional VTK libraries to include
#VTK_ADDLIBS_USR=

jmayer | Thu, 04/15/2021 - 17:38

Hi,
I have the same problem:

Creating list of contact models completed.
make[1]: Verzeichnis „/home/julia/LIGGGHTS-PUBLIC/src/Obj_auto“ wird betreten
Makefile:940: *** 'Could not determine suitable appendix of VTK library with VTK_INC="-I../../lib/vtk/install/include/vtk-8.0", VTK_LIB="-L/home/julia/LIGGGHTS-PUBLIC/vtk/lib" and VTK_APPENDIX="-8.0"'. Schluss.
make[1]: Verzeichnis „/home/julia/LIGGGHTS-PUBLIC/src/Obj_auto“ wird verlassen
make: *** [Makefile:114: auto] Fehler 2

I installed vtk via AUTOINSTALL_VTK = "ON" in Makefile.user.

# VTK specific variables
#
# Path that contains the includes (vtkVersion.h)
VTK_INC_USR= -I/home/jmayer/LIGGGHTS-PUBLIC/vtk/include
# Path that contains the VTK libraries
VTK_LIB_USR= -L/home/jmayer/LIGGGHTS-PUBLIC/vtk/lib
# Additional VTK libraries to include
#VTK_ADDLIBS_USR=

sazeda | Mon, 11/22/2021 - 19:32

Hi,

During the first time installing, I am getting this problem:
"make auto
Creating list of contact models completed.
make[1]: Entering directory '/home/LIGGGHTS-PUBLIC/src/Obj_auto'
Makefile:461: *** 'Could not compile a simple MPI example. Test was done with MPI_INC="" and MPICXX="mpicxx"'. Stop.
make[1]: Leaving directory '/home/LIGGGHTS-PUBLIC/src/Obj_auto'
make: *** [Makefile:114: auto] Error 2"

Please help me to overcome this step.

Thanks