From 52ca6416a08c21f3803eb653e7064225b01c0b39 Mon Sep 17 00:00:00 2001 From: sjplimp Date: Mon, 15 Feb 2016 22:34:20 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@14632 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- lib/README | 2 ++ lib/vtk/Makefile.lammps | 13 +++++++++++ lib/vtk/Makefile.lammps.arch_vtk6 | 4 ++++ lib/vtk/Makefile.lammps.centos6_vtk5 | 16 ++++++++++++++ lib/vtk/Makefile.lammps.centos7_vtk6 | 16 ++++++++++++++ lib/vtk/Makefile.lammps.ubuntu14.04_vtk5 | 12 ++++++++++ lib/vtk/Makefile.lammps.ubuntu14.04_vtk6 | 12 ++++++++++ lib/vtk/README | 28 ++++++++++++++++++++++++ 8 files changed, 103 insertions(+) create mode 100644 lib/vtk/Makefile.lammps create mode 100644 lib/vtk/Makefile.lammps.arch_vtk6 create mode 100644 lib/vtk/Makefile.lammps.centos6_vtk5 create mode 100644 lib/vtk/Makefile.lammps.centos7_vtk6 create mode 100644 lib/vtk/Makefile.lammps.ubuntu14.04_vtk5 create mode 100644 lib/vtk/Makefile.lammps.ubuntu14.04_vtk6 create mode 100644 lib/vtk/README diff --git a/lib/README b/lib/README index 7f65a6be68..4eed7e82af 100644 --- a/lib/README +++ b/lib/README @@ -53,3 +53,5 @@ smd hooks to Eigen library, used by USER-SMD package from Georg Ganzenmueller (Ernst Mach Institute, Germany) voronoi hooks to the Voro++ library, used by compute voronoi/atom command from Daniel Schwen (LANL) +vtk hooks to the VTK library, used by dump custom/vtk command + from Richard Berger (JKU) diff --git a/lib/vtk/Makefile.lammps b/lib/vtk/Makefile.lammps new file mode 100644 index 0000000000..e3b28ed928 --- /dev/null +++ b/lib/vtk/Makefile.lammps @@ -0,0 +1,13 @@ +# Settings that the LAMMPS build will import when this package library is used +# +# settings for VTK-5.8.0 on RHEL/CentOS 6.x + vtk_SYSINC = -I/usr/include/vtk + vtk_SYSLIB = -lvtkCommon -lvtkIO + vtk_SYSPATH = -L/usr/lib64/vtk +# +# settings for VTK 6.2.0 on Fedora 23 +#vtk_SYSINC = -I/usr/include/vtk +#vtk_SYSLIB = -lvtkCommonCore -lvtkIOCore -lvtkCommonDataModel -lvtkIOXML -lvtkIOLegacy -lvtkIOParallelXML +#vtk_SYSPATH = -L/usr/lib64/vtk +# + diff --git a/lib/vtk/Makefile.lammps.arch_vtk6 b/lib/vtk/Makefile.lammps.arch_vtk6 new file mode 100644 index 0000000000..aa6b7ea099 --- /dev/null +++ b/lib/vtk/Makefile.lammps.arch_vtk6 @@ -0,0 +1,4 @@ +# Settings that the LAMMPS build will import when this package library is used +vtk_SYSINC = -I/usr/include/vtk +vtk_SYSLIB = -lvtkCommonCore -lvtkIOCore -lvtkIOXML -lvtkIOParallelXML -lvtkIOLegacy -lvtkCommonDataModel +vtk_SYSPATH = diff --git a/lib/vtk/Makefile.lammps.centos6_vtk5 b/lib/vtk/Makefile.lammps.centos6_vtk5 new file mode 100644 index 0000000000..1d19a94006 --- /dev/null +++ b/lib/vtk/Makefile.lammps.centos6_vtk5 @@ -0,0 +1,16 @@ +# Settings that the LAMMPS build will import when this package library is used +# +# CentOS 6 installation of VTK5 library: +# -------------------------------------- +# +# Install the EPEL repository: +# +# $ sudo yum install epel-release +# +# Install VTK5 from the EPEL repository: +# +# $ sudo yum install vtk-devel +# +vtk_SYSINC = -I/usr/include/vtk +vtk_SYSLIB = -lvtkCommon -lvtkFiltering -lvtkIO +vtk_SYSPATH = -L/usr/lib64/vtk diff --git a/lib/vtk/Makefile.lammps.centos7_vtk6 b/lib/vtk/Makefile.lammps.centos7_vtk6 new file mode 100644 index 0000000000..0a0efb31b3 --- /dev/null +++ b/lib/vtk/Makefile.lammps.centos7_vtk6 @@ -0,0 +1,16 @@ +# Settings that the LAMMPS build will import when this package library is used +# +# CentOS 7 installation of VTK6 library: +# -------------------------------------- +# +# Install the EPEL repository: +# +# $ sudo yum install epel-release +# +# Install VTK6 from the EPEL repository: +# +# $ sudo yum install vtk-devel +# +vtk_SYSINC = -I/usr/include/vtk +vtk_SYSLIB = -lvtkCommonCore -lvtkIOCore -lvtkIOXML -lvtkIOLegacy -lvtkCommonDataModel +vtk_SYSPATH = -L/usr/lib64/vtk diff --git a/lib/vtk/Makefile.lammps.ubuntu14.04_vtk5 b/lib/vtk/Makefile.lammps.ubuntu14.04_vtk5 new file mode 100644 index 0000000000..75159b0f57 --- /dev/null +++ b/lib/vtk/Makefile.lammps.ubuntu14.04_vtk5 @@ -0,0 +1,12 @@ +# Settings that the LAMMPS build will import when this package library is used +# +# Ubuntu 14.04 installation of VTK5 library: +# ------------------------------------------ +# +# Execute the following installation command: +# +# $ sudo apt-get install libvtk5-dev +# +vtk_SYSINC = -I/usr/include/vtk-5.8 +vtk_SYSLIB = -lvtkCommon -lvtkFiltering -lvtkIO +vtk_SYSPATH = diff --git a/lib/vtk/Makefile.lammps.ubuntu14.04_vtk6 b/lib/vtk/Makefile.lammps.ubuntu14.04_vtk6 new file mode 100644 index 0000000000..ed0a450219 --- /dev/null +++ b/lib/vtk/Makefile.lammps.ubuntu14.04_vtk6 @@ -0,0 +1,12 @@ +# Settings that the LAMMPS build will import when this package library is used +# +# Ubuntu 14.04 installation of VTK6 library: +# ------------------------------------------ +# +# Execute the following installation command: +# +# $ sudo apt-get install libvtk6-dev +# +vtk_SYSINC = -I/usr/include/vtk-6.0 +vtk_SYSLIB = -lvtkCommonCore-6.0 -lvtkIOCore-6.0 -lvtkIOXML-6.0 -lvtkIOLegacy-6.0 -lvtkCommonDataModel-6.0 +vtk_SYSPATH = diff --git a/lib/vtk/README b/lib/vtk/README new file mode 100644 index 0000000000..11add94f52 --- /dev/null +++ b/lib/vtk/README @@ -0,0 +1,28 @@ +The Makefile.lammps file in this directory is used when building LAMMPS with +its USER-VTK package installed. The file has several settings needed to +compile and link LAMMPS with the VTK library. You should choose a +Makefile.lammps.* file compatible with your system and your version of VTK, and +copy it to Makefile.lammps before building LAMMPS itself. You may need to edit +one of the provided files to match your system. + +If you create a new Makefile.lammps file suitable for some version of VTK on +some system, that is not a match to one of the provided Makefile.lammps.* +files, you can send it to the developers, and we can include it in the +distribution for others to use. + +To illustrate, these are example settings from the +Makefile.lammps.ubuntu14.04_vtk6 file: + +vtk_SYSINC = -I/usr/include/vtk-6.0 +vtk_SYSLIB = -lvtkCommonCore-6.0 -lvtkIOCore-6.0 -lvtkIOXML-6.0 -lvtkIOLegacy-6.0 -lvtkCommonDataModel-6.0 +vtk_SYSPATH = + +vtk_SYSINC refers to the include directory of the installed VTK library + +vtk_SYSLIB refers to the libraries needed to link to from an application +(LAMMPS in this case) to "embed" VTK in the application. VTK consists of +multiple shared libraries which are needed when using the USER-VTK package. + +vtk_SYSPATH = refers to the path (e.g. -L/usr/local/lib) where the VTK library +can be found. You may not need this setting if the path is already included in +your LD_LIBRARY_PATH environment variable.