[vtkusers] problems building vtk 4.4 on MacOSX

Sean McInerney seanm at nmr.mgh.harvard.edu
Tue Aug 17 03:00:40 EDT 2004


Yes, Martin's right. Setting 'VTK_USE_SYSTEM_ZLIB' to 'ON' should 
eliminate this linker error. I have used this to successfully build on 
OSX (but had not been following this thread ... sorry).

-Sean

Martin Costabel wrote:
> Lucas Lorenzo wrote:
> 
>> Hi all,
>>
>> I'm trying to build vtk 4.4 on my mac but I'm having the following  
>> problem:
>>
>> Building executable  
>> /private/var/automount/scratch/lucas/bin/VTK-4.4/VTK-binary/bin/ 
>> GraphicsCxxTests...
>> ld: multiple definitions of symbol _zError
>> /usr/lib/libz.1.dylib(zutil.o) definition of _zError
>> /private/var/automount/scratch/lucas/bin/VTK-4.4/VTK-binary/bin/ 
>> libvtkzlib.a(zutil.o) definition of _zError in section (__TEXT,__text)
> 
> 
> Wouldn't this go away if you used the cmake option
> -DVTK_USE_SYSTEM_ZLIB:BOOL=ON ?
> 



More information about the vtkusers mailing list