[vtkusers] can not find vtk package needed in tcl

付文宇 fuwenyu at emails.bjut.edu.cn
Tue Feb 13 07:06:00 EST 2007


hi everyone
   i want to run examples written by tcl, but i have encontered a problem which i
can not resolve. when i run tcl
programme in wish84(tcl for windows;tcl 8.4.12;tk 8.4.12;my os is windows xp
home), for example, i write such 
code "(bin) 1 % package require vtk", the result is "can't find package vtk". i
have installed vtk(vtk 5.0.2) followed 
the instructions below:
"Start CMake. Enable Show Advanced Values and fill out or verify the following
fields (most of them should have the 
correct values already). 
Where is the source code: C:\VTK\
Where to build the binaries: C:\vtkbin\
VTK WRAP TCL EXE=C:/vtkbin/bin/$(IntDir)/vtkWrapTcl.exe
VTK WRAP HINTS=C:/VTK/Wrapping/hints
VTK USE 64BIT IDS=OFF
VTK MANGLE MESA=OFF
VTK DISPLAY WIN32 WARNINGS=OFF
VTK DEBUG LEAKS=OFF
VTK XLIB PATH=C:/Tcl/include
TK WISH=C:/Tcl/bin/wish83.exe
TK LIBRARY=C:/Tcl/lib/tk83.lib
TK INTERNAL PATH=C:/VTK/Rendering/tkInternals/tk83
TK INCLUDE PATH=C:/Tcl/include
TCL TCLSH=C:/Tcl/bin/tclsh83.exe
TCL LIBRARY=C:/Tcl/lib/tcl83.lib
TCL INCLUDE PATH=C:/Tcl/include
LIBRARY OUTPUT PATH=C:/vtkbin/bin
EXECUTABLE OUTPUT PATH=C:/vtkbin/bin
CMAKE USE WIN32 THREADS=ON
CMAKE MAKE PROGRAM=msdev
CMAKE EXTRA LINK FLAGS=/STACK:10000000
CMAKE CXX FLAGS RELWITHDEBINFO=/MD /Zi /O2
CMAKE CXX FLAGS RELEASE=/MD /O2
CMAKE CXX FLAGS MINSIZEREL=/MD /O1
CMAKE CXX FLAGS DEBUG=/MDd /Zi /Od /GZ
CMAKE CXX COMPILER=cl
CMAKETEST COMMAND=NOTFOUND
BUILD DOCUMENTATION=OFF
BUILD EXAMPLES=ON
BUILD SHARED LIBS=ON1
BUILD TESTING=ON
CMAKE CXX FLAGS=/W3 /Zm1000 /GX /GR
DART ROOT=NOTFOUND
OPENGL LIBRARY=opengl32
VTK DATA ROOT=C:/VTKData
VTK USE ANSI STDLIB=OFF2
VTK USE HYBRID=ON
VTK USE MATROX IMAGING=OFF
VTK USE PARALLEL=OFF
VTK USE PATENTED=ON
VTK USE RENDERING=ON
VTK USE VIDEO FOR WINDOWS=OFF
VTK USE VOLUMEPRO=OFF
VTK WRAP JAVA=OFF
VTK WRAP PYTHON=OFF
VTK WRAP TCL=ON
Press Configure and resolve any fields marked with red, repeat until everything
is ok. After this press OK, this will cause directory C:\vtkbin to be created and
filled with a project ready to be built.

  Building VTK
Open the project workspace C:\vtkbin\VTK.dsw with Visual C++. Build the debug and
the release version of the ALL 
BUILD project.3
 Setting Up the System
Add C:/vtkbin/bin/release to the system path. Add TCLLIBPATH=c:/vtk/wrapping/tcl
as an environment variable "

after i installed vtk, i can run tcl file by right click tcl file and choose
¡°open with¡±, select
 C:/vtkbin/bin/Release/vtk.exe as program and confirm that this program shall
always be used with .tcl files.
i want to run tcl file in wish84, and i thanks in advance for everyone  who gives
advices. 

  fuwenyu 
  2006.02.113





More information about the vtkusers mailing list