Re: during namd build / compile -ltcl8.4 linking error

From: Brian Bennion (brian_at_youkai.llnl.gov)
Date: Mon Mar 13 2006 - 17:56:41 CST

You should review the compilation instructions for NAMD on the NAMDwiki
  http://www.ks.uiuc.edu/Research/namd/wiki/index.cgi?NamdCompile

NAMD is statically linked to tcl and fftw ie uses libtcl8.4.a libraries
not .so files...

On Mon, 13 Mar 2006, Sabuj Pattanayek wrote:

> Hi,
>
> I almost have namd compiled but it errored during the linking stage. I have
> install tcltk-8.4.12 in a separate directory and I put the following in the
> arch/Linux-i686.tcl file:
>
> TCLDIR=/sb/apps/tcltk-8.4.12/Linux2/i686
> TCLINCL=-I$(TCLDIR)/include
> TCLLIB=-L$(TCLDIR)/lib -ltcl8.4 -ldl
> TCLFLAGS=-DNAMD_TCL -DUSE_NON_CONST
> TCL=$(TCLINCL) $(TCLFLAGS)
>
> All is well during the compile stage until it tries to link everything and I
> get this error:
>
> /usr/bin/ld: cannot find -ltcl8.4
>
> I'm not sure why this is happening because libtcl8.4.so exists in the lib
> directory defined by TCLDIR. I also tried linking libtcl8.4.so to libtcl.so
> and using -ltcl in the arch/Linux-i686.tcl file but I also receive the same
> error. Does anyone know why this might be happening? Does namd only link with
> a tcltk-8.3.x revision?
>
> Thanks,
> Sabuj Pattanayek
>

************************************************
   Brian Bennion, Ph.D.
   Biosciences Directorate
   Lawrence Livermore National Laboratory
   P.O. Box 808, L-448 bennion1_at_llnl.gov
   7000 East Avenue phone: (925) 422-5722
   Livermore, CA 94550 fax: (925) 424-6605
************************************************

This archive was generated by hypermail 2.1.6 : Wed Feb 29 2012 - 15:43:23 CST