Generally, to find the vtk package in a source tree, you either do:<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><div><br></div>
<div>Goodwin</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>