Installation error

Submitted by gfernandez on Thu, 11/24/2016 - 19:29

Hi, I am installimg the public software for the first time in my computer and at first un error with mpi appeared but I was able to solve to then face an error with something about VTK, or so I think. the error message is the following:

In file included from ../dump_custom_vtk.cpp:54:0:
../dump_custom_vtk.h:63:29: fatal error: vtkSmartPointer.h: No existe el archivo o el directorio
compilation terminated.
Makefile:110: fallo en las instrucciones para el objetivo 'dump_custom_vtk.o'
make[1]: *** [dump_custom_vtk.o] Error 1
make[1]: *** Se espera a que terminen otras tareas....
make[1]: se sale del directorio '/home/gfernandez/LIGGGHTS/LIGGGHTS-PUBLIC/src/Obj_ubuntuVTK_fpic'
Makefile:72: fallo en las instrucciones para el objetivo 'ubuntuVTK_fpic'
make: *** [ubuntuVTK_fpic] Error 2

I have tried installing VTK with the following commands but it keeps giving me the same error,
i used the following lines to install VTK:

sudo apt-get install libvtk5-dev libeigen2-dev libopenmpi-dev g++ git-core
sudo apt-get install build-essential git
sudo apt-get install cmake
sudo apt-get install cmake-curses-gui
wget http://www.vtk.org/files/release/7.1/VTK-7.1.0.tar.gz
gunzip *gz
tar -xvf *tar
cd VTK*
sudo cmake .
sudo make
sudo make install

If someone could point out were the problem is I would be very thankful.
Kind regards,
Gonzalo.

PS. Sorry the error is in spanish but thats the way my computer gives it.

ckloss's picture

ckloss | Mon, 12/12/2016 - 21:01

Hi Gonzalo,

you'll have to adapt the Makefile to the VTK installation of the local machine. 
In the next release, we'll have a new automatic makefile at hands which will make things easier!

Christoph

martin.kozakovic | Tue, 08/15/2017 - 21:54

Hi Christoph,

I think I have the same problem. These errors are shown in terminal during building of LIGGGHTS by using "make auto":

../dump_custom_vtk.cpp:98:30: fatal error: vtkMPIController.h: No such file or d
compilation terminated.
make[1]: *** [dump_custom_vtk.o] Error 1
make[1]: Leaving directory `/home/kozakovic/LIGGGHTS/liggghts-course/src/Obj_aut
make: *** [auto] Error 2

There is vtk installed in standard path "/usr". I can't understand the liggghts do not find it during the compilation. Should I define the path in a file /src/MAKE/Makefile.user_default?
There are centos 6.9 and VTK 5.8.0.

medvedeg | Wed, 08/16/2017 - 14:00

Hallo Martin,

please check if VTK is installed with MPI/Parallel support. Also check if vtkMPIController.h is really present. If yes, check if path to this is defined correctly. If not, you can compile/install it manually .

Alexander Podlozhnyuk

martin.kozakovic | Thu, 08/17/2017 - 17:17

Now I tried to define the path in the file 'Makefile.user' in /src/MAKE

# VTK specific variables
#
# Path that contains the includes (vtkVersion.h)
VTK_INC_USR=-I/usr/local/include/vtk
# Path that contains the VTK libraries
VTK_LIB_USR=-L/home/kozakovic/VTK-build/lib
# Appendix to the library names

Although I defined 'ln -s vtk-8.1' in /usr/local/include, it shows this error

Makefile:637: *** 'Could not determine suitable appendix of VTK library with VTK _INC="-I/usr/local/include/vtk", VTK_LIB="-L/home/kozakovic/VTK-build/lib" and V TK_APPENDIX="-8.1"'. Stop.
make[1]: Leaving directory `/home/kozakovic/LIGGGHTS/LIGGGHTS-PUBLIC/src/Obj_aut o'
make: *** [auto] Error 2

Now I don't understand what it means.

j-kerbl's picture

j-kerbl | Fri, 08/25/2017 - 13:37

Hi Martin,

this looks a bit like an untypical vtk installation.
The VTK_APPENDIX="-8.1" means it found the VTK header files and extracted the VTK-version. Somehow it seems it couldn't find the VTK libs.
Is your VTK-build the directory you compiled VTK in? Where did you install it to? Did you give it a CMAKE_PREFIX_PATH for installation and ran make install?

Cheers,
Josef

gowthaman | Thu, 01/25/2018 - 17:24

Hi all,

I'm trying to install LIGGGHTS on mac and I get the following error when I use 'make auto':

Makefile:940: *** 'Could not determine suitable appendix of VTK library with VTK_INC="-I/Users/gowthaman/Documents/VTK/VTK/Common/Core/", VTK_LIB="-L/Users/gowthaman/Documents/VTKBuild/lib/" and VTK_APPENDIX="-VTK_MAJOR_VERSION.VTK_MINOR_VERSION"'. Stop.

I also changed the vtk specifications on makefile.mpi and tried 'make mpi' and end up with the error: 'vtkCommonCoreModule.h' file not found

I appreciate any suggestions or leads on this. Thanks in advance.

gowthaman | Fri, 01/26/2018 - 22:24

Hi guys,
I had similar installation error likes Gonzalo and Martin and I guess it is due to untypical installation of vtk. But, the following link helped me install VTK 8.1.0 without any issues:

https://www.ctcms.nist.gov/oof/oof3d/vtk5elcap.html

I just made following changes in the installation:

* Downloaded vtk 8.1.0 instead of 5.10.1

* Skipped steps 1 and 3 ( I was not sure of the consequences of step 3)

* Changed only CMAKE_BUILD_TYPE to release and Toggled MPI option to ON

There were no issues after following the procedure. I haven't run any of my own models but the examples were simulated successfully. Thanks, this thread helped me to understand the problem. Hope this procedure won't create any further errors and might help someone.

Cheers,
Gowthaman

arnom's picture

arnom | Mon, 01/29/2018 - 10:45

Makefile auto has not been tested on mac and is very likely not going to work. As we have hardly any users on this platform, we do not support it officially. If you find the specific error feel free to let us know where it is along with a fix for it and we will see if we can include it in the next release.

DCS team member & LIGGGHTS(R) core developer

iluvatar | Wed, 08/22/2018 - 22:06

Hi, It is actually possible to use Makefile auto in Mac Os X . At least, in the version I am using (Yosemite). Use the following steps:
- Install vtk from source, do not use homebrew :
wget -nc -c http://www.vtk.org/files/release/8.1/VTK-8.1.1.tar.gz
tar xf VTK-8.1.1.tar.gz
cd VTK-8.1.1
mkdir build
cd build
ccmake ../ # activate MPI,c, c, g
cmake ../
make -j 4
make install
- Configure the file MAKE/Makefile.user to set VTK. Example:
VTK_INC_USR=-I/usr/local/include/vtk-8.1
# Path that contains the VTK libraries
#VTK_LIB_USR=-L/path/to/vtk/lib
VTK_LIB_USR=-L/usr/local/lib/
- Configure mpicxx to use g++-8 instead of clang (I have g++-8, set what you have)
export OMPI_CXX=g++-8
export OMPI_CC=gcc-8
- Run make as
make auto
This worked in my case.