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

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:

/* generic 32-bit IBM PC */

(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.

Snow Leopard

In the cfitsio source:

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

Leopard

In the cfitsio source:

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:

export MACOSX_DEPLOYMENT_TARGET=10.4
./configure CFLAGS="-Os -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"
make
sudo make install
macosx/build/cfitsio.txt · Last modified: 2010/07/26 17:11 by kyngchaos
Copyright © 2004-2010 William Kyngesburye Driven by DokuWiki Recent changes RSS feed