[vtk-developers] Location of tcl libs

Goodwin Lawlor goodwin.lawlor.lists at gmail.com
Tue May 15 13:39:37 EDT 2012


Generally, to find the vtk package in a source tree, you either do:


That should be *build* tree....



>
> export TCLIBPATH=/home/bill/builds/vtk/Wrapping/Tcl
>
> or in a tcl script
>
> lappend auto_path  /home/bill/builds/vtk/Wrapping/Tcl
>
> It sounds like that the vtk package is found but it's mixing up the
> location of the shared libs.
>
> On *nix the shared libs are created in ${VTK_BINARY_DIR}/lib and that same
> directory is hardcoded in the pkgIndex.tcl file.
>
> In your file /home/bill/builds/vtk/Wrapping/Tcl/pkgIndex.tcl
> or  /home/bill/builds/vtk/Wrapping/Tcl/Debug/pkgIndex.tcl you should see a
> line (38)
>
> ::vtk::init::load_library_package {vtk${kit}TCL} {
> /home/bill/builds/vtk/lib}
>
> For a build tree, that directory in the curly braces should
> match ${VTK_BINARY_DIR}/lib - aka LIBRARY_OUTPUT_PATH -
> aka CMAKE_LIBRARY_OUTPUT_DIRECTORY
>
> For an install tree, the directory will relative:
>
> ::vtk::init::load_library_package {vtk${kit}TCL} {[file dirname [file
> dirname [file dirname [info script]]]]}
>
> Goodwin
>
>
> On Tue, May 15, 2012 at 5:29 PM, Bill Lorensen <bill.lorensen at gmail.com>wrote:
>
>> This is my first attempt to run tcl tests for VTK6.
>>
>> When I run the executable vtk and type
>> package require vtk
>>
>> it seems that tcl is looking for the shared tcl libs in vtk's bin dir,
>> yet the libs are in vtk's lib dir.
>>
>> Do I need to set something in my CMake file or environment.
>>
>> Running on Fedora 13.
>>
>> Bill
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtk-developers
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20120515/c2c9768c/attachment.html>


More information about the vtk-developers mailing list