You can get the source code for tcl from here. Here i went for a self compiled tcl using clang and compiling the molfile plugin using clang as well. ![]() Your final result in the copiled/LINUXAMD64/molfile directory should look somehow like this : The commands above will build (the first gmake) and then copy to a common directory tree (PLUGINDIR) the compiled library files. cd plugins gmake LINUXAMD64 TCLINC=$TCLINC TCLLIB=$TCLLIB/libtcl.so export PLUGINDIR=/home/peter/molfile/compiled gmake distrib The following commands will be carried out in the plugins directory that you’ll find once you extracted the tar.gz downloaded from the VMD website. How to build it on a Centos 7.4 ( for Mac OSX see below):įirst let’s install a few prerequisites on the system yum install -y tcl-devel netcdf-devel gcc-c++ĭefine the two following environment variables in your shell (I use bash here) export TCLINC=/usr/include export TCLLIB=/usr/lib64 export NETCDFINC=/usr/include export NETCDFLIB=/usr/lib64/libnetcdf.soĮxtract the tar.gz with the vmd source code. Anyway, for the sake of completeness you can find the current official documentation here: It’s pretty sparse and not straightforward to use and not very well adapted for modern linux distributions with package management systems. You can find the official plugin install documentation here. Here I’m documenting compilation of the molfile plugin included in vmd 1.9.3 Official documentation: ![]() Make sure to download the source code distribution. You should download VMD from the official VMD website. So, the day you want to integrate a parser for yet another exotic file format that a PhD student in a lab on the other side of the world developed … well think twice and check if you rather could use a library like the molfile plugin.įor example, we now also use the molfile plugin in fpocket to read XTC, netcdf and dcd trajectories. And this is achieved using the molfile plugin. It can read a ton of different formats, especially very complicated and diverse MD trajectory formats. VMD is a very popular tool to analyze molecular dynamics, but also run some 3D modeling tasks. Here a step-by-step guide on how to do that on a linux 64 bit machine (Centos 7.4 in my case). I don’t know how many of you have hit that particular snag before, but it’s not my first time trying to compile the molfile plugin from VMD using the source code.
0 Comments
Leave a Reply. |