Yes Please make a bug. I want to make some tweaks to it and should be able to merge it in the next few days.<br><br><div class="gmail_quote">On Thu, May 6, 2010 at 3:26 PM, Eric E. Monson <span dir="ltr">&lt;<a href="mailto:emonson@cs.duke.edu">emonson@cs.duke.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hey Dave,<br>
<br>
Mike&#39;s patch worked well for me, too. Would you be able to get this into the git head? It&#39;s really nice to be able to build on OS X with RPATH OFF without extra (outside CMake) requirements.<br>
<br>
I can put this in on the bug tracker if it will help.<br>
<div class="im"><br>
Thanks,<br>
-Eric<br>
<br>
------------------------------------------------------<br>
Eric E Monson<br>
Duke Visualization Technology Group<br>
<br>
<br>
</div><div><div></div><div class="h5">On Apr 9, 2010, at 2:33 PM, Michael Jackson wrote:<br>
<br>
&gt; # Generate &quot;vtkSocketCommunicatorHash.h&quot;.<br>
&gt; if (APPLE AND NOT VTK_USE_RPATH)<br>
&gt;       file(WRITE ${ParaView_BINARY_DIR}/bin/vtkHashSource.sh &quot;#!/bin/sh\n&quot; )<br>
&gt;       file(APPEND ${ParaView_BINARY_DIR}/bin/vtkHashSource.sh &quot;export DYLD_LIBRARY_PATH=${ParaView_BINARY_DIR}/bin\n&quot; )<br>
&gt;       file(APPEND ${ParaView_BINARY_DIR}/bin/vtkHashSource.sh &quot;cd ${ParaView_BINARY_DIR}/bin\n&quot; )<br>
&gt;       file(APPEND ${ParaView_BINARY_DIR}/bin/vtkHashSource.sh &quot;./vtkHashSource ${VTK_SOURCE_DIR}/Parallel/vtkSocketCommunicator.cxx vtkSocketCommunicatorHash  ${VTK_BINARY_DIR}/Parallel/vtkSocketCommunicatorHash.h\n&quot;)<br>

&gt;       ADD_CUSTOM_COMMAND(<br>
&gt;               OUTPUT ${VTK_BINARY_DIR}/Parallel/vtkSocketCommunicatorHash.h<br>
&gt;         DEPENDS ${ParaView_BINARY_DIR}/bin/vtkHashSource.sh ${VTK_SOURCE_DIR}/Parallel/vtkSocketCommunicator.cxx<br>
&gt;                 vtkHashSource<br>
&gt;         COMMAND /bin/chmod ugo+rx ${ParaView_BINARY_DIR}/bin/vtkHashSource.sh<br>
&gt;         COMMAND ${ParaView_BINARY_DIR}/bin/vtkHashSource.sh)<br>
&gt; else()<br>
&gt;       ADD_CUSTOM_COMMAND(<br>
&gt;         OUTPUT ${VTK_BINARY_DIR}/Parallel/vtkSocketCommunicatorHash.h<br>
&gt;         DEPENDS ${VTK_SOURCE_DIR}/Parallel/vtkSocketCommunicator.cxx<br>
&gt;                 vtkHashSource<br>
&gt;         COMMAND vtkHashSource<br>
&gt;           ${VTK_SOURCE_DIR}/Parallel/vtkSocketCommunicator.cxx<br>
&gt;           vtkSocketCommunicatorHash vtkSocketCommunicatorHash.h<br>
&gt;         )<br>
&gt; endif()<br>
&gt;<br>
&gt; Watch the wrapping on that. The email list will mess it up<br>
&gt; ___________________________________________________________<br>
&gt; Mike Jackson                      <a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a><br>
&gt; Principal Software Engineer       <a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a><br>
&gt; BlueQuartz Software               Dayton, Ohio<br>
&gt;<br>
&gt;<br>
&gt; On Apr 9, 2010, at 1:50 PM, Dave Partyka wrote:<br>
&gt;<br>
&gt;&gt; VTK\Parallel\CMakeLists.txt Line 242.<br>
&gt;&gt;<br>
&gt;&gt; # Generate &quot;vtkSocketCommunicatorHash.h&quot;.<br>
&gt;&gt; ADD_CUSTOM_COMMAND(<br>
&gt;&gt;  OUTPUT ${VTK_BINARY_DIR}/Parallel/vtkSocketCommunicatorHash.h<br>
&gt;&gt;  DEPENDS ${VTK_SOURCE_DIR}/Parallel/vtkSocketCommunicator.cxx<br>
&gt;&gt;          vtkHashSource<br>
&gt;&gt;  COMMAND vtkHashSource<br>
&gt;&gt;    ${VTK_SOURCE_DIR}/Parallel/vtkSocketCommunicator.cxx<br>
&gt;&gt;    vtkSocketCommunicatorHash vtkSocketCommunicatorHash.h<br>
&gt;&gt;  )<br>
&gt;&gt;<br>
&gt;&gt; But setting the ENV at configure time won&#39;t help. Probably that command should be cmake -P &lt;small_script&gt; that does set the environment and then execute_process vtkHashSource.<br>
&gt;&gt;<br>
&gt;&gt; On Fri, Apr 9, 2010 at 1:46 PM, Michael Jackson &lt;<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>&gt; wrote:<br>
&gt;&gt; Would something like:<br>
&gt;&gt;<br>
&gt;&gt; if (VTK_RPATH == OFF &amp;&amp; APPLE == TRUE)<br>
&gt;&gt; set ($ENV{DYLD_LIBRARY_PATH} ${CMAKE_RUNTIME_PATH})<br>
&gt;&gt; endif()<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m going to guess that might have some side effects but not really sure what those might be.<br>
&gt;&gt;<br>
&gt;&gt; Where is the CMAKE_CUSTOM_COMMAND located in the ParaView cmake files. I&#39;ll give it a shot and see what happens.<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt;<br>
&gt;&gt; Mike Jackson &lt;<a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Apr 9, 2010, at 1:31 PM, Dave Partyka wrote:<br>
&gt;&gt;<br>
&gt;&gt; I haven&#39;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>
&gt;&gt;<br>
&gt;&gt; On Fri, Apr 9, 2010 at 1:30 PM, Eric E. Monson &lt;<a href="mailto:emonson@cs.duke.edu">emonson@cs.duke.edu</a>&gt; wrote:<br>
&gt;&gt; Hey Mike,<br>
&gt;&gt;<br>
&gt;&gt; Are you configuring here with VTK_USE_RPATH = OFF? This is what happens to me, too, if I don&#39;t turn it ON.<br>
&gt;&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt; -Eric<br>
&gt;&gt;<br>
&gt;&gt; ------------------------------------------------------<br>
&gt;&gt; Eric E Monson<br>
&gt;&gt; Duke Visualization Technology Group<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Apr 9, 2010, at 1:06 PM, Michael Jackson wrote:<br>
&gt;&gt;<br>
&gt;&gt; &gt; Checkout/updated from CVS this afternoon and a fresh configure and compile I get the following error on OS X 10.5.8:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; [ 23%] Generating vtkSocketCommunicatorHash.h<br>
&gt;&gt; &gt; dyld: Library not loaded: libvtksys.pv3.8.dylib<br>
&gt;&gt; &gt;  Referenced from: /Users/Shared/Kitware-CVS/ParaView3/Build/VTK/Parallel/../../bin/vtkHashSource<br>
&gt;&gt; &gt;  Reason: image not found<br>
&gt;&gt; &gt; /bin/sh: line 1: 19254 Trace/BPT trap          ../../bin/vtkHashSource /Users/Shared/Kitware-CVS/ParaView3/VTK/Parallel/vtkSocketCommunicator.cxx vtkSocketCommunicatorHash vtkSocketCommunicatorHash.h<br>
&gt;&gt; &gt; make[2]: *** [VTK/Parallel/vtkSocketCommunicatorHash.h] Error 133<br>
&gt;&gt; &gt; make[1]: *** [VTK/Parallel/CMakeFiles/vtkParallel.dir/all] Error 2<br>
&gt;&gt; &gt; make: *** [all] Error 2<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; The issue is that the libraries do not have a full install_name on them which forces me to remember to &quot;export DYLD_LIBRARY_PATH=`pwd`/bin&quot; 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>

&gt;&gt; &gt;<br>
&gt;&gt; &gt; ___________________________________________________________<br>
&gt;&gt; &gt; Mike Jackson                      <a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a><br>
&gt;&gt; &gt; Principal Software Engineer       <a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a><br>
&gt;&gt; &gt; BlueQuartz Software               Dayton, Ohio<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
</div></div><div><div></div><div class="h5">&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; 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>
&gt;<br>
&gt; Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br>
</div></div></blockquote></div><br>