[vtkusers] VTK + Tcl 8.3.0 + Itcl 3.1.0 (NT)
Hugo Korwaser
hugo.korwaser at dspace.co.uk
Thu Dec 21 04:44:06 EST 2000
Further to my previous e-mail.
There are differences in building tcl/tk8.3.2 on Windows NT ( I assume
this will happen with W95/W98 etc.) between using Microsoft nmake and
using the tea/cygwin approach.
It manifests it self with tcl in that with nmake the tcltest package is
not installed. It manifests itself with tk in that the fix that I
mentioned in my previous e-mail causes a problem with duplicate symbols.
In the tea build the tk resource files are concatinated into one. My fix
will then bring in the cursors et al. a 2nd time. From this I infer that
the tea method is the way to install.
My quick guide to building tcl8.3.2/tk8.3.2/itcl3.2 using tea on NT
assuming cygwin 1.0x is already installed. The commands should be
entered in a cygwin bash shell window.
1 - Build tcl
a - create a build directory
mkdir build
b - change directory to build directory
cd build
c - configure using script in tcl8.3.2/win
<path to tcl8.3.2/win/configure> --prefix=<path of where to \
install> --enable-threads
the prefix and the enable threads parameters are optional
d - compile and link
make
e - install
make install
2 - Build tk
a - create a build directory
mkdir build
b - change directory to build directory
cd build
c - configure using script in tk8.3.2/win
<path to tk8.3.2/win/configure> --prefix=<path of where to install>
--with-tcl=<pathname to where tcl was built> --enable-threads
the prefix is optional and the enable threads parameters is
required if tcl compiled with it.
d - compile and link
make
e - install
make install
3 - Build itcl
a - create a build directory
mkdir <build>
b - change directory to build directory
cd <build>
c - configure using script in itcl3.2
<path to tcl/win/configure> --prefix=<path of where to install>
--with-tcl=<pathname to where tcl was built>
--with-tk=<pathname to where tk was built> --enable-threads
the prefix is optional and the enable threads parameters is
required if tcl compiled with it.
d - compile and link
make
e - install
make install
Hope this is of some use.
Regards
Hugo
Hugo Korwaser wrote:
> Hi Sebastein and David,
> I have got vtk3.2beta to work with tcl/tk8.3.2 on NT4.0sp4 with VC++sp4.
> The test examples also work using itkwish3.2.
>
> I did have a problem with tk in that the cursor definitions were not
> compiled into the tk83 dll. This problem can be solved by editing
> tk8.3.2/win/res/tk.res and adding the line
>
> #include "tk_base.rc"
>
> at the end of the file.
> Rerunning the make should cause the resource file to be recompiled and
> the dll rebuilt.
>
> I must say I struggled a bit with building itcl3.2 in that I didn't read
> the readme file, assumed that the makefile.vc's were the things to use.
> I then came across the reference to tea. There is an explanation on the
> scriptics site, http://dev.scriptics.com/doc/tea/windows.html, that
> provides the promised information. From a quick read I think that if you
> do download the current version of cygwin some of the steps are
> redundant or need modification.
> 1 - is required
> 2 - the installation is done by setup (cygwin's own version) which both
> transfers the distribution and installs.
> 3 - you can use an icon intstalled on your desktop or
> start>programs->cygnus solutions
> 4 - this is done by the current version
> 5 - if you use vcvars.bat to setup the enviroment variables for visual
> c++ to be run in a dos box you must call then from cygwin.bat so that
> they are available from bash.
> 6 & 7 this can be done when downloading and installing rather than
> seperatly.
> 8 9 & 10 depends on what you are doing.
>
More information about the vtkusers
mailing list