Thanks for packaging VTK! <div><br></div><div>And also for bringing the issue to our attention. We will try to take a look at this during the next release cycle. For best results please try out the release candidates and complain if it has not been fixed.<div>

<div><br></div><div>David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: <a href="tel:518-881-4909" value="+15188814909" target="_blank">518-881-4909</a><br>

<br><br><div class="gmail_quote">On Tue, Jan 24, 2012 at 4:57 PM, Samuel John <span dir="ltr"><<a href="mailto:mail@samueljohn.de" target="_blank">mail@samueljohn.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Warm greetings to the vtk devs!<br>
VTK is wonderful. ;-)<br>
<br>
I have updated the homebrew (<a href="http://mxcl.github.com/homebrew/" target="_blank">http://mxcl.github.com/homebrew/</a>)<br>
vtk.rb formula (<a href="https://github.com/samueljohn/homebrew/blob/master/Library/Formula/vtk.rb" target="_blank">https://github.com/samueljohn/homebrew/blob/master/Library/Formula/vtk.rb</a>),<br>
which is responsible to install vtk with optional `--python` bindings on the Mac. I works.<br>
<br>
However, recently I needed to resort to an ugly work-a-round, and at least I'd like to let you guys know. Or better, get a hint on how to improve.<br>
<br>
Homebrew builds all software packages in a <tempdir> and then moves it to, e.g. /usr/local/Cellar/vtk/<version>/... and /usr/local/lib/vtk is a symlink to that dir.<br>
We use DCMAKE_INSTALL_NAME_DIR and DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON to get the final RPATH correctly written into the libs, even if we build in a <tempdir>.<br>
Then, just during the "make install", we add the <tempdir>/build/bin to DYLD_LIBRARY_PATH and that used to work well, since the freshly built libs can find each other.<br>
Unfortunately, now we get the error:<br>
<br>
> make install<br>
> [...]<br>
> Linking CXX executable ../../bin/vtkpython<br>
> [ 95%] Building CXX object Infovis/CMakeFiles/vtkInfovisPythonD.dir/vtkRISReaderPython.cxx.o<br>
> [ 95%] [ 95%] Building CXX object Infovis/CMakeFiles/vtkInfovisPythonD.dir/vtkRandomGraphSourcePython.cxx.o<br>
> Building CXX object Infovis/CMakeFiles/vtkInfovisPythonD.dir/vtkRandomLayoutStrategyPython.cxx.o<br>
> ld: file not found: /usr/local/Cellar/vtk/5.8.0/lib/vtk-5.8/libvtkDICOMParser.5.8.dylib for architecture x86_64<br>
> collect2: ld returned 1 exit status<br>
> [ 95%] make[2]: *** [bin/vtkpython] Error 1<br>
> make[1]: *** [Wrapping/Python/CMakeFiles/vtkpython.dir/all] Error 2<br>
> make[1]: *** Waiting for unfinished jobs....<br>
<br>
Obviously, some make target associated with python wrapping already expected the a dylib at the target location (where it is not yet).<br>
<br>
Now to my before-mentioned, ugly work-a-round:<br>
Is there a better way than to introduce a temporary symlink:  /usr/local/Cellar/vtk/5.8.0/lib/vtk-5.8 --->  <tempdir>/build/bin ???<br>
I put this symlink, then "make" then remove that symlink, then "make install". Seems to work. Python can import vtk.<br>
<br>
bests,<br>
 Samuel<br>
<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>