[CMake] Specifying build architectures on Mac OS X (ppc7400 does not work?)

Pascal Fleury fleury at users.sourceforge.net
Wed May 16 06:02:41 EDT 2007


On Tuesday 15 May 2007 21:17:14 Sean McBride wrote:
> On 2007-05-15 14:22, Bill Hoffman said:

> It seems to be passing "-arch ppc7400" correctly.  Also,
>
> lipo -info /Users/sean/kitware/VTK-pristine-bin/Imaging/CMakeFiles/
> vtkImaging.dir/vtkImageReslice.o
>
> says:
>
> Architectures in the fat file: /Users/sean/kitware/VTK-pristine-bin/
> Imaging/CMakeFiles/vtkImaging.dir/vtkImageReslice.o are: ppc7400 i386
>
> Good, the .o file is ok!  Yet,
>
> lipo -info /Users/sean/kitware/VTK-pristine-bin/bin/libvtkImaging.a
>
> incorrectly gives:
>
> Architectures in the fat file: /Users/sean/kitware/VTK-pristine-bin/bin/
> libvtkImaging.a are: ppc i386
>
> Could 'ar' or 'ranlib' have done something weird?

I think that this should be no problem. Is a *.a file not just like a tar 
file ? It does not change the nature of the files it contains, and the 
packaging format has probably not changed in years for that.

Maybe lipo even outputs some default value if the file is not architecture 
dependent (I think the *.a file is not architecture dependent, its content 
definitely is though).

You should be fine.

--paf


More information about the CMake mailing list