Error building Ligghts

Submitted by manton on Wed, 06/05/2019 - 16:48

Hello,
I have problem when building liggghts. the makefile.user have been changed as mentioned in the installation document. I have not compilled VTK seperately. So i did the following changes in makefile.user:

USE_VTK = "ON"

VTK_INC_USR=-I/home/liggghts/vtk/include

VTK_LIB_USR=-L/home/liggghts/vtk/lib

So this should automatically download and install VTK. But i am getting the following error.

make auto
Creating list of contact models completed.
make[1]: Entering directory '/home/rhewum/LIGGGHTS-PUBLIC/src/Obj_auto'
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/liggghts/vtk/lib" and VTK_APPENDIX="-8.0"'. Stop.
make[1]: Leaving directory '/home/rhewum/LIGGGHTS-PUBLIC/src/Obj_auto'
Makefile:106: recipe for target 'auto' failed
make: *** [auto] Error 2

Any suggestion would be highly appreciated. Thanks in Advance.

sks033 | Thu, 06/06/2019 - 18:22

Hello,

I am a new user and having the same issue with the same error. I do not know if you used those exact phrases, but from what I have read I have found that for the "VTK_INC_USR" variable, its path should lead to the folder/directory containing the file "vtkVersion.h" which it also says in "Makefile.user" commented right above the line. It can also be read from "Makefile.user" that the other one, "VTK_LIB_USR" should be the path that leads to the folder/directory containing the VTK libraries. I have tried to do this by replacing the parts after "-I/" and "-L/" with those paths based on where I found those files on my computer, but have had no luck. If you figure it out please let me know what you did!

Thanks.