[vtkusers] help with Mac OS X 10.4.2

Martin Costabel costabel at wanadoo.fr
Fri Aug 5 17:21:43 EDT 2005


Tolga Tasdizen wrote:
> Hi,
> 
> I am trying to build VTK on my new Mac laptop. I am running OS X  
> 10.4.2. I tried building VTK 4.2 and failed. Now I am trying to build  
> the current source code from CVS but still getting the following error
> 
> Building shared library /Users/tolga/VTK-build/bin/ libvtkImaging.dylib...
> ld: multiple definitions of symbol ___divdi3
> /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/libgcc.a(_divdi3.o) private  
> external definition of ___divdi3 in section (__TEXT,__text)

This was reported (and solved) here a while ago:
http://public.kitware.com/pipermail/vtkusers/2005-May/079721.html

In short, remove the spurious -lgcc from CMAKE_CXX_CREATE_SHARED_LIBRARY.

-- 
Martin




More information about the vtkusers mailing list