[vtkusers] Incompatible library version issue

Allen Sanderson allen at sci.utah.edu
Mon Aug 4 16:12:17 EDT 2014

I have built VTK with support with R. That build went fine. Now I am linking against it with my app (VisIt) under OS X. However, I start VisIt but then it hangs because of a library version issue. The VisIt viewer wants 6.1.0 of the vtkpng library but thinks it is getting 1.0.0.

However, otool says vtkpng is 6.1.0. I am not sure why there is an issue but it is odd?? Could it be that internal to the library there is some other setting that is causing the issue? 

 132% bin/visit

dyld: Library not loaded: /Projects/VisIt/trunk/visit/vtk-r/6.1.0/i386-apple-darwin12_gcc-4.2/lib/libvtkpng-6.1.1.dylib

  Referenced from: /Projects/VisIt/trunk/src/exe/viewer.app/Contents/MacOS/viewer

  Reason: Incompatible library version: viewer requires version 6.1.0 or later, but libvtkpng-6.1.1.dylib provides version 1.0.0

133% otool -L /Projects/VisIt/trunk/visit/vtk-r/6.1.0/i386-apple-darwin12_gcc-4.2/lib/libvtkpng-6.1.1.dylib


	/Projects/VisIt/trunk/visit/vtk-r/6.1.0/i386-apple-darwin12_gcc-4.2/lib/libvtkpng-6.1.1.dylib (compatibility version 6.1.0, current version 6.1.0)

	/Projects/VisIt/trunk/visit/vtk-r/6.1.0/i386-apple-darwin12_gcc-4.2/lib/libvtkzlib-6.1.1.dylib (compatibility version 6.1.0, current version 6.1.0)

	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)

I should note that I have built and used VTK without R support and did not have any issues. But at a loss on this issue. Any pointers would be helpful.



Allen Sanderson
SCI Institute
University of Utah
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140804/058693e2/attachment-0001.html>

More information about the vtkusers mailing list