Hi Bill, Goodwin,<div> I have some notes on this, in particular setting up paths which may be useful.</div><div> Please see the attachment.</div><div><br></div><div>Regards</div><div> Andrew</div><div><br><br><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>---------- Forwarded message ----------<br>From: Goodwin Lawlor <<a href="mailto:goodwin.lawlor.lists@gmail.com">goodwin.lawlor.lists@gmail.com</a>><br>
To: Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>Cc: VTK Developers <<a href="mailto:vtk-developers@vtk.org">vtk-developers@vtk.org</a>><br>Date: Tue, 15 May 2012 18:39:37 +0100<br>
Subject: Re: [vtk-developers] Location of tcl libs<br><div class="gmail_quote"><br></div><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Generally, to find the vtk package in a source tree, you either do:</blockquote>
<div><br></div><div>That should be *build* tree....</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br></div><div>export TCLIBPATH=/home/bill/builds/vtk/Wrapping/Tcl</div>
<div><br></div><div>or in a tcl script</div><div><br></div><div>lappend auto_path
/home/bill/builds/vtk/Wrapping/Tcl </div><div><br></div><div>It sounds like that the vtk package is found but it's mixing up the location of the shared libs.</div><div><br></div><div>On *nix the shared libs are created in ${VTK_BINARY_DIR}/lib and that same directory is hardcoded in the pkgIndex.tcl file.</div>
<div><br></div><div>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)</div><div><br></div><div>::vtk::init::load_library_package {vtk${kit}TCL} {
/home/bill/builds/vtk/lib}</div><div><br></div><div>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</div><div><br></div>
<div>For an install tree, the directory will relative:</div><div><br></div><div><div>::vtk::init::load_library_package {vtk${kit}TCL} {[file dirname [file dirname [file dirname [info script]]]]}</div></div><span><font color="#888888"><div>
<br></div>
<div>Goodwin</div></font></span><div><div><div><br><div><div><br><div class="gmail_quote">On Tue, May 15, 2012 at 5:29 PM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This is my first attempt to run tcl tests for VTK6.<br>
<br>
When I run the executable vtk and type<br>
package require vtk<br>
<br>
it seems that tcl is looking for the shared tcl libs in vtk's bin dir,<br>
yet the libs are in vtk's lib dir.<br>
<br>
Do I need to set something in my CMake file or environment.<br>
<br>
Running on Fedora 13.<br>
<br>
Bill<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
</blockquote></div><br></div></div></div>
</div></div></blockquote></div><br>
<br><br>---------- Forwarded message ----------<br>From: Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>To: Goodwin Lawlor <<a href="mailto:goodwin.lawlor.lists@gmail.com">goodwin.lawlor.lists@gmail.com</a>><br>
Cc: VTK Developers <<a href="mailto:vtk-developers@vtk.org">vtk-developers@vtk.org</a>><br>Date: Tue, 15 May 2012 13:41:28 -0400<br>Subject: Re: [vtk-developers] Location of tcl libs<br>For some reason my CMakeCache.txt file had an internal variable<br>
LIBRARY_OUTPUT_PATH set to the vtk bin directory. I have not cleaned<br>
this cache for a few weeks. I suspect that something was fixed<br>
regarding the tcl wrapping.<br>
<br>
I deleted the internal cache variable and all seems fine now.<br>
<br>
Thanks,<br>
<br>
Bill<br>
<br>
<br>
On Tue, May 15, 2012 at 1:36 PM, Goodwin Lawlor<br>
<<a href="mailto:goodwin.lawlor.lists@gmail.com">goodwin.lawlor.lists@gmail.com</a>> wrote:<br>
> Generally, to find the vtk package in a source tree, you either do:<br>
><br>
> export TCLIBPATH=/home/bill/builds/vtk/Wrapping/Tcl<br>
><br>
> or in a tcl script<br>
><br>
> lappend auto_path /home/bill/builds/vtk/Wrapping/Tcl<br>
><br>
> It sounds like that the vtk package is found but it's mixing up the location<br>
> of the shared libs.<br>
><br>
> On *nix the shared libs are created in ${VTK_BINARY_DIR}/lib and that same<br>
> directory is hardcoded in the pkgIndex.tcl file.<br>
><br>
> In your file /home/bill/builds/vtk/Wrapping/Tcl/pkgIndex.tcl<br>
> or /home/bill/builds/vtk/Wrapping/Tcl/Debug/pkgIndex.tcl you should see a<br>
> line (38)<br>
><br>
> ::vtk::init::load_library_package {vtk${kit}TCL} {<br>
> /home/bill/builds/vtk/lib}<br>
><br>
> For a build tree, that directory in the curly braces should<br>
> match ${VTK_BINARY_DIR}/lib - aka LIBRARY_OUTPUT_PATH -<br>
> aka CMAKE_LIBRARY_OUTPUT_DIRECTORY<br>
><br>
> For an install tree, the directory will relative:<br>
><br>
> ::vtk::init::load_library_package {vtk${kit}TCL} {[file dirname [file<br>
> dirname [file dirname [info script]]]]}<br>
><br>
> Goodwin<br>
><br>
><br>
> On Tue, May 15, 2012 at 5:29 PM, Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
> wrote:<br>
>><br>
>> This is my first attempt to run tcl tests for VTK6.<br>
>><br>
>> When I run the executable vtk and type<br>
>> package require vtk<br>
>><br>
>> it seems that tcl is looking for the shared tcl libs in vtk's bin dir,<br>
>> yet the libs are in vtk's lib dir.<br>
>><br>
>> Do I need to set something in my CMake file or environment.<br>
>><br>
>> Running on Fedora 13.<br>
>><br>
>> Bill<br>
>> _______________________________________________<br>
>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at<br>
>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
>><br>
><br>
<br>
<br>
<br>
--<br>
Unpaid intern in BillsBasement at noware dot com<br>
<br>
<br><br><div>-- <br>___________________________________________<br>Andrew J. P. Maclean<br><br>___________________________________________<br>
</div>
<br>_______________________________________________<br>
vtk-developers mailing list<br>
<a href="mailto:vtk-developers@vtk.org">vtk-developers@vtk.org</a><br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>___________________________________________<br>Andrew J. P. Maclean<br><br>___________________________________________<br>
</div>