How to compile CFITSIO as a Universal Binary on Mac OS-X
These instructions are for compiling CFITSIO so that is can be linked with code running on a Mac OS-X machine with either an Intel processor or a Power PC processor.
-
Unzip the CFITSIO library: tar xzf cfitsio3060.tar.gz (or whatever version this is)
-
cd cfitsio/
-
copy the
cfitsio-xcodeproj.zip file here.
This project file was kindly supplied by Lars Holm Nielsen of the
ESA/ESO/NASA
Photoshop FITS Liberator project.
-
unzip cfitsio-xcodeproj.zip
-
start Xcode and open cfitsio.xcodeproj
-
right-click on Targets -> Build PPC -> Build Build PPC
when that finishes...:
-
right-click on Targets -> Build i386 -> Build Build i386
when that finishes...:
-
right-click on Targets -> Build Universal -> Build Build Universal
(For some reason clicking on the menu "Build" icon doesn't seem to work correctly, but the right-click menus do).
Another way to build the universal binary:
-
unpack the cfitsio source code tar file
-
cd cfitsio
-
setenv CFLAGS "-arch ppc -arch i386 -g -O2"
-
Then proceed with the standard cfitsio build, i.e.:
- ./configure
- make
- make install
Return to the FITSIO home page.
FITSIO is maintained by: Dr. William D. Pence, (email: pence 'at' milkyway.gsfc.nasa.gov)