[vtkusers] VTK/TCL/OSX-Tiger

David Cole david.cole at kitware.com
Mon Dec 19 08:23:44 EST 2005


Have you built VTK from source? If so, and you have VTK_WRAP_TCL on, you 
can use the "bin/vtk" executable as if it were wish. It will 
automatically load all the VTK package dylibs properly without any extra 
work.

HTH,
David

Corrie Allen wrote:

> Hi,
> I'm trying to learn VTK programming with TCL.  However, when I try the 
> tutorials, I get the following messages:
>
> [CBABigMac:/] corrie# wish cone6.tcl
> image not found
> can't find package vtkCommonTCL 4.4
> can't find package vtkcommon 4.4
> Error in startup script: can't find package vtk
>     while executing
> "package require vtk"
>     (file "cone6.tcl" line 18)
>
> I checked the TCL auto_path and unix path but don't know if they are 
> pointing TCL in the right direction for VTK.  And for the auto_path, I 
> don't know where to start if I need to change it.
>
> [CBABigMac:/] corrie# wish
> % puts $auto_path
> /VTK/VTK_bin/wrapping/TCL 
> /Library/Frameworks/Tcl.framework/Versions/8.4/Resources/Scripts 
> /Library/Frameworks/Tcl.framework/Versions/8.4/Resources 
> /usr/bin/../../Library/Frameworks/Tk.framework/Versions/8.4/Resources/Wish.app/Contents/lib 
> ~/Library/Tcl /Library/Tcl /Network/Library/Tcl /System/Library/Tcl 
> ~/Library/Frameworks /Library/Frameworks /Network/Library/Frameworks 
> /System/Library/Frameworks /System/Library/Tcl/tcllib1.6 
> /System/Library/Tcl/tklib0.2 /Library/Tcl/CarbonCritLib 
> /Library/Tcl/CritLib /Library/Tcl/tcllib1.7 /Library/Tcl/tklib0.2 
> /Library/Frameworks/Tk.framework/Versions/8.4/Resources/Scripts
>
> [CBABigMac:/] corrie# echo $path
> /bin /sbin /usr/bin /usr/sbin /usr/X11R6/bin /usr/X11R6/lib 
> /usr/local/bin /usr/local/man . /gcc-3.4.4/gcc344bin /VTK/VTK_bin/bin
>
> I using a Mac G4, 733 mHz, OSX 10.4.3 and VTK 4.4.  I get the same 
> errors if I use TCL compiled on my machine or the binaries from 
> ActiveState.  Any clues as to how to fix this will certainly be 
> appreciated.
> Corrie
>
> Corrie Allen, Ph.D.
>
> Lone Wolf Bioscience
>
>
> lonewolfbiosci at verizon.net <mailto:lonewolfbiosci at verizon.net>
>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>This is the private VTK discussion list. 
>Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
>  
>



More information about the vtkusers mailing list