[vtkusers] RE: [CMake] tcl wrapping & LocalUserOptions.cmake

Dean Inglis dean.inglis at camris.ca
Mon Sep 27 16:32:50 EDT 2004


Brad,

thanks for trying, but I think I'm out of my element at the 
moment when it comes to understanding Tcl wrapping.  I submitted 
a feature request to the vtk bug tracker last week to see if 
someone could set up a working LocalUserOptions.cmake in 
VTK/Examples/Build/vtkMy, since my attempt clearly does not work.

Dean

>Dean Inglis wrote:
>> my out of source incarnation of VTK/Examples/Build/vtkMy 
>> is called "vtkLocal" for lack of a better name: sorry if this
>> is confusing.  So, in a tcl script to test one of
>> my classes, I thought I should only have to write
>> package require vtk
>> package require vtklocal
>> 
>> at a cmd prompt what I am now getting is:
>> ::vtk::load_component: vtkLocalGraphicsTCL could not be found.
>> + an error message window explaining about the TCLLIBPATH settings etc.
>
>If I remember correctly, the load_component procedure should not be 
>getting called for a static build because the library is linked into the 
>executable.  The "init" procedure for the package should be doing a 
>Tcl_PkgProvides(interp, "vtkLocalGraphicsTCL").  That way when someone 
>requests the package Tcl knows it is already initialized.





More information about the vtkusers mailing list