[vtkusers] One question on Tcl
H.Huisman at rad.umcn.nl
H.Huisman at rad.umcn.nl
Mon Jan 15 03:31:54 EST 2007
Check that the TCLLIBPATH dir points at at pkgIndex.tcl file. Your path
definition looks weird with 3 VTK's in it. You might want to consider
using from an install dir. Type make install after compiling vtk.
HJ
-----Oorspronkelijk bericht-----
Van: Sawsan Ahmed [mailto:sawsanahm at yahoo.com]
Verzonden: zondag 14 januari 2007 16:12
Aan: vtkusers at vtk.org
Onderwerp: [vtkusers] One question on Tcl
Hello Friends,
I can run tcl scripts from bin directory
in my linux box.In my .bash_profile,I have set the
following environment variables:
VTK_DATA_ROOT="/usr/local/share/VTKData"
PATH=$PATH:$HOME/bin:/usr/local/src/VTK/VTK/VTK-build/bin
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/src/VTK/VTK/VTK-build/bin
TCLLIBPATH=$TCLLIBPATH:/usr/local/src/VTK/VTK/VTK/Wrapping/Tcl
export VTK_DATA_ROOT PATH LD_LIBRARY_PATH TCLLIBPATH
But when I try to run tcl scripts from Examples
directory,I get the following error message:
------------------------------------------------------------
vtk Medical1.tcl
Error in startup script: The Tcl interpreter was
probably not able to find the VTK packages. Please
check that your TCLLIBPATH environment variable
includes the path to your VTK Tcl directory. You
might find it under your VTK binary directory in
Wrapping/Tcl, or under your site-specific installation
directory. The TCLLIBPATH current value is:
:/usr/local/src/VTK/VTK/VTK/Wrapping/Tcl. The
TCLLIBPATH variable is a set of space separated paths
(hence, path containing spaces should be surrounded by
quotes first). Windows users should use forward
(Unix-style) slashes '/' instead of the usual backward
slashes. More informations can be found in the
Wrapping/Tcl/README source file (also available online
at
http://www.vtk.org/cgi-bin/cvsweb.cgi/~checkout~/VTK/Wrapping/Tcl/README
).
can't find package vtk
while executing
"package.orig require vtk"
("eval" body line 1)
invoked from within
"eval package.orig $args"
(procedure "package" line 2)
invoked from within
"package require vtk"
(file "Medical1.tcl" line 1)
------------------------------------------------------
---------------------------------------------------
2. I think I have set the correct TCLLIBPATH as
mentioned in the document.Why still I am getting the
error?Could anyone help me to figure out the problem?
regards,
Sawsan.
________________________________________________________________________
____________
Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites
to find flight and hotel bargains.
http://farechase.yahoo.com/promo-generic-14795097
________________________________________________________________________
____________
No need to miss a message. Get email on-the-go
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail
More information about the vtkusers
mailing list