<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Okay, here you go:<div><br></div><div><a href="http://www.paraview.org/Bug/view.php?id=10685">http://www.paraview.org/Bug/view.php?id=10685</a></div><div><br></div><div>Thanks a lot,</div><div>-Eric</div><div><br><div><div>On May 6, 2010, at 3:29 PM, Dave Partyka wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">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"><<a href="mailto:emonson@cs.duke.edu">emonson@cs.duke.edu</a>></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's patch worked well for me, too. Would you be able to get this into the git head? It'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>
> # Generate "vtkSocketCommunicatorHash.h".<br>
> if (APPLE AND NOT VTK_USE_RPATH)<br>
> file(WRITE ${ParaView_BINARY_DIR}/bin/vtkHashSource.sh "#!/bin/sh\n" )<br>
> file(APPEND ${ParaView_BINARY_DIR}/bin/vtkHashSource.sh "export DYLD_LIBRARY_PATH=${ParaView_BINARY_DIR}/bin\n" )<br>
> file(APPEND ${ParaView_BINARY_DIR}/bin/vtkHashSource.sh "cd ${ParaView_BINARY_DIR}/bin\n" )<br>
> file(APPEND ${ParaView_BINARY_DIR}/bin/vtkHashSource.sh "./vtkHashSource ${VTK_SOURCE_DIR}/Parallel/vtkSocketCommunicator.cxx vtkSocketCommunicatorHash ${VTK_BINARY_DIR}/Parallel/vtkSocketCommunicatorHash.h\n")<br>
> ADD_CUSTOM_COMMAND(<br>
> OUTPUT ${VTK_BINARY_DIR}/Parallel/vtkSocketCommunicatorHash.h<br>
> DEPENDS ${ParaView_BINARY_DIR}/bin/vtkHashSource.sh ${VTK_SOURCE_DIR}/Parallel/vtkSocketCommunicator.cxx<br>
> vtkHashSource<br>
> COMMAND /bin/chmod ugo+rx ${ParaView_BINARY_DIR}/bin/vtkHashSource.sh<br>
> COMMAND ${ParaView_BINARY_DIR}/bin/vtkHashSource.sh)<br>
> else()<br>
> ADD_CUSTOM_COMMAND(<br>
> OUTPUT ${VTK_BINARY_DIR}/Parallel/vtkSocketCommunicatorHash.h<br>
> DEPENDS ${VTK_SOURCE_DIR}/Parallel/vtkSocketCommunicator.cxx<br>
> vtkHashSource<br>
> COMMAND vtkHashSource<br>
> ${VTK_SOURCE_DIR}/Parallel/vtkSocketCommunicator.cxx<br>
> vtkSocketCommunicatorHash vtkSocketCommunicatorHash.h<br>
> )<br>
> endif()<br>
><br>
> Watch the wrapping on that. The email list will mess it up<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">mike.jackson@bluequartz.net</a><br>
> BlueQuartz Software Dayton, Ohio<br>
><br>
><br>
> On Apr 9, 2010, at 1:50 PM, Dave Partyka wrote:<br>
><br>
>> VTK\Parallel\CMakeLists.txt Line 242.<br>
>><br>
>> # Generate "vtkSocketCommunicatorHash.h".<br>
>> ADD_CUSTOM_COMMAND(<br>
>> OUTPUT ${VTK_BINARY_DIR}/Parallel/vtkSocketCommunicatorHash.h<br>
>> DEPENDS ${VTK_SOURCE_DIR}/Parallel/vtkSocketCommunicator.cxx<br>
>> vtkHashSource<br>
>> COMMAND vtkHashSource<br>
>> ${VTK_SOURCE_DIR}/Parallel/vtkSocketCommunicator.cxx<br>
>> vtkSocketCommunicatorHash vtkSocketCommunicatorHash.h<br>
>> )<br>
>><br>
>> 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.<br>
>><br>
>> On Fri, Apr 9, 2010 at 1:46 PM, Michael Jackson <<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>> wrote:<br>
>> 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>
>><br>
>> --<br>
>><br>
>> Mike Jackson <<a href="http://www.bluequartz.net/" target="_blank">www.bluequartz.net</a>><br>
>><br>
>><br>
>> On Apr 9, 2010, at 1:31 PM, Dave Partyka wrote:<br>
>><br>
>> 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">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">mike.jackson@bluequartz.net</a><br>
>> > BlueQuartz Software Dayton, Ohio<br>
>><br>
>><br>
>><br>
><br>
</div></div><div><div></div><div class="h5">> _______________________________________________<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>
> 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>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <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>
</blockquote></div><br></div></body></html>