[vtkusers] Patch for vtk 5.2.0 (regarding tiff library name mangling)
Kleistereimer
kleistereimer at gmx.de
Thu Nov 6 21:18:26 EST 2008
hi!
vtk links in a copy of the tiff lib and to not collide with other tiff
libraries it mangles names exported from this tiff library using defines
in the file 'vtk_tiff_mangle.h'.
this mangling header file is automaticaly created but is incomplete.
thus it does not works.
this bug shows if another (vanilla) tiff library is linked in directly
or indirectly (like ImageMagic). the linker complains about symbols
being already defined.
the following patch corrects this problem:
vtk_tiff_mangle.h
+ #define _TIFFerrorHandlerExt vtk__TIFFerrorHandlerExt
+ #define _TIFFwarningHandlerExt vtk__TIFFwarningHandlerExt
+ #define TIFFOpenW vtk_TIFFOpenW
below is the patch for VTK 5.0.1 for comparison:
vtk_tiff_mangle.h
+ #define _TIFFBuiltinCODECS vtk__TIFFBuiltinCODECS
regards,
kl
More information about the vtkusers
mailing list