[slicer-users] Re: [slicer-devel] How to make a slicer program with slicer source code in Windows?

Attila Tanacs tanacs at cs.jhu.edu
Fri Nov 23 09:37:22 EST 2001


I've already sent the instructions this Monday. Haven't you received that?
(Instructions in HTML format included again.)

  --a

On Fri, 23 Nov 2001, zhangzhijun wrote:

>
> Dear all:
>        I want to make an slicer using the vtksrc in the 3D slicer package under windows,
> is there anyone who have done this? and is there any hint ofr doing this?Thanks.
>
>
> regards,
> zhangzhijun
>
-------------- next part --------------
<html>

<head>

<title>How to make Slicer run on Windows NT?</title>

</head>



<body>

<h1 align="center">How to make Slicer run on Windows NT?</h1>



    <ol>

      <li>If you don't have Tcl/Tk, install it (we suppose you install Tcl/Tk 8.3.2)

	(directory path: TCL)

	

      <li> Get source code of

	<ul>

	  <li>Slicer (Tcl/Tk, vtk) (www.slicer.org) (directory path: SLICER)

	  <li>vtk	             (www.kitware.com) (directory path: VTK)

	  <li>Tcl/Tk               (dev.scriptics.com) (directory path: TCL_SRC)

	</ul>

	

      <li>Collecting necessary source files

	<ol>

	  <li>Copy all files from SLICER\vtksrc to VTK\local

	    

	  <li>Check Makefile.in in VTK\local (it must contain every cxx class files)

	    

	  <li>If pcmaker.exe is not available in VTK\pcmaker, compile it using Visual C++

	    

	  <li>Make the following directories:

	    <ul>

	      <li>VTK\pcmaker\tcllib\generic

	      <li>VTK\pcmaker\tcllib\win

	      <li>VTK\pcmaker\tcllib\xlib

	      <li>VTK\pcmaker\tcllib\xlib\X11

	    </ul>

	    

	  <li>Copy the following files from TCL_SRC\generic to VTK\pcmaker\tcllib\generic :

	    <ul>

	      <li>tcl.h

	      <li>tclDecls.h

	      <li>tclInt.h

	      <li>tclIndDecls.h

	      <li>tclPort.h

	    </ul>

	    

	  <li>Copy the following files from TK_SRC\generic to VTK\pcmaker\tcllib\generic :

	    <ul>

	      <li>tk.h

	      <li>tkDecls.h

	      <li>tkInt.h

	      <li>tkIntDecls.h

	      <li>tkIntPlatDecls.h

	      <li>tkPlatDecls.h

	      <li>tkPort.h

	      <li>tkIntXlibDecls.h

	    </ul>

	    

	  <li>Copy the following files from TCL_SRC\win to VTK\pcmaker\tcllib\win :

	    <ul>

	      <li>tclWinInt.h

	      <li>tclWinPort.h

	    </ul>

	    

	  <li>Copy the following files from TK_SRC\win to VTK\pcmaker\tcllib\win :

	    <ul>

	      <li>tkWin.h

	      <li>tkWinInt.h

	      <li>tkWinPort.h

	    </ul>

	    

	  <li>Copy the following files from TCL\lib to VTK\pcmaker\tcllib\win :

	    <ul>

	      <li>tcl83.lib

	      <li>tclstub83.lib

	      <li>tk83.lib

	      <li>tkstub83.lib

	    </ul>

	    

	  <li>Copy the directory structure TK_SRC\xlib to VTK\pcmaker\tcllib\xlib

	</ol>

	

      <li>Compiling vtk on NT

	<ol>

	  <li>Run VTK\pcmaker\pcmaker.exe

	    <ul>

	      <li>Set the following values:

		<ul>

		  <li>Where is vtk:  VTK (root of your vtk directory)

		  <li>vtk libraries: VTK\lib (dlls will be put in subdirectories of this)

		  <li>Where is your compiler: MSDEV\vc98 (root of VC)

		  <li>Check the following checkboxes:

		    <ul>

		      <li>What compiler: Microsoft

		      <li>Additional toolkits: Graphics, Imaging, Contrib, Local

		      <li>Include Patented Algorithms

		      <li>Build Tcl

                      <li>ANSI C++

		    </ul>

		  <li>Press button 'Advanced' and set these:

		    <ul>

		      <li>Where is libtcl: VTK\pcmaker\tcllib\win\tcl83.lib

		      <li>Where is libtk:  VTK\pcmaker\tcllib\win\tk83.lib

		      <li>Library prefix:  vtk

		      <li>Press OK

		    </ul>

		  <li>Press OK and wait until pcmaker terminates

		</ul>

	    </ul>

	    

	  <li>Compiling

	    <ul>

	      <li>Go to Command prompt

	      <li>cd to your MSDEV\vc98\bin directory and execute vcvars32.bat

	      <li>Version without debug information:

		<ul>

		    <li>cd to VTK\pcmaker\lib

		    <li>nmake

		    <li>...and wait patiently

		</ul>

	      <li>Version with debug information:

		<ul>

		    <li>cd to VTK\pcmaker\lib\Debug\

		  <li>nmake

		  <li>...and wait patiently

		</ul>

	    </ul>



	  <li>Copy DLLs

	    <ul>

		<li>Copy all dll files from VTK\lib\lib or

		VTK\lib\Debug\lib to TCL\bin or add one of these to your PATH

	    </ul>

	</ol>



      <li>Running Slicer

	<ul>

	  <li>Run SLICER\program\Go.tcl (assuming that .tcl files are associated with wish.exe)

	</ul>



      <li>If you modify some of the source files

	<ul>

	    <li>Recompile (4.2.) and copy dlls (4.3.)

	</ul>



      <li>If you add new source files

	<ul>

	  <li>Add the name of the new file (without extension) to Makefile.in (to CONCRETE)

	  <li>Run pcmaker (4.1.), recompile (4.2.), and copy dlls (4.3.)

	</ul>

    </ol>



</body>



</html>



More information about the slicer-users mailing list