[vtk-developers] Location of tcl libs

Andrew Maclean andrew.amaclean at gmail.com
Tue May 15 18:56:41 EDT 2012


Hi Bill, Goodwin,
   I have some notes on this, in particular setting up paths which may be
useful.
  Please see the attachment.

Regards
   Andrew



> ---------- Forwarded message ----------
> From: Goodwin Lawlor <goodwin.lawlor.lists at gmail.com>
> To: Bill Lorensen <bill.lorensen at gmail.com>
> Cc: VTK Developers <vtk-developers at vtk.org>
> Date: Tue, 15 May 2012 18:39:37 +0100
> Subject: Re: [vtk-developers] Location of tcl libs
>
>
> 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
>>>
>>>
>>
>
>
> ---------- Forwarded message ----------
> From: Bill Lorensen <bill.lorensen at gmail.com>
> To: Goodwin Lawlor <goodwin.lawlor.lists at gmail.com>
> Cc: VTK Developers <vtk-developers at vtk.org>
> Date: Tue, 15 May 2012 13:41:28 -0400
> Subject: Re: [vtk-developers] Location of tcl libs
> 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
>
>
>
> --
> ___________________________________________
> Andrew J. P. Maclean
>
> ___________________________________________
>
> _______________________________________________
> vtk-developers mailing list
> vtk-developers at vtk.org
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>


-- 
___________________________________________
Andrew J. P. Maclean

___________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20120516/76fe7a54/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SettingUpLinuxForVTK
Type: application/octet-stream
Size: 2106 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20120516/76fe7a54/attachment-0001.obj>


More information about the vtk-developers mailing list