VTK\Parallel\CMakeLists.txt Line 242.<div><br></div><div><div># Generate "vtkSocketCommunicatorHash.h".</div><div>ADD_CUSTOM_COMMAND(</div><div> OUTPUT ${VTK_BINARY_DIR}/Parallel/vtkSocketCommunicatorHash.h</div>
<div> DEPENDS ${VTK_SOURCE_DIR}/Parallel/vtkSocketCommunicator.cxx</div><div> vtkHashSource</div><div> COMMAND vtkHashSource</div><div> ${VTK_SOURCE_DIR}/Parallel/vtkSocketCommunicator.cxx</div><div> vtkSocketCommunicatorHash vtkSocketCommunicatorHash.h</div>
<div> )</div><div><br></div><div>But setting the ENV at configure time won't help. Probably that command should be cmake -P <small_script> that does set the environment and then execute_process vtkHashSource.</div>
<br><div class="gmail_quote">On Fri, Apr 9, 2010 at 1:46 PM, Michael Jackson <span dir="ltr"><<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Would something like:<br>
<br>
if (VTK_RPATH == OFF && APPLE == TRUE)<br>
set ($ENV{DYLD_LIBRARY_PATH} ${CMAKE_RUNTIME_PATH})<br>
endif()<br>
<br>
I'm going to guess that might have some side effects but not really sure what those might be.<br>
<br>
Where is the CMAKE_CUSTOM_COMMAND located in the ParaView cmake files. I'll give it a shot and see what happens.<br><font color="#888888">
<br>
--</font><div class="im"><br>
Mike Jackson <<a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a>><br>
<br>
<br></div><div><div></div><div class="h5">
On Apr 9, 2010, at 1:31 PM, Dave Partyka wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I haven't had time to track down a good fix for this besides setting my DYLD_LIBRARY_PATH but If you have a fix then I will gladly commit it!<br>
<br>
On Fri, Apr 9, 2010 at 1:30 PM, Eric E. Monson <<a href="mailto:emonson@cs.duke.edu" target="_blank">emonson@cs.duke.edu</a>> wrote:<br>
Hey Mike,<br>
<br>
Are you configuring here with VTK_USE_RPATH = OFF? This is what happens to me, too, if I don't turn it ON.<br>
<br>
Thanks,<br>
-Eric<br>
<br>
------------------------------------------------------<br>
Eric E Monson<br>
Duke Visualization Technology Group<br>
<br>
<br>
On Apr 9, 2010, at 1:06 PM, Michael Jackson wrote:<br>
<br>
> Checkout/updated from CVS this afternoon and a fresh configure and compile I get the following error on OS X 10.5.8:<br>
><br>
> [ 23%] Generating vtkSocketCommunicatorHash.h<br>
> dyld: Library not loaded: libvtksys.pv3.8.dylib<br>
> Referenced from: /Users/Shared/Kitware-CVS/ParaView3/Build/VTK/Parallel/../../bin/vtkHashSource<br>
> Reason: image not found<br>
> /bin/sh: line 1: 19254 Trace/BPT trap ../../bin/vtkHashSource /Users/Shared/Kitware-CVS/ParaView3/VTK/Parallel/vtkSocketCommunicator.cxx vtkSocketCommunicatorHash vtkSocketCommunicatorHash.h<br>
> make[2]: *** [VTK/Parallel/vtkSocketCommunicatorHash.h] Error 133<br>
> make[1]: *** [VTK/Parallel/CMakeFiles/vtkParallel.dir/all] Error 2<br>
> make: *** [all] Error 2<br>
><br>
> The issue is that the libraries do not have a full install_name on them which forces me to remember to "export DYLD_LIBRARY_PATH=`pwd`/bin" from the build folder. Can this be added to the CMake custom command for OS X? I seem to hit this error every time I do a fresh configure.<br>
><br>
> ___________________________________________________________<br>
> Mike Jackson <a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a><br>
> Principal Software Engineer <a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a><br>
> BlueQuartz Software Dayton, Ohio<br>
</blockquote>
<br>
<br>
</div></div></blockquote></div><br></div>