From: Axel Kohlmeyer (akohlmey_at_gmail.com)
Date: Sun Mar 04 2018 - 07:42:32 CST

On Sat, Mar 3, 2018 at 2:47 PM, Mahmood Naderan <mahmood.nt_at_gmail.com>
wrote:

> Hi,
> I followed a post from the mail archive about building vmd from source
> in order to properly set the tcl location in the configure script [1].
> I did that, however, I still get the error that tcl.h no such file or
> directory. Any idea?
>

you set the location, but ​you obviously didn't provide the TCL flag when
running configure.
the error itself is due to a bug in the src/MDFF.C file, which should be
protected against being compiled without TCL configured, but isn't.​

​axel.​

>
>
> mahmood_at_orca:vmd-1.9.3$ grep tcl-threaded configure
> $stock_tcl_include_dir="/home/mahmood/namd-2.12/tcl-threaded/include";
> $stock_tcl_library_dir="/home/mahmood/namd-2.12/tcl-threaded/lib";
> mahmood_at_orca:vmd-1.9.3$ ./configure LINUXAMD64 CUDA
> mahmood_at_orca:vmd-1.9.3$ cd src
> mahmood_at_orca:src$ make
> echo "Compiling " MDFF.C " --> " MDFF.o " ..."; \
> g++ -m64 -fno-for-scope -Wno-deprecated -Wall -O6 -ffast-math
> -DARCH_LINUXAMD64 -DVMDCUDA -DMSMPOT_CUDA -DVMDQUICKSURF
> -DVMDWITHCARBS -DVMDPOLYHEDRA -DVMDSURF -DVMDMSMS -DVMDNANOSHAPER
> -DVMDSTATICPLUGINS -I../plugins/include
> -I../plugins/LINUXAMD64/molfile -I. -c MDFF.C -o ../LINUXAMD64/MDFF.o
> Compiling MDFF.C --> MDFF.o ...
> MDFF.C:29:17: fatal error: tcl.h: No such file or directory
> compilation terminated.
> Makefile:420: recipe for target 'MDFF.o' failed
> make: *** [MDFF.o] Error 1
> mahmood_at_orca:src$ ls /home/mahmood/namd-2.12/tcl-threaded/lib/
> libtcl8.5.a libtclstub8.5.a tcl8 tcl8.5 tclConfig.sh
>
>
>
>
>
> [1] http://www.ks.uiuc.edu/Research/vmd/mailing_list/vmd-l/25611.html
>
>
> Regards,
> Mahmood
>
>

-- 
Dr. Axel Kohlmeyer  akohlmey_at_gmail.com  http://goo.gl/1wk0
College of Science & Technology, Temple University, Philadelphia PA, USA
International Centre for Theoretical Physics, Trieste. Italy.