Re: catdcd and dcdunitcell

From: Philip Fowler (p.w.fowler_at_qmul.ac.uk)
Date: Tue Jun 28 2005 - 11:07:38 CDT

Yes, if I add -lm to CFLAGS in the makefile and use the vmd-1.8.3
plugins then I can get catdcd3.0 to compile and it also allows the
DCDunitcell info to be retained in the catdcd'ed dcd.

Phew.

--Phil

>
>
>> If I have use the second set of vmd-1.8.1 plugins then I get the
>> following error:
>>
>> volta 334% make
>> gcc -Wall -O3 -fomit-frame-pointer -march=i686 -pipe
>> -I/home/philip/packages/catdcd-3.0/plugins-1.8.1b/include
>> -I/home/philip/packages/catdcd-3.0/plugins-1.8.1b/LINUX/molfile
>> catdcd.c
>> -L/home/philip/packages/catdcd-3.0/plugins-1.8.1b/LINUX/molfile
>> -lmolfile_plugin -o cattrr
>> /home/philip/packages/catdcd-3.0/plugins-1.8.1b/LINUX/molfile/
>> libmolfile_plugin.a(dcdplugin-s.o)
>>
>> (.text+0x150d): In function `read_next_timestep':
>> : undefined reference to `acos'
>>
>> /home/philip/packages/catdcd-3.0/plugins-1.8.1b/LINUX/molfile/
>> libmolfile_plugin.a(dcdplugin-s.o)
>>
>> (.text+0x152d): In function `read_next_timestep':
>> : undefined reference to `acos'
>>
>> /home/philip/packages/catdcd-3.0/plugins-1.8.1b/LINUX/molfile/
>> libmolfile_plugin.a(dcdplugin-s.o)
>>
>> (.text+0x1550): In function `read_next_timestep':
>> : undefined reference to `acos'
>>
>> collect2: ld returned 1 exit status
>> make: *** [cattrr] Error 1
>>
>
> Apparently, the linker is missing the math libraries. Try adding -
> lm to the
> CFLAGS variable in the Makefile.
>
> I recommend the very latest set of plugins, since it includes
> improvements in
> the DCD read/write part:
> http://www.ks.uiuc.edu/Research/vmd/plugins/183update1/plugins-
> vmd-1.8.3.tar.gz
>
> Cheers,
> Jerome
>
> --
> Jérôme Hénin
> Equipe de Dynamique des Assemblages Membranaires
> Université Henri Poincaré / CNRS
> Tel : (33) 3 83 68 43 95 Fax : (33) 3 83 68 43 87
> http://www.edam.uhp-nancy.fr/
>

This archive was generated by hypermail 2.1.6 : Wed Feb 29 2012 - 15:40:54 CST