If you are going to compile your program with CPUs other than x86_64 or you are going to use the NetCDF plugin, you need to re-compile the VMD plugins.
If your architecture is listed in "VMD's download page": http://www.ks.uiuc.edu/Development/Download/download.cgi?PackageName=VMD, you can obtain the copy of plugins from University of Illinois.
Get VMD verion 1.8.7 or later and download the package.
Copy plugins/[your architecture name]/molfile/*.so files to vmdplugins/libexec directory of ERmod.
Otherwise, proceed to the next section for manually building them.
Go to the vmdplugins directory and edit Makefile.
# Makefile for molecule file readers # $Id: Makefile,v 1.102 2009/07/01 18:51:20 johns Exp $ all: dynlibs CC = gcc CXX = g++ SHLD = g++ -shared CCFLAGS = -O -g -fPIC CXXFLAGS = -O -g -fPIC NETCDF=yes NETCDFLIB=-lnetcdf
Update "CC =" and "CXX =" lines so that the C compiler is specified in the "CC" line and that the C++ compiler is identified in "CXX".
Also update "SHLD =" to the C++ compiler and the option which can build a shared library. An example is given as:
CC = icc CXX = icpc SHLD = icpc -shared
Comment out the "NETCDF=yes" line to "# NETCDF=yes" if your machine environment does not have the netcdf library.
After updating Makefile, execute
make
to compile the libraries.
After that, plugins are generated in "compile" directory.
Generally you only need either "dcdplugin.so", "gromacsplugin.so" or "netcdfplugin.so"; just copy them to libexec directory.
cp compile/dcdplugin.so libexec cp compile/gromacsplugin.so libexec cp compile/netcdfplugin.so libexec