VMD-L Mailing List
From: Christian Leitold (christian.leitold_at_gmail.com)
Date: Tue Mar 13 2018 - 14:19:48 CDT
- Next message: John Stone: "Re: Building plugins with _USE_ZLIB (how to activate preprocessor macro)"
- Previous message: Debostuti Ghoshdastidar: "Re: Graphics card requirement for VMD"
- Next in thread: John Stone: "Re: Building plugins with _USE_ZLIB (how to activate preprocessor macro)"
- Reply: John Stone: "Re: Building plugins with _USE_ZLIB (how to activate preprocessor macro)"
- Reply: Axel Kohlmeyer: "Re: Building plugins with _USE_ZLIB (how to activate preprocessor macro)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Hello,
I recently wanted to read gzippped LAMMPS trajectories with VMD, and it
turns out this is possible when the right option is defined. In
particular, lammpsplugin.c looks for the preprocessor variable _USE_ZLIB.
This was also mentioned for a similar case in post a few weeks ago:
http://www.ks.uiuc.edu/Research/vmd/mailing_list/vmd-l/28540.html
My question is rather basic: HOW exactly do I activate the preprocessor
macro in practice? When I just add "#define _USE_ZLIB" it in lammpsplugin.c,
the compilation fails because apparently it cannot find the zlib functions:
lammpsplugin.c:(.text+0x2e3d): undefined reference to `gzgets'
My guess is that I will need to add a "-lz" linker option at some point,
but I failed to find out where exactly.
Thanks,
Christian
- Next message: John Stone: "Re: Building plugins with _USE_ZLIB (how to activate preprocessor macro)"
- Previous message: Debostuti Ghoshdastidar: "Re: Graphics card requirement for VMD"
- Next in thread: John Stone: "Re: Building plugins with _USE_ZLIB (how to activate preprocessor macro)"
- Reply: John Stone: "Re: Building plugins with _USE_ZLIB (how to activate preprocessor macro)"
- Reply: Axel Kohlmeyer: "Re: Building plugins with _USE_ZLIB (how to activate preprocessor macro)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]