Please help! LIGGGHTS compilation for CFDEM.

Submitted by Zsang on Thu, 02/06/2025 - 14:43

Hello everyone,

I would like to install CFDEM coupling in our university cluster, but the compilation of LIGGGHTS with vtk has stuck me for several months.
Everytime I run 'cfdemComp', the error occurs:

make[1]: Entering directory '/rwthfs/rz/cluster/home/es253464/DCS/LIGGGHTS/LIGGGHTS-PUBLIC/src/Obj_auto'
Makefile:943: *** 'Could not determine suitable appendix of VTK library with VTK_INC="/rwthfs/rz/cluster/home/es253464/DCS/vtk-install/include/vtk-6.3", VTK_LIB="/rwthfs/rz/cluster/home/es253464/DCS/vtk-install/lib" and VTK_APPENDIX="-VTK_MAJOR_VERSION.VTK_MINOR_VERSION"'. Stop.
make[1]: Leaving directory '/rwthfs/rz/cluster/home/es253464/DCS/LIGGGHTS/LIGGGHTS-PUBLIC/src/Obj_auto'
make: *** [Makefile.shlib:69: auto] Error 2

I know this is a very common problem. I looked through a lot of discussions in Forum. Therefore, I made my modification.

In the environement variable (.bashrc), I added the path as following:
export VTK_DIR=/rwthfs/rz/cluster/home/es253464/DCS/vtk-install/lib/cmake/vtk-6.3
export PATH=/rwthfs/rz/cluster/home/es253464/DCS/vtk-install/bin:$PATH
export LD_LIBRARY_PATH=/rwthfs/rz/cluster/home/es253464/DCS/vtk-install/lib:$LD_LIBRARY_PATH
export VTK_LIB=/rwthfs/rz/cluster/home/es253464/DCS/vtk-install/lib
export VTK_INC=/rwthfs/rz/cluster/home/es253464/DCS/vtk-install/include/vtk-6.3

In the Makefile.user, I added the path:
# Path that contains the includes (vtkVersion.h)
VTK_INC_USR=-I/rwthfs/rz/cluster/home/es253464/DCS/vtk-install/include/vtk-6.3
# Path that contains the VTK libraries
VTK_LIB_USR=-L/rwthfs/rz/cluster/home/es253464/DCS/vtk-install/lib
# Additional VTK libraries to include
#VTK_ADDLIBS_USR=
# Appendix to the library names
# In general this is going to be dependent on the version of VTK that you have
# installed. In this case it is going to be detected automatically. In case of
# using a VTK version from a ParaView compilation, the appendix will be equal
# to pv-X.Y where X.Y is the ParaView version.
#VTK_APPENDIX_USR=pv-5.3

And I am sure vtkversion.h file is in this path as following:
bash-4.4$ ls -l $HOME/DCS/vtk-install/include/vtk-6.3/vtkVersion.h
-rw-r--r-- 1 es253464 es253464 2055 Sep 1 2015 /home/es253464/DCS/vtk-install/include/vtk-6.3/vtkVersion.h

I can see this file, but no matter how I try, the make_auto.log shows:
Catastrophic error: cannot open source file "/rwthfs/rz/cluster/home/es253464/DCS/vtk-install/include/vtk-6.3": is a directory
/tmp/liggghtscompile.tmp(1): error #2379: cannot open source file "vtkVersion.h"
#include

I attached the make_auto.log. We have been stuck by this problem for a really long time. Could anyone please give me some advice? I would sincerely appreciate your help.

AttachmentSize
Image icon make_auto_log.jpg110.31 KB