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
vtk info
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=
geotech1215 | Tue, 05/30/2023 - 09:12
Hi mschramm,
Hi mschramm,
Would you have any suggestions for what I can try next? I'm also running into some hangups with VTK installation.
Here is the terminal output when I run `make auto`:
Creating list of contact models completed.
make[1]: Entering directory '/home/kckuei/LIGGGHTS-PUBLIC/src/Obj_auto'
Makefile:945: *** 'Could not determine suitable appendix of VTK library with VTK_INC="-I/home/kckuei/LIGGGHTS-PUBLIC/lib/vtk/install/include/vtk-8.0", VTK_LIB="-L/home/kckuei/LIGGGHTS-PUBLIC/lib/vtk/install/lib" and VTK_APPENDIX="-8.0"'. Stop.
make[1]: Leaving directory '/home/kckuei/LIGGGHTS-PUBLIC/src/Obj_auto'
make: *** [Makefile:114: auto] Error 2
These are my paths in `Makefile.user`. The VTK lib files were installed setting AUTOINSTALL_VTK = "ON".
# VTK specific variables
#
# Path that contains the includes (vtkVersion.h)
#VTK_INC_USR=-I/path/to/vtk/include
VTK_INC_USR=-I/home/kckuei/LIGGGHTS-PUBLIC/lib/vtk/install/include/vtk-8.0
# Path that contains the VTK libraries
VTK_LIB_USR=-L/home/kckuei/LIGGGHTS-PUBLIC/lib/vtk/install/lib
# Additional VTK libraries to include
#VTK_ADDLIBS_USR=
geotech1215 | Wed, 05/31/2023 - 08:49
Resolution
While I have not been able to successfully install LIGGGHTS on my personal device in Ubuntu 20.04, I seem to have been able to get everything up and running in a Docker image for Ubuntu 18.04. Will need to still test it on some examples to make sure it works correctly, but at least I don't seem to be getting anymore error messages. Here is what I ended up doing:
docker pull ubuntu:18.04
docker run -it ubuntu:18.04 bash
apt-get -y update
apt-get -y install vim
apt install openmpi-bin
apt install libopenmpi-dev
apt install git
git clone https://github.com/CFDEMproject/LIGGGHTS-PUBLIC.git
apt install cmake libavcodec-dev libavformat-dev libavutil-dev libboost-dev libdouble-conversion-dev libeigen3-dev libexpat1-dev libfontconfig-dev libfreetype6-dev libgdal-dev libglew-dev libhdf5-dev libjpeg-dev libjsoncpp-dev liblz4-dev liblzma-dev libnetcdf-dev libnetcdf-cxx-legacy-dev libogg-dev libpng-dev libpython3-dev libqt5opengl5-dev libqt5x11extras5-dev libsqlite3-dev libswscale-dev libtheora-dev libtiff-dev libxml2-dev libxt-dev qtbase5-dev qttools5-dev zlib1g-dev
cd ~/../LIGGGHTS-PUBLIC/src
make auto
vim MAKE/Makefile.user
# I set the flags and paths as follows for my installation:
USE_MPI = "ON"
USE_VTK = "ON"
AUTOINSTALL_VTK = "ON"
BUILD_LIBRARIES = "ALL"
MPICXX_USR=/usr/bin/mpic++
MPIC_INC_USR=/usr/lib/x86_64-linux-gnu/openmpi/include
MPI_LIB_USR=/usr/lib/x86_64-linux-gnu/openmpi/lib
VTK_INC_USR=-I/LIGGGHTS-PUBLIC/lib/vtk/install/include/vtk-8.0
VTK_LIB_USR=-L/LIGGGHTS-PUBLIC/lib/vtk/install/lib
# In /etc/bash.bashrc, I added the following export:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/../LIGGGHTS-PUBLIC/lib/vtk/install/lib/
#Start a new terminal for export to take effect
cd ~/../LIGGGHTS-PUBLIC/src
make auto
This is my first time installing software like this and must say it's quite confusing/involved. Makes me really appreciate the support afforded by commercial software.
jmayer | Thu, 04/15/2021 - 17:38
Installation issues vtk
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=
geotech1215 | Tue, 05/30/2023 - 08:59
RE: Installation issues vtk
Hi jmayer, I realize this thread is old, but was curious if you ever resolved your installation issues?
sazeda | Mon, 11/22/2021 - 19:32
INSTALLATION ISSUES WITH VTK
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
mschramm | Wed, 11/24/2021 - 15:10
Not vtk issue but MPI issue
Your messages states that it failed to build the mpi example.
Make sure that you have the dev version of openmpi (or mpich) and that liggghts sees the needed header files and libraries.