[vtkusers] Link errors when building VTK with Python on Mac OSX Darwin

Jens Thomas j.m.h.thomas at dl.ac.uk
Fri Sep 24 07:11:45 EDT 2004


Martin Costabel wrote:

> Jens Thomas wrote:
>
>> Hi
>>
>> I'm currently trying to get vtk to build with the Python wrappings on 
>> a Mac OSX Darwin (the output of the sw_vers command is: ProductName: 
>> Mac OS X, ProductVersion: 10.3.5, BuildVersion:   7M34).  The problem 
>> seems to be that the cmake is somehow losing the location of the 
>> python libraries so that ld can't find them.
>
> []
>
>> Output from the last bit of the build:
>>
>> Building shared module /Users/jens/VTK/bin/libvtkFilteringPython.so...
>> /Users/jens/cmake/bin/cmake -E remove -f 
>> /Users/jens/VTK/bin/libvtkFilteringPython.so
>> c++ -bundle    -o /Users/jens/VTK/bin/libvtkFilteringPython.so 
>> vtkCardinalSplinePython.o vtkCastToConcretePython.o 
>
> []
>
>> vtkUnstructuredGridToUnstructuredGridFilterPython.o   -L. 
>> -L/Users/jens/VTK/bin -lvtkFiltering -lvtkCommon -framework AppKit 
>> -lpthread -lm
>> ld: Undefined symbols:
>> _PyArg_ParseTuple
>
> []
>
> What version of vtk is this? For versions prior to 4.4, there is no 
> hope of making python wrappers work on MacOSX. The right cooperation 
> of *.so and *.dylib objects hadn't been found.
>
I went for 4.2, so that might explain alot... I'll try again with 4.4.

Many thanks for your help and responding so quickly.

Jens




More information about the vtkusers mailing list