<div dir="ltr">I have ITK and VTK built with shared libraries on OSX 10.11, and have DYLD_LIBRARY_PATH set to <div>







<p class=""><span class=""><build dir>/VTK/build/lib:<build dir>/ITK/build/lib</span></p><p class="">But several tests fail with same kind of error.(see below) does anyone have any insight into what is causing this. I looked at using otool -L to look at what the library is  trying to ling to but I didn't see anything weird or don't know enough to properly interpret.</p><p class="">Thank you.</p><p class="">~Kurt</p><p class=""><span class=""><br></span></p><p class=""><span class="">2783: Test command: /Users/sansomk/build/ITK/build/bin/itkTestDriver "--add-before-env" "PYTHONPATH" "/Users/sansomk/build/ITK/build/Wrapping/Generators/Python/Release" "--add-before-env" "PYTHONPATH" "/Users/sansomk/build/ITK/build/Wrapping/Generators/Python" "--add-before-env" "PYTHONPATH" "/Users/sansomk/build/ITK/build/lib/Release" "--add-before-env" "PYTHONPATH" "/Users/sansomk/build/ITK/build/lib" "--add-before-libpath" "/Users/sansomk/build/ITK/build/lib/Release" "--add-before-libpath" "/Users/sansomk/build/ITK/build/lib" "--add-before-libpath" "/Users/sansomk/build/ITK/build/bin/Release" "--add-before-libpath" "/Users/sansomk/build/ITK/build/bin" "--add-before-libpath" "/Users/sansomk/build/ITK/build" "arch" "-x86_64" "/Users/sansomk/anaconda/bin/python2.7" "/Users/sansomk/build/ITK/ITKLatestRelease/Examples/IO/test/../DicomSliceRead.py" "/Users/sansomk/build/ITK/build/ExternalData/Testing/Data/Input/dicom-sc_cs-1.dcm" "/Users/sansomk/build/ITK/build/Testing/Temporary/DicomSliceReadPythonOutput.png" "--compare" "/Users/sansomk/build/ITK/build/Testing/Temporary/DicomSliceReadPythonOutput.png" "/Users/sansomk/build/ITK/build/ExternalData/Examples/IO/test/Baseline/DicomSliceReadPythonOutputBaseline.png"</span></p><p class=""><span class="">2783: Test timeout computed to be: 1500</span></p><p class=""><span class="">2783: Traceback (most recent call last):</span></p><p class=""><span class="">2783:   File "/Users/sansomk/build/ITK/ITKLatestRelease/Examples/IO/test/../DicomSliceRead.py", line 36, in <module></span></p><p class=""><span class="">2783:     InputImageType  = itk.Image.SS2</span></p><p class=""><span class="">2783:   File "/Users/sansomk/build/ITK/build/Wrapping/Generators/Python/itkLazy.py", line 42, in __getattribute__</span></p><p class=""><span class="">2783:     itkBase.LoadModule(module, namespace)</span></p><p class=""><span class="">2783:   File "/Users/sansomk/build/ITK/build/Wrapping/Generators/Python/itkBase.py", line 128, in LoadModule</span></p><p class=""><span class="">2783:     module = loader.load(swigModuleName)</span></p><p class=""><span class="">2783:   File "/Users/sansomk/build/ITK/build/Wrapping/Generators/Python/itkBase.py", line 245, in load</span></p><p class=""><span class="">2783:     return imp.load_module(name, fp, pathname, description)</span></p><p class=""><span class="">2783:   File "/Users/sansomk/build/ITK/build/lib/ITKCommonPython.py", line 32, in <module></span></p><p class=""><span class="">2783:     _ITKCommonPython = swig_import_helper()</span></p><p class=""><span class="">2783:   File "/Users/sansomk/build/ITK/build/lib/ITKCommonPython.py", line 28, in swig_import_helper</span></p><p class=""><span class="">2783:     _mod = imp.load_module('_ITKCommonPython', fp, pathname, description)</span></p><p class=""><span class="">2783: ImportError: dlopen(/Users/sansomk/build/ITK/build/lib/_ITKCommonPython.so, 2): Library not loaded: libvtkRenderingAnnotation-7.0.1.dylib</span></p><p class=""><span class="">2783:   Referenced from: /Users/sansomk/build/ITK/build/lib/_ITKCommonPython.so</span></p><p class=""><span class="">2783:   Reason: image not found</span></p><p class=""><span class="">2783: itkTestDriver: Process exited with return value: 1</span></p><p class=""><span class="">


























</span></p><p class=""><span class="">74/74 Test #2783: DicomSliceReadPythonTest ..................................***Failed    0.60 sec</span></p><div><br></div><div>Does </div>-- <br><div class="gmail_signature">Kurt Sansom<br></div>
</div></div>