I am trying to compile LIGGGHTS with DLAMMPS_VTK switch in windows with cygwin.
I have successfully compiled and vtk6.2.
I am trying to compile the LIGGGHTS with following vtk settings in makefile.ubuntu
VTK_INC = -I/usr/local/include/vtk-6.2
VTK_PATH =
VTK_LIB = -lvtkCommon -lvtkFiltering -lvtkIO
However, I am getting following linking issue:
/usr/lib/gcc/x86_64-pc-cygwin/4.9.2/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lvtkCommon
/usr/lib/gcc/x86_64-pc-cygwin/4.9.2/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lvtkFiltering
/usr/lib/gcc/x86_64-pc-cygwin/4.9.2/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lvtkIO
collect2: error: ld returned 1 exit status
Makefile:91: recipe for target '../lmp_ubuntuVTK' failed
make[1]: *** [../lmp_ubuntuVTK] Error 1
make[1]: Leaving directory '/cygdrive/c/cygwin64/home/RahulKumar/LIGGGHTS-PUBLIC310/src/Obj_ubuntuVTK'
Makefile:77: recipe for target 'ubuntuVTK' failed
make: *** [ubuntuVTK] Error 2
In ubuntu we used to install libvtk5-dev but here I don't to install that library. Also, not sure whether the problem is because of it only or something else. In ubuntu I found these three files libvtkcommon.so, libvtkfilterning.so and libvtkIO.so in /usr/lib/ directory. But don't know where they are in windows or how to bring them and link them in the makefile.
Please help...
Daniel Queteschiner | Tue, 04/14/2015 - 14:29
vtk-5 vs. vtk-6
There have been major changes from vtk 5 to vtk 6. LIGGGHTS should work with both but you have to use different libraries. In the src/MAKE folder you should find Makefile.ubuntuVTK and Makefile.ubuntuVTK6, where the former has the setup for vtk 5 and the latter for vtk 6.