Liggghts vtk install error

Submitted by jamesmcgro on
medvedeg

Hi James,

please check your VTK installation and paths to "include" and "lib" folders in Makefile.user

Wed, 9 May 2018 - 11:49 Permalink
richti83

Your VTK Version is to old. Use 8.0.1
https://www.vtk.org/files/release/8.0/VTK-8.0.1.zip
build with:

#inside vtk source dir
mkdir build
cd build
cmake -DBUILD_TESTING:BOOL=OFF -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX=../install -DModule_vtkIOMPIParallel:BOOL=ON -DVTK_Group_MPI:BOOL=ON -DVTK_Group_Rendering:BOOL=OFF -DVTK_RENDERING_BACKEND:STRING=None -DVTK_USE_X:BOOL=OFF -DModule_vtkIOMPIImage:BOOL=ON -DModule_vtkParallelMPI:BOOL=ON ../
make

than point makefile.user to the right path for new inc and lib.

Wed, 9 May 2018 - 11:53 Permalink
NSalloum

In reply to by richti83

hello richti83,

may you please tell me how to exactly know the src file of the downloaded vtk package as I found out several folders under the name (src), and there are several folders named lib.
Moreover, do I include the name of the file , vtkVersion.h, in the path in the makefile.user?
knowing that when I searched for the vtkVersion.h file, i found it to be in the Common/Core folder! So is that normal?

best wishes

Wed, 24 Oct 2018 - 09:37 Permalink
jamesmcgro

Hi Thanks for your help,
I have installed vtk using the command you have provided but i do not seem to know what path i have to point to and where i point them from. Is this in the makefile.user and if so where in this file do i state the vtk installation path.
Sorry this maybe a stupid question, i am just starting to use this software.

Wed, 9 May 2018 - 15:04 Permalink
arnom

Hi James,

if you are using "make mpi" to compile LIGGGHTS then you will have to specify the correct paths in src/MAKE/Makefile.mpi (look for the VTK_INC and VTK_PATH variables).

Alternatively, I suggest you to use "make auto" to compile LIGGGHTS. In this case you should specify the variables in src/MAKE/Makefile.user where VTK_INC_USR and VTK_LIB_USR should be set according to your local paths.

Kind regards,
Arno

Tue, 15 May 2018 - 15:12 Permalink
Venkataraman

In reply to by arnom

Hi Arnom,

I am very new to LIGGGHTS, I am also facing the same problem as James. I installed VTK via Homebrew in my macOS. I gave the correct path to the vtk include and library files, still I am getting an error saying " Could not compile VTK examples with VTK_INC ....." . My VTK directory is /usr/local/Cellar/vtk/.

My Makefile.user VTK command is

# Path that contains the includes (vtkVersion.h)
VTK_INC_USR=-I/usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1
# Path that contains the VTK libraries
VTK_LIB_USR=-L/usr/local/Cellar/vtk/8.1.1_2/lib

Kindly help me how to overcome this problem.

Thanks in advance.
Mail ID : venkataraman.ashwin16@gmail.com

Wed, 24 Oct 2018 - 17:49 Permalink
jamesmcgro

Hi Thanks,
I added the paths but now a new error arises when using make auto.

make auto
Creating list of contact models completed.
make[1]: Entering directory `/users/3052732/test/LIGGGHTS-PUBLIC-master/src/Obj_auto'
Makefile:815: *** 'Could not obtain VTK_MAJOR_VERSION. As AUTOINSTALL_VTK is not set to "ON" we cannot continue'. St op.
make[1]: Leaving directory `/users/3052732/test/LIGGGHTS-PUBLIC-master/src/Obj_auto'
make: *** [auto] Error 2

Any way of solving this?

Thu, 17 May 2018 - 16:51 Permalink
ljmutue

In reply to by arnom

HI arnom,
i met the same error as James when compiling LIGGGHTS-3.8.0 with command "make auto" :

Creating list of contact models completed.
make[1]: Entering directory `/home/smrhome/lmu/LIGGGHTS/LIGGGHTS-PUBLIC/src/Obj_auto'
Makefile:815: *** 'Could not obtain VTK_MAJOR_VERSION. As AUTOINSTALL_VTK is not set to "ON" we cannot continue'. Stop.
make[1]: Leaving directory `/home/smrhome/lmu/LIGGGHTS/LIGGGHTS-PUBLIC/src/Obj_auto'
make: *** [auto] Error 2

could you please give me some help? Thanks in advance!

Cheers,
lmucfdem

Fri, 29 Jun 2018 - 14:10 Permalink
ljmutue

HI arnom,
i met the same error as James when compiling LIGGGHTS-3.8.0 with command "make auto" :

Creating list of contact models completed.
make[1]: Entering directory `/home/smrhome/lmu/LIGGGHTS/LIGGGHTS-PUBLIC/src/Obj_auto'
Makefile:815: *** 'Could not obtain VTK_MAJOR_VERSION. As AUTOINSTALL_VTK is not set to "ON" we cannot continue'. Stop.
make[1]: Leaving directory `/home/smrhome/lmu/LIGGGHTS/LIGGGHTS-PUBLIC/src/Obj_auto'
make: *** [auto] Error 2

could you please give me some help? Thanks in advance!

Cheers,
lmucfdem

Fri, 29 Jun 2018 - 14:09 Permalink
arnom

In reply to by ljmutue

Hi,
can you provide some further details. What VTK version, how was it installed, what OS, etc.

Thu, 19 Jul 2018 - 09:38 Permalink
mehmetcil

I got the same error:
"In file included from ../dump_atom_vtk.h:49,
from ../dump_atom_vtk.cpp:40:
../dump_vtk.h:48:10: fatal error: vtkSmartPointer.h: No such file or directory
#include
^~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [dump_atom_vtk.o] Error 1
make: *** [mpi] Error 2"

I have installed vtk 8.1.1 in 2017 Macbook (Mac OS Sierra) and updated the paths as:
"VTK_INC = -I/usr/local/Cellar/vtk/8.1.1/include
VTK_PATH = #-L/usr/local/Cellar/vtk/8.1.1/lib
VTK_LIB = "
I did not include a path for VTK_LIB. Can this be the reason of the error?

Thanks

Wed, 15 Aug 2018 - 17:58 Permalink
mhdhassan

Hello respected,
I am trying to install CFDEM coupling on ubuntu 16.04 LTS . installing openfoam-5.x went smoothly. but while compiling cfdem using th command "cfdemCompCFDEMall" generate the following error:-

"rm: cannot remove '/home/iqraa/LIGGGHTS/LIGGGHTS-PUBLIC/src/lmp_auto': No such file or directory
rm -rf Obj_auto MAKE/Makefile.auto.options lmp_auto liblmp_auto.a liblmp_auto.so
rm: cannot remove '/home/iqraa/LIGGGHTS/LIGGGHTS-PUBLIC/src/liblmp_auto.a': No such file or directory
cleaning LIGGGHTS
compiling LIGGGHTS with -j 4
Creating list of contact models completed.
make[1]: Entering directory '/home/iqraa/LIGGGHTS/LIGGGHTS-PUBLIC/src/Obj_auto'
Makefile:815: *** 'Could not obtain VTK_MAJOR_VERSION. As AUTOINSTALL_VTK is not set to "ON" we cannot continue'. Stop.
make[1]: Leaving directory '/home/iqraa/LIGGGHTS/LIGGGHTS-PUBLIC/src/Obj_auto'
Makefile:106: recipe for target 'auto' failed
make: *** [auto] Error 2
make[1]: Entering directory '/home/iqraa/LIGGGHTS/LIGGGHTS-PUBLIC/src/Obj_auto'
Makefile:815: *** 'Could not obtain VTK_MAJOR_VERSION. As AUTOINSTALL_VTK is not set to "ON" we cannot continue'. Stop.
make[1]: Leaving directory '/home/iqraa/LIGGGHTS/LIGGGHTS-PUBLIC/src/Obj_auto'
Makefile.shlib:62: recipe for target 'auto' failed
make: *** [auto] Error 2
"
Could you please help me to go over it ???

Kind Regards,

Mon, 3 Dec 2018 - 14:56 Permalink
naukkarinen

In reply to by mschramm

Manual says: "The minimum version is VTK 5.8, recommended is 6.3. On debian-based systems it is sufficient to run" for the liggghts 3.8.0

Fri, 8 Mar 2019 - 12:45 Permalink
saad2311

Hi everyone ! I'm encountering the same problem in compiling LIGGGHTS. I'm using the version 8.0.1 of VTK and have compiled the VTK using the same commands as mentioned by "richti83". Can anyone send me the debugging instructions. I tried to modify the Make.user_default_patch_1.1 for the "AUTOINSTALL_VTK" but the problem still persists.

Tue, 2 Apr 2019 - 01:36 Permalink
chandra

Hi,

I am trying to compile CFDEM ON centos, but I got the following error.

make[1]: Entering directory `/home/chandra/LIGGGHTS-PUBLIC/src/Obj_auto'
Makefile:815: *** 'Could not obtain VTK_MAJOR_VERSION. As AUTOINSTALL_VTK is not set to "ON" we cannot continue'. Stop.
make[1]: Leaving directory `/home/chandra/LIGGGHTS-PUBLIC/src/Obj_auto'
make: *** [auto] Error 2

Tue, 30 Apr 2019 - 04:52 Permalink
Mishal

Hi Guys

I am getting the below error, can someone please assist?

mimo@mimo-UX21E:~/LIGGGHTS-PUBLIC/src$ make auto
Creating list of contact models completed.
make[1]: Entering directory '/home/mimo/LIGGGHTS-PUBLIC/src/Obj_auto'
Makefile:820: *** 'Could not obtain VTK_MAJOR_VERSION. As AUTOINSTALL_VTK is not set to "ON" we cannot continue'. Stop.
make[1]: Leaving directory '/home/mimo/LIGGGHTS-PUBLIC/src/Obj_auto'
make: *** [Makefile:114: auto] Error 2

Sun, 12 Dec 2021 - 17:59 Permalink
Mishal

Hi Guys

So I managed to get rid of the above error, however now I am getting the below error.
Can someone please assist?

mimo@mimo-UX21E:~/LIGGGHTS-PUBLIC/src$ make auto
Creating list of contact models completed.
make[1]: Entering directory '/home/mimo/LIGGGHTS-PUBLIC/src/Obj_auto'
'Could not compile VTK example. As AUTOINSTALL_VTK is set to "ON". VTK will now be automatically downloaded to ../../lib'
Cloning into '../../lib/vtk/src'...
remote: Enumerating objects: 628647, done.
remote: Counting objects: 100% (19/19), done.
remote: Compressing objects: 100% (19/19), done.
remote: Total 628647 (delta 5), reused 1 (delta 0), pack-reused 628628
Receiving objects: 100% (628647/628647), 224.48 MiB | 1.76 MiB/s, done.
Resolving deltas: 100% (482958/482958), done.
Updating files: 100% (19518/19518), done.
VTK has been downloaded and will be compiled now. This can take several minutes.
Makefile:808: *** 'Compilation of vtk failed. Please install it manually'. Stop.
make[1]: Leaving directory '/home/mimo/LIGGGHTS-PUBLIC/src/Obj_auto'
make: *** [Makefile:114: auto] Error 2

Sun, 12 Dec 2021 - 18:05 Permalink

Hi There,
I am an admin attempting to install liggghts on a linux compute cluster using make mpi.
I have openmpi installed and run the make mpi command whilst in the src folder.
The install seems to begin but then fails with the following error :

mpic++ -O2 -funroll-loops -fstrict-aliasing -Wall -Wno-unused-result -fPIC -DLAMMPS_GZIP -DLAMMPS_VTK -I/usr/include/vtk-6.2 -c ../dump_atom_vtk.cpp
In file included from ../dump_atom_vtk.h:49:0,
from ../dump_atom_vtk.cpp:40:
../dump_vtk.h:48:29: fatal error: vtkSmartPointer.h: No such file or directory
compilation terminated.
make[1]: *** [dump_atom_vtk.o] Error 1
make[1]: Leaving directory `/users/3052732/test/LIGGGHTS-PUBLIC-master/src/Obj_mpi'
make: *** [mpi] Error 2

I have checked the forums but i am still at a loss to resolve this issue.

Any help would be great appreciated.

Thanks,
James