Kyng Chaos
“The beast is actively interested only in now, and, as it is always now and always shall be, there is an eternity of time for the accomplishment of objects.”
- the wisdom of Tarzan

CFITSIO Build

version: 3.10
source: http://heasarc.gsfc.nasa.gov/fitsio/

Patches

CFITSIO is slowly catching up to OSX Intel, but it still makes a couple assumptions about Macs that need to be fixed. Edit fitsio2.h.

First, find the bit that says defined(__powerpc64__) and change it to defined(__ppc64__).

Then, find the line:

(it should be right after a bunch of defined() tests for various intel processors). Replace the #define MACHINE IBMPC line after that with:

#if defined(__APPLE__)
#define MACHINE OTHERTYPE /* Mac Intel is not NATIVE and not IBMPC */
#else
#define MACHINE IBMPC
#endif

Save, and you're ready to compile.

Leopard

In the cfitsio source:

configure

export MACOSX_DEPLOYMENT_TARGET=10.5
./configure CFLAGS="-Os -arch ppc -arch i386 -arch ppc64 -arch x86_64"
make
sudo make install

Tiger

In the cfitsio source:

configure

export MACOSX_DEPLOYMENT_TARGET=10.4
./configure CFLAGS="-Os -arch ppc -arch i386"
make
sudo make install
macosx/build/cfitsio.txt (733 views) · Last modified: 2008/10/08 07:22 by kyngchaos
Copyright © 2004-2009 William Kyngesburye Driven by DokuWiki Recent changes RSS feed