[vtkusers] Re: Make VTK OSX universal binaries with CMAKE_OSX_ARCHITECTURES ppc; i386

Dan White dan at chalkie.org.uk
Wed Jun 7 13:12:23 EDT 2006


Hi Sean and all,

...so it looks like all one needs to do to make a universal OSX build  
of vTK is have the universal developer tools from apple installed,
then configure in ccmake . using
CMAKE_OSX_ARCHITECTURES          ppc;i386

and lo and behold universal versions containing i386 and ppc code of  
the unix executables AND OS X .dylib
shared libraries are built!
All the lipo stuff does in fact happen automagically and i wont have  
to bother doing it manually as i feared...

Cool!

However, my VTK CVS yesterday downoal build is still failing with  
undefined symbols at the linking stage for  Graphics.....

cheers

Dan



>> Hi,
>>
>> I managed to compile cmake from cvs as intel only binary with no
>> problems
>>
>> to compile as universal binary do i just put i386 and ppc in the
>> right line in the ccmake . setup?
>>
>> Dan
>>
>> On 7 Jun 2006, at 17:17, Sean McBride wrote:
>>
>>> On 2006-06-07 15:13, Dan White said:
>>>
>>>> Anyone else managed a OSX x86 intel VTK build?
>>>
>>> I'm not sure if it will be useful, but you could look at my nightly
>>> cmake build.  It is built on a PPC but is a Universal Binary:
>>>
>>> <http://www.cmake.org/Testing/Sites/RogueResearchPPC/Darwin8.6-G4-
>>> gcc4.0.1-univ/20060607-0100-Nightly/Notes.html>
>>>
>>> --
>>> ____________________________________________________________
>>> Sean McBride, B. Eng                 sean at rogue-research.com
>>> Rogue Research                        www.rogue-research.com
>>> Mac Software Developer              Montréal, Québec, Canada
>>>
>>>
>>
>> Dr. Daniel James White BSc. (Hons.) PhD
>> Bioimaging Coordinator
>> Nanoscience Centre and Department of Biological and Environmental
>> Sciences
>> Division of Molecular Recognition
>> Ambiotica C242
>> PO Box 35
>> University of Jyväskylä
>> Jyväskylä
>> FIN 40014
>> Finland
>>
>> +358 14 260 4183 (work)
>> +358 468102840 (mobile)
>> http://www.bioimagexd.org
>> http://www.chalkie.org.uk
>> dan at chalkie.org.uk
>> white at cc.jyu.fi
>>
>>
>>
>
> --
> ____________________________________________________________
> Sean McBride, B. Eng                 sean at rogue-research.com
> Rogue Research                        www.rogue-research.com
> Mac Software Developer              Montréal, Québec, Canada
>
>

Dr. Daniel James White BSc. (Hons.) PhD
Bioimaging Coordinator
Nanoscience Centre and Department of Biological and Environmental  
Sciences
Division of Molecular Recognition
Ambiotica C242
PO Box 35
University of Jyväskylä
Jyväskylä
FIN 40014
Finland

+358 14 260 4183 (work)
+358 468102840 (mobile)
http://www.bioimagexd.org
http://www.chalkie.org.uk
dan at chalkie.org.uk
white at cc.jyu.fi





More information about the vtkusers mailing list