File: README.MacOS

package info (click to toggle)
cfitsio3 3.240-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 10,556 kB
  • ctags: 5,786
  • sloc: ansic: 96,589; yacc: 4,956; fortran: 2,613; lex: 545; makefile: 186
file content (64 lines) | stat: -rw-r--r-- 1,939 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
To build CFITSIO library on an Intel Mac as a Universal Binary

Unzip the library:
- tar xzf cfitsio3060.tar.gz (or whatever version this is)

- cd cfitsio/

- copy the cfitsio-xcodeproj.zip file here

- unzip cfitsio-xcodeproj.zip

- start Xcode and open cfitsio.xcodeproj

- expand the "Targets" menu under "Groups & Files" 

- right-click on Build PPC -> Build "Build PPC"
  when that finishes...:

- right-click on Build i386 -> Build "Build i386"
  when that finishes...:

- right-click on 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

Set the CFLAGS environment variable for building a Universal Binary:

- setenv CFLAGS "-arch ppc -arch i386 -g -O2"   (C-Shell variants)
  or
- export CFLAGS="-arch ppc -arch i386 -g -O2"   (Bourne Shell variants)

Then proceed with the standard cfitsio build, i.e.:

- ./configure
- make
- make install


-------------------------------------------------------

Below, are the old (and now obsolete) instuctions for building CFITSIO
on classic Mac OS-9 or earlier versions:

1. Un binhex and unstuff cfitsio_mac.sit.hqx
2. put CFitsioPPC.mcp in the cfitsio directory.
2. Load CFitsioPPC.mcp into CodeWarrior Pro 5 and make.
   This builds the cfitsio library for PPC.  There are also targets for both 
   the test program and the speed test program.

To use the MacOS port you can add Cfitsio PPC.lib to your Codewarrior Pro 5
project.  Note that this only has been tested for the PPC. It probably
won't work on 68k macs.  Also note that the fortran bindings aren't
included.  I haven't worked with the codewarrior f2c plugin so I don't know
how these would work.  If one is interested, please write and I can look
into this.