[vtkusers] Compile error on OS X 10.5

Michael Jackson mike.jackson at bluequartz.net
Thu Apr 29 09:25:00 EDT 2010


So why is it turned OFF on the release branch? Wouldn't this be  
considered a bug?
--
mike jackson

On Apr 29, 2010, at 9:22 AM, Dave Partyka wrote:

> There is a check if the version is the release branch (even minor  
> version number) or the development head (odd minor version number).  
> If it's even, as it is in Bryn's case, VTK_USE_RPATH gets switched  
> to off by default.
>
> As Eric and Mike just said, if you don't need it OFF turning it ON  
> or setting the LD_LIBRARY_PATH to your bin dir should work.
>
> On Thu, Apr 29, 2010 at 9:13 AM, Eric E. Monson  
> <emonson at cs.duke.edu> wrote:
> Hey Bryn,
>
> Is VTK_USE_RPATH = ON or OFF in the CMakeCache.txt file of your  
> build directory? If it's OFF, and you don't need it OFF, then you  
> could try turning it ON in your cmake command and that may be  
> another way to get past this error, too. (At least it used to work  
> for me.)
>
> -Eric
>
> ------------------------------------------------------
> Eric E Monson
> Duke Visualization Technology Group
>
>
> On Apr 29, 2010, at 8:08 AM, Mike Jackson wrote:
>
> > The vtk build system is try to run one of it's own program which  
> links
> > to then vtksys library. The problem is that when vtksys is linked  
> the
> > 'install_name' is not set to a path but just the name of the  
> library.
> > You need to export the DYLD_LIBRARY_PATH environment variable to
> > include the bin directory of your build folder. This assumes  
> makefiles
> > and not Xcode.
> >
> > -----
> > Mike Jackson                      www.bluequartz.net
> > Principal Software Engineer       mike.jackson at bluequartz.net
> > BlueQuartz Software               Dayton, Ohio
> >
> >
> > On Apr 29, 2010, at 3:17, Bryn Lloyd <blloyd at vision.ee.ethz.ch>  
> wrote:
> >
> >> Hi,
> >>
> >> I tried to compile VTK-5.6 on my system, with
> >> gcc-4.0.1
> >> Qt 4.6.2 (Cocoa version)
> >>
> >>
> >> I used following settings:
> >>
> >> cmake \
> >> -DBUILD_SHARED_LIBS=ON \
> >> -DVTK_USE_RENDERING=ON \
> >> -DVTK_USE_PARALLEL=ON \
> >> -DVTK_USE_MPI=OFF \
> >> -DVTK_USE_HYBRID=ON \
> >> -DVTK_USE_GUISUPPORT=ON \
> >> -DVTK_USE_QVTK=ON \
> >> -DVTK_USE_QVTK_QTOPENGL=ON \
> >> -DDESIRED_QT_VERSION=4 \
> >> ../VTK
> >>
> >>
> >> The error is listed below. Thanks for any help or suggestions.
> >> Cheers, Bryn
> >>
> >>
> >> [  0%] Built target vtksys
> >> [  1%] Built target vtkzlib
> >> [  3%] Built target vtkjpeg
> >> [  4%] Built target vtkpng
> >> [  4%] Built target vtkmkg3states
> >> [  6%] Built target vtktiff
> >> [  6%] Built target vtkexpat
> >> [  7%] Built target vtkfreetype
> >> [  8%] Built target vtklibxml2
> >> [  8%] Built target vtkDICOMParser
> >> [  8%] Built target ProcessShader-real
> >> [  8%] Built target ProcessShader
> >> [  8%] Built target vtkMaterialLibraryConfiguredFiles
> >> [ 13%] Built target vtkproj4
> >> [ 13%] Built target lproj
> >> [ 13%] Built target vtkverdict
> >> [ 13%] Built target vtkNetCDF
> >> [ 14%] Built target vtkmetaio
> >> [ 14%] Built target vtksqlite
> >> [ 20%] Built target vtkexoIIc
> >> [ 21%] Built target vtkalglib
> >> [ 21%] Built target vtkEncodeString
> >> [ 21%] Built target vtkHashSource
> >> [ 21%] Built target VPIC
> >> [ 28%] Built target vtkCommon
> >> [ 28%] Built target Cosmo
> >> [ 28%] Built target vtkftgl
> >> [ 28%] Built target vtkParseOGLExt
> >> [ 28%] Built target mpistubs
> >> [ 28%] Built target MapReduceMPI
> >> [ 36%] Built target vtkFiltering
> >> [ 40%] Built target vtkImaging
> >> [ 49%] Built target vtkGraphics
> >> [ 50%] Built target vtkGenericFiltering
> >> [ 56%] Built target vtkIO
> >> [ 65%] Built target vtkRendering
> >> [ 70%] Built target vtkVolumeRendering
> >> [ 70%] Generating vtkSocketCommunicatorHash.h
> >> dyld: Library not loaded: libvtksys.5.6.dylib
> >> Referenced from: /Users/brynlloyd/pack/VTK-5.6/Build/Parallel/../
> >> bin/vtkHashSo
> >> urce
> >> Reason: image not found
> >> /bin/sh: line 1:  3362 Trace/BPT trap          ../bin/ 
> vtkHashSource /
> >> Users/brynl
> >> loyd/pack/VTK-5.6/VTK/Parallel/vtkSocketCommunicator.cxx
> >> vtkSocketCommunicatorHa
> >> sh vtkSocketCommunicatorHash.h
> >> make[2]: *** [Parallel/vtkSocketCommunicatorHash.h] Error 133
> >> make[1]: *** [Parallel/CMakeFiles/vtkParallel.dir/all] Error 2
> >> make: *** [all] Error 2




More information about the vtkusers mailing list