[vtk-developers] Location of tcl libs

Bill Lorensen bill.lorensen at gmail.com
Tue May 15 13:41:28 EDT 2012


For some reason my CMakeCache.txt file had an internal variable
LIBRARY_OUTPUT_PATH set to the vtk bin directory. I have not cleaned
this cache for a few weeks. I suspect that something was fixed
regarding the tcl wrapping.

I deleted the internal cache variable and all seems fine now.

Thanks,

Bill


On Tue, May 15, 2012 at 1:36 PM, Goodwin Lawlor
<goodwin.lawlor.lists at gmail.com> wrote:
> Generally, to find the vtk package in a source tree, you either do:
>
> 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
>>
>



-- 
Unpaid intern in BillsBasement at noware dot com



More information about the vtk-developers mailing list