[vtkusers] Fwd: building universal binaries of VTK on OS X

Mike Jackson imikejackson at gmail.com
Thu Apr 20 09:25:14 EDT 2006


I just took a build from a PPC machine and a Build from an Intel  
machine and manually merged them with lipo. Wasn't the hardest thing  
to do, but was tedious. I have tested my app on OS X 10.3.9 through  
10.4.6 Intel and it seems to work.

I didn't think CMake supported such things as building for another arch?

Mike Jackson.


On Apr 20, 2006, at 8:53 AM, Dan White wrote:

>>
>> Hi Sean,
>>
>> just wondering if you managed to figure out how to make an OS X   
>> universal binary  build of VTK yet?
>>
>> passing the flags
>> -arch ppc -arch i386
>> to the cxx compiler and linker flags sections in ccmake .
>> seems to work,
>> until the make process tries to link the first .dylib together,
>> then spews up a bunch of undefined symbols, which must be from the  
>> i386 part since it doesn't happen with no -arch flags.
>>
>> did you get any further than that?
>> is there still a problem with cmake using invalid environmental  
>> variables retrieved from the build arch (G5 in my case)
>> that mess up he i383 part of the build?
>>
>> cheers
>>
>> Dan
>>
>>
>> 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
>>
>>
>
> 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
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/ 
> Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers

--------
Mike Jackson
imikejackson <at> gmail <dot> com






More information about the vtkusers mailing list