[vtkusers] Compile error on OS X 10.5

Eric E. Monson emonson at cs.duke.edu
Thu Apr 29 09:13:36 EDT 2010


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
>> _______________________________________________
>> 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 VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>> 
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
> _______________________________________________
> 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 VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list