[Paraview] Compile Error on Fresh ParaView-3-8 checkout on OS X

Dave Partyka dave.partyka at kitware.com
Thu May 6 15:29:53 EDT 2010


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.

On Thu, May 6, 2010 at 3:26 PM, Eric E. Monson <emonson at cs.duke.edu> wrote:

> Hey Dave,
>
> 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.
>
> I can put this in on the bug tracker if it will help.
>
> Thanks,
> -Eric
>
> ------------------------------------------------------
> Eric E Monson
> Duke Visualization Technology Group
>
>
> On Apr 9, 2010, at 2:33 PM, Michael Jackson wrote:
>
> > # Generate "vtkSocketCommunicatorHash.h".
> > if (APPLE AND NOT VTK_USE_RPATH)
> >       file(WRITE ${ParaView_BINARY_DIR}/bin/vtkHashSource.sh
> "#!/bin/sh\n" )
> >       file(APPEND ${ParaView_BINARY_DIR}/bin/vtkHashSource.sh "export
> DYLD_LIBRARY_PATH=${ParaView_BINARY_DIR}/bin\n" )
> >       file(APPEND ${ParaView_BINARY_DIR}/bin/vtkHashSource.sh "cd
> ${ParaView_BINARY_DIR}/bin\n" )
> >       file(APPEND ${ParaView_BINARY_DIR}/bin/vtkHashSource.sh
> "./vtkHashSource ${VTK_SOURCE_DIR}/Parallel/vtkSocketCommunicator.cxx
> vtkSocketCommunicatorHash
>  ${VTK_BINARY_DIR}/Parallel/vtkSocketCommunicatorHash.h\n")
> >       ADD_CUSTOM_COMMAND(
> >               OUTPUT
> ${VTK_BINARY_DIR}/Parallel/vtkSocketCommunicatorHash.h
> >         DEPENDS ${ParaView_BINARY_DIR}/bin/vtkHashSource.sh
> ${VTK_SOURCE_DIR}/Parallel/vtkSocketCommunicator.cxx
> >                 vtkHashSource
> >         COMMAND /bin/chmod ugo+rx
> ${ParaView_BINARY_DIR}/bin/vtkHashSource.sh
> >         COMMAND ${ParaView_BINARY_DIR}/bin/vtkHashSource.sh)
> > else()
> >       ADD_CUSTOM_COMMAND(
> >         OUTPUT ${VTK_BINARY_DIR}/Parallel/vtkSocketCommunicatorHash.h
> >         DEPENDS ${VTK_SOURCE_DIR}/Parallel/vtkSocketCommunicator.cxx
> >                 vtkHashSource
> >         COMMAND vtkHashSource
> >           ${VTK_SOURCE_DIR}/Parallel/vtkSocketCommunicator.cxx
> >           vtkSocketCommunicatorHash vtkSocketCommunicatorHash.h
> >         )
> > endif()
> >
> > Watch the wrapping on that. The email list will mess it up
> > ___________________________________________________________
> > Mike Jackson                      www.bluequartz.net
> > Principal Software Engineer       mike.jackson at bluequartz.net
> > BlueQuartz Software               Dayton, Ohio
> >
> >
> > On Apr 9, 2010, at 1:50 PM, Dave Partyka wrote:
> >
> >> VTK\Parallel\CMakeLists.txt Line 242.
> >>
> >> # Generate "vtkSocketCommunicatorHash.h".
> >> ADD_CUSTOM_COMMAND(
> >>  OUTPUT ${VTK_BINARY_DIR}/Parallel/vtkSocketCommunicatorHash.h
> >>  DEPENDS ${VTK_SOURCE_DIR}/Parallel/vtkSocketCommunicator.cxx
> >>          vtkHashSource
> >>  COMMAND vtkHashSource
> >>    ${VTK_SOURCE_DIR}/Parallel/vtkSocketCommunicator.cxx
> >>    vtkSocketCommunicatorHash vtkSocketCommunicatorHash.h
> >>  )
> >>
> >> 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.
> >>
> >> On Fri, Apr 9, 2010 at 1:46 PM, Michael Jackson <
> mike.jackson at bluequartz.net> wrote:
> >> Would something like:
> >>
> >> if (VTK_RPATH == OFF && APPLE == TRUE)
> >> set ($ENV{DYLD_LIBRARY_PATH} ${CMAKE_RUNTIME_PATH})
> >> endif()
> >>
> >> I'm going to guess that might have some side effects but not really sure
> what those might be.
> >>
> >> Where is the CMAKE_CUSTOM_COMMAND located in the ParaView cmake files.
> I'll give it a shot and see what happens.
> >>
> >> --
> >>
> >> Mike Jackson <www.bluequartz.net>
> >>
> >>
> >> On Apr 9, 2010, at 1:31 PM, Dave Partyka wrote:
> >>
> >> 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!
> >>
> >> On Fri, Apr 9, 2010 at 1:30 PM, Eric E. Monson <emonson at cs.duke.edu>
> wrote:
> >> Hey Mike,
> >>
> >> Are you configuring here with VTK_USE_RPATH = OFF? This is what happens
> to me, too, if I don't turn it ON.
> >>
> >> Thanks,
> >> -Eric
> >>
> >> ------------------------------------------------------
> >> Eric E Monson
> >> Duke Visualization Technology Group
> >>
> >>
> >> On Apr 9, 2010, at 1:06 PM, Michael Jackson wrote:
> >>
> >> > Checkout/updated from CVS this afternoon and a fresh configure and
> compile I get the following error on OS X 10.5.8:
> >> >
> >> > [ 23%] Generating vtkSocketCommunicatorHash.h
> >> > dyld: Library not loaded: libvtksys.pv3.8.dylib
> >> >  Referenced from:
> /Users/Shared/Kitware-CVS/ParaView3/Build/VTK/Parallel/../../bin/vtkHashSource
> >> >  Reason: image not found
> >> > /bin/sh: line 1: 19254 Trace/BPT trap          ../../bin/vtkHashSource
> /Users/Shared/Kitware-CVS/ParaView3/VTK/Parallel/vtkSocketCommunicator.cxx
> vtkSocketCommunicatorHash vtkSocketCommunicatorHash.h
> >> > make[2]: *** [VTK/Parallel/vtkSocketCommunicatorHash.h] Error 133
> >> > make[1]: *** [VTK/Parallel/CMakeFiles/vtkParallel.dir/all] Error 2
> >> > make: *** [all] Error 2
> >> >
> >> > 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.
> >> >
> >> > ___________________________________________________________
> >> > Mike Jackson                      www.bluequartz.net
> >> > Principal Software Engineer       mike.jackson at bluequartz.net
> >> > BlueQuartz Software               Dayton, Ohio
> >>
> >>
> >>
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.paraview.org/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100506/f774516f/attachment-0001.htm>


More information about the ParaView mailing list