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
medvedeg | Wed, 05/09/2018 - 11:49
Hi James,
Hi James,
please check your VTK installation and paths to "include" and "lib" folders in Makefile.user
richti83 | Wed, 05/09/2018 - 11:53
Your VTK Version is to old.
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.
NSalloum | Wed, 10/24/2018 - 09:37
hello 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
jamesmcgro | Wed, 05/09/2018 - 15:04
vtk path?
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.
arnom | Tue, 05/15/2018 - 15:12
Hi James,
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
Venkataraman | Wed, 10/24/2018 - 17:49
Hi 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
jamesmcgro | Thu, 05/17/2018 - 16:51
New error
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?
arnom | Tue, 05/22/2018 - 10:04
James, I just sent you an
James, I just sent you an email with some debugging instructions.
ljmutue | Fri, 06/29/2018 - 14:10
HI 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
Bias | Mon, 07/02/2018 - 13:29
debugging instructions
Hi James,
Could you also send the instructions to me? I'm stuck om something similar where I'm trying to install liggghts on a cluster.
//Tobias
NSalloum | Wed, 10/24/2018 - 12:28
debugging instructions
Hey James,
May you please send me these instructions too or share them in the forum.
best wishes
deepakpawar.2310 | Wed, 10/23/2019 - 12:55
Hi
Hi
I also trying to getting same sort of error while installing the LIGGGHTS on the cluster
Can you send me the same at deepakpawar.2310@gmail.com
Thank you
ljmutue | Fri, 06/29/2018 - 14:09
hi 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
arnom | Thu, 07/19/2018 - 09:38
Hi,
Hi,
can you provide some further details. What VTK version, how was it installed, what OS, etc.
mehmetcil | Wed, 08/15/2018 - 17:58
VTK error
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
mhdhassan | Mon, 12/03/2018 - 14:56
Error During installing
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,
mschramm | Mon, 12/03/2018 - 15:08
version of vtk
Hello,
What version of vtk do you have installed?
naukkarinen | Fri, 03/08/2019 - 12:45
Manual
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
saad2311 | Tue, 04/02/2019 - 01:36
Same ERROR of "AUTOINSTALL_VTK is not set to "ON"
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.
chandra | Tue, 04/30/2019 - 04:52
VTK_MAJOR_VERSION. As AUTOINSTALL_VTK is not set to "ON"
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
Mishal | Sun, 12/12/2021 - 17:59
Error with VTK
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
Mishal | Sun, 12/12/2021 - 18:05
VTK compiling error
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
mschramm | Mon, 12/13/2021 - 17:14
manual install in library
cd into lib -> vtk
you will need to finish the build here. The failure is usually due to the make install command failing as it needs sudo permissions.