[vtkusers] Problem building Universal Binary version of VTK on Mac OSX

Jens Thomas j.m.h.thomas at dl.ac.uk
Thu May 10 08:30:56 EDT 2007


Hi Sean

Sean McBride wrote:
> On 2007-05-09 16:42, Jens Thomas said:
>
>   
>> I'm trying to build a universal binary version of VTK on an Intel Mac 
>> including the Python and Tcl/Tk wrappers (as I require it for an 
>> application that uses Tkinter).
>>
>> I'm using a fresh checkout from CVS for VTK and 
>> cmake-2.4.6-Darwin-universal.
>>     
>
> That's good; anything older is much less likely to work.  CVS CMake may
> be better actually.
>
>   
>> The build goes fine, building universal objects as requested until it 
>> tries to build the file libvtkCommonPythonD.5.1.0.dylib
>>     
>
> You are specifying the 10.4u SDK with CMAKE_OSX_SYSROOT, right?
>
>   
>> It then falls over with the error:
>>
>> ld: common symbols not allowed with MH_DYLIB output format with the 
>> -multi_module option
>>     
>
> Don't you just hate link errors? :)
>
> One of our nightly builds is Universal with python and tcl:
>
> <http://www.vtk.org/Testing/Sites/RogueResearch2/MacOSXTiger-i386-carbon/
> 20070508-0300-Nightly/Notes.html>
>
> Maybe compare settings?
>
>   
Many thanks for the reply - I really appreciate it.

Actually, it was rather remiss of me not to mention that I was building 
against python 2.5 which I'd built myself (configured with: 
--enable-universalsdk), not the Mac framework python which is 2.3.

I've just tried building vtk against the framework python (using the 
same VTK source code and CMake binary as for the failing build) and it's 
worked fine - so it looks like it's something to do with the interaction 
between CMake and Python 2.5.

I've attached a diff of the CMakeCache.txt files in case it sheds light 
on what's gone wrong (the first file on the command line was the 
framework vtk, the second the python 2.5).

Thanks again,

Jens
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CMakeCache.diff
Type: text/x-patch
Size: 44 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070510/cb7da40f/attachment.bin>


More information about the vtkusers mailing list