[AMBER-Developers] MTKPP dependency on zlib

From: Daniel Roe <daniel.r.roe.gmail.com>
Date: Mon, 31 Jan 2011 15:36:16 -0500

Hi All,

While installing Amber from the GIT repo on a brand new Fedora14
installation the compile halted during MTKPP compilation:

libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../..
-I/home/droe/Amber/GIT/amber/AmberTools/src/boost-1.38.0 -I./..
mmPotential.lo -MD -MP -MF .deps/mmPotential.Tpo -c mmPotential.cpp -o
In file included from mmPotential.cpp:33:0:
mmPotential.h:43:18: fatal error: zlib.h: No such file or directory
compilation terminated.

mmPotential depends on zlib, but has no mechanism for dealing with a
system that doesn't have zlib installed.

Since portions of cpptraj depend on zlib as well I had previously
added a check for zlib (and libbz2) in the configure script; if found
the variable zlib is set to '-lz' and the flag '-DHASGZ' is added to
$coptflags (for libbz2 bzlib is set to '-lbz2' and '-DHASBZ2' is added
to coptflags) . Since I'm not very familiar with the code I don't want
to mess with it, but the MTKPP code should probably either be modified
to handle systems with no zlib (e.g. via #ifdef HASGZ), or compilation
of MTKPP should be skipped on those systems.


AMBER-Developers mailing list
Received on Mon Jan 31 2011 - 13:00:02 PST
Custom Search