Re: compiling NAMD failed on windows with Cygwin

From: accomp lin (
Date: Sun Jan 11 2009 - 02:02:54 CST

I just wish to have a convenient environment, which is windows, for me to change the code and compile NAMD. But like you siad, It's maybe complicated and painful. I better try it just myself or switch to Linux easily. Maybe to do it on windows is really not a good idea. So no more questions.

--- 09年1月10日,周六, Axel Kohlmeyer <> 写道:

发件人: Axel Kohlmeyer <>
主题: Re: namd-l: compiling NAMD failed on windows with Cygwin
收件人: "accomp lin" <>
日期: 2009,110,周六,11:20下午

On Sat, 10 Jan 2009, accomp lin wrote:


JL> changed all "\" into "/" and the problem
disappear. However, I got a
JL> new error, it says:

JL> /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../..i686-pc-cygwin/bin/ld:
JL> cannot find -ltcl8.3 collect2: ld returened 1 exit status Fatal
JL> error by charmc in directory .....

JL> I already downloaded window version of TCL and fixed the path to its
JL> files as NAMD release notes states. So what's the problem. Should I

how the hell should _i_ know?? from the information that you provide
i can only extract that your linker cannot find the tcl library.

i cannot read your mind or the mind of your computer and see exactly
what you have done. there are several possible reason: typos in your
arch files, errors in the installation, incompatible libraries.

JL> copy TCL libs into some directory of Cygwin manually? Thank you

why waste you time on compiling NAMD for windows anyways??

unless you have a windows cluster with myrinet or infiniband
(...and who would even want to set up such a monstrosity?),
i don't see any reason for not using the precompiled binaries.


JL> Regards
JL> Jiaqi
JL> --- 08ÿÿ12ÿÿ29ÿÿÿÿÿÿÿÿ, Axel Kohlmeyer
<> ÿÿÿÿÿÿ
JL> ÿÿÿÿÿÿ: Axel Kohlmeyer <>
JL> ÿÿÿÿ: Re: namd-l: compiling NAMD failed on windows with Cygwin
JL> ÿÿÿÿÿÿ: "accomp lin" <>
JL> ÿÿÿÿ:
JL> ÿÿÿÿ: 2008,1229,ÿÿÿÿ,11:36ÿÿÿÿ
JL> On Mon, 29 Dec 2008, accomp lin wrote:
JL> J> Dear developer of NAMD:
JL> dear jiaqi,
JL> J> I'm compiling NAMD on windows with Cygwin. I tried several
time but
JL> failed. The problem is that i didn't set the directory of charm5.9,
JL> fftw in .arch file correctly. After making this right, I finally got
the NAMD
JL> compling on progress. But I then I got the follows error:
JL> J>  
JL> J> -LE:\Mr.Lin\comp\NAMD_2.6_Source\tcl/lib -ltcl8.3
JL> J> -LE:\Mr.Lin\comp\NAMD_2.6_Source\fftw/lib -lsrfftw
JL> -lsfftw \
JL> J> obj/dcdplugin.o  \
JL> J> \
JL> J> -lm -o namd2
JL> J> E:Mr.LincomNAMD_2.6_Sourcecharm-5.9/net-Cygwin/bin/charmc: not
JL> J> make: *** [namd2] Error 127
JL> J>  
JL> J> I browsed to the .../net-Cygwin/bin/ directory but I found a
JL> J> link is actually there. So what's my problem? Is that becasue
JL> J> "\" is lacked in the command? Where can I find the
JL> so I can
JL> J> add the "\" to it myself?
JL> J>  
JL> J> Please help
JL> please read the cygwin documentation more carefully!
JL> cygwin emulates a unix environment, so everything you
JL> provide - for example path names - has to be giving
JL> in "unix"-format and the unix path separator is the
JL> forward slash '/'. the backward slash '\' is an
JL> character in scripts and makefiles and as such indicates
JL> to use the next character literally. because of that
JL> your build script cannot find the charmc script, because
JL> it is looking in the wrong location.
JL> to produce a backslash you'd have to use '\\' (or
JL> '\\\\'
JL> in case the string is interpreted twice), but i recommend
JL> to specify all paths with '/' to avoid this.
JL> cheers,
JL> axel.
JL> J> Thank you!
JL> J>  
JL> J>  
JL> J> Jiaqi
JL> J>  
JL> J>  
JL> ___________________________________________________________
JL> ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ

Axel Kohlmeyer
   Center for Molecular Modeling   --   University of Pennsylvania
Department of Chemistry, 231 S.34th Street, Philadelphia, PA 19104-6323
tel: 1-215-898-1582,  fax: 1-215-573-6233,  office-tel: 1-215-898-5425
If you make something idiot-proof, the universe creates a better idiot.


This archive was generated by hypermail 2.1.6 : Wed Feb 29 2012 - 15:52:14 CST