From: John Stone (johns_at_ks.uiuc.edu)
Date: Mon Mar 05 2018 - 00:28:08 CST

Hi,
  I've corrected that issue in the VMD 1.9.4 source tree. The two includes
at the top of MDFF.C can actually be removed, they are leftovers that
are no longer needed. You can simply delete the includes of both tcl.h
and TclCommands.h at the top of MDFF.C and the build should complete.

Best,
  John Stone
  vmd_at_ks.uiuc.edu

On Sun, Mar 04, 2018 at 08:42:32AM -0500, Axel Kohlmeyer wrote:
> On Sat, Mar 3, 2018 at 2:47 PM, Mahmood Naderan <[1]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] [2]http://www.ks.uiuc.edu/Research/vmd/mailing_list/vmd-l/25611.html
>
> Regards,
> Mahmood
>
> --
> Dr. Axel Kohlmeyer  [3]akohlmey_at_gmail.com  [4]http://goo.gl/1wk0
> College of Science & Technology, Temple University, Philadelphia PA, USA
> International Centre for Theoretical Physics, Trieste. Italy.
>
> References
>
> Visible links
> 1. mailto:mahmood.nt_at_gmail.com
> 2. http://www.ks.uiuc.edu/Research/vmd/mailing_list/vmd-l/25611.html
> 3. mailto:akohlmey_at_gmail.com
> 4. http://goo.gl/1wk0

-- 
NIH Center for Macromolecular Modeling and Bioinformatics
Beckman Institute for Advanced Science and Technology
University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801
http://www.ks.uiuc.edu/~johns/           Phone: 217-244-3349
http://www.ks.uiuc.edu/Research/vmd/