From: David Joiner (djoiner_at_kean.edu)
Date: Fri Feb 18 2011 - 22:10:37 CST

I've done a checkout from CVS, set my environment to allow me to use
cl.exe from within a Cygwin bash shell, and ran "make WIN32" in the
plugins directory. After a few changes to hesstrans/src/include.h
(iostream instead of iostream.h, etc.), I am getting to the point
where I am trying to compile hesstrans, and get the error pasted
below. The error is that I cannot find tcl.h. I am setting TCLINC, and
have checked that the file is where I think it is. I've tried both -I
and /I and have moved everything to a location with no spaces in
directory names.

-------

bash-3.2$ make WIN32 TCLINC=" /I/cygdrive/c/VMD/Tcl/include "; ls
/cygdrive/c/VMD/Tcl/include
Building Molecule File Reader plugins
hesstrans_wrap.C
src/hesstrans_wrap.C(298) : fatal error C1083: Cannot open include
file: 'tcl.h': No such file or directory
make[2]: *** [../compile/lib_WIN32/tcl/hesstrans1.0/hesstrans_wrap.o] Error 2
make[1]: *** [dynlibs] Error 1
make: *** [WIN32] Error 2
X11 tclPlatDecls.h tk.h tkPlatDecls.h
tcl.h tclTomMath.h tkDecls.h tommath_class.h
tclDecls.h tclTomMathDecls.h tkIntXlibDecls.h tommath_superclass.h
bash-3.2$

On Fri, Feb 18, 2011 at 4:29 PM, David Joiner <djoiner_at_kean.edu> wrote:
> OK, so I have Tcl and Tk built using MSVC++ 2010 express from the MSVC
> console window using nmake for Tcl, and nmake TCLDIR=(tcl build
> directory) for Tk. I've built FLTK in MSVC++ 2010 Express within the
> IDE and have been able to run the demo program to confirm that it
> runs.
>
> Using fltk-1.3.x-r8441 I had to modify the FL_Device.h file to change
> the definition "friend void gl_start()" to "friend FL_EXPORT void
> gl_start()" to avoid an error with mismatched definitions.
>
> Dave
>
> On Fri, Feb 18, 2011 at 1:29 PM, John Stone <johns_at_ks.uiuc.edu> wrote:
>>
>> David,
>>  You'll need to use MSVC to compile everything.  The cygwin tools will
>> be used during the compile of the VMD plugins, but only for "make", it will
>> actually _run_ the MSVC compilers and not GCC...
>>
>> Cheers,
>>  John
>>
>> On Fri, Feb 18, 2011 at 01:17:38PM -0500, David Joiner wrote:
>>>    I've compiled ball.exe w/ cavelib on my dev machine and ran it on the
>>>    cave. I had to copy the most recent msvcr dll files over, but otherwise
>>>    that worked with no hiccups.
>>>
>>>    I'll work on the dependencies next. Should I build them in msvc or.cygwin?
>>>
>>>    Thanks!
>>>    Dave
>>>
>>>      On Feb 18, 2011 12:57 PM, "John Stone" <johns_at_ks.uiuc.edu> wrote:
>>>
>>>      David,
>>>       I would think that should be workable, although I'm only using
>>>      MSVS 2005 here, due to the need to link against various libraries.
>>>      For your puroses MSVS 2010 might work ok.  Before we get into it,
>>>      I assume for starters that you're able to compile and link CAVElib
>>>      demo apps using MSVS 2010, right?  Since your end-goal is to get
>>>      VMD running with the Windows CAVElib, I'd test to make sure that doesn't
>>>      have any issues with MSVS 2010 first.  If not, then the next thing is
>>>      to get your Tcl/Tk/FLTK builds for Windows going, as you need Tcl
>>>      to be compiled already before you can begin building the VMD plugins.
>>>      See if you can get those steps done first.
>>>
>>>      Cheers,
>>>       John
>>>
>>>      On Thu, Feb 17, 2011 at 08:57:13PM -0500, David Joiner wrote:
>>>      > Sounds fun.
>>>      >
>>>      > Right now I have b...
>>>
>>>      --
>>>
>>>      NIH Resource for Macromolecular Modeling and Bioinformatics
>>>      Beckman Institute for Advanced Science a...
>>
>> --
>> NIH Resource for Macromolecular Modeling and Bioinformatics
>> Beckman Institute for Advanced Science and Technology
>> University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801
>> Email: johns_at_ks.uiuc.edu                 Phone: 217-244-3349
>>  WWW: http://www.ks.uiuc.edu/~johns/      Fax: 217-244-6078
>>
>