-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy pathREADME.darwin
75 lines (56 loc) · 3.24 KB
/
README.darwin
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
65
66
67
68
69
70
71
72
73
74
75
* XCode
Apple has provided numerous updates to XCode throughout the years, with
both XCode 3.x and 4.x versions capable of building CCNx csrc. In recent
years, Apple has been moving aggressively to push users towards the latest
version of XCode and Mac OS X, limiting availability of legacy versions of
XCode as new versions are released. There is no strict requirement to
upgrade to the latest version of XCode in order to build CCNx for Mac OS X.
* Universal Binary Support
Mac OS X gcc builds for the default architecture cpu subtype on the system.
In modern a modern Mac, this will result in a x86_64 target binary. To
allow more control over the build architecture targets, it is recommended
to use a local.mk file placed in the conf/ directory. Using an override
of the PLATCFLAGS variable, one can specify the desired target architectures.
Setting the example below for PLATCFLAGS
PLATCFLAGS=-fno-common -force_cpusubtype_ALL -arch ppc -arch i386 -arch x86_64
will result in a Universal Binary with the following:
> file ccnd
ccnd: Mach-O universal binary with 3 architectures
ccnd (for architecture ppc): Mach-O executable ppc
ccnd (for architecture i386): Mach-O executable i386
ccnd (for architecture x86_64): Mach-O 64-bit executable x86_64
The decision not to support Universal Binary builds by default is
to reduce overall build times.
* MacOS 10.5
To build on MacOS 10.5, we require at least OpenSSL 0.9.8, installed in
/opt/local. Leopard (Mac OS 10.5) ships with 0.9.7.
One option is to install it using MacPorts.
If you do not want to use MacPorts, try this:
Make sure /opt/local exists: "mkdir -p /opt/local"
Then download openssl-0.9.8 from www.openssl.org, then configure it with
./Configure shared --prefix=/opt/local darwin-i386-cc
* MacOS 10.6
For MacOS 10.6 (Snow Leopard), you don't need to install any
additional software to run, because the library versions provided with the OS are
sufficient. To build, the recommended path is to install XCode. Either gcc or clang
may be used (e.g. "make CC=clang").
One CAN get gcc via fink or macports. However, our past experience
shows that this can complicate the process of making the CCNx build work without
issue. Our recommendation is to use the version of the compiler included with
XCode.
* XCode 4.3 and Mac OS X 10.7 (Lion)
For users of Mac OS X 10.7, the latest version of XCode must be obtained
through the Mac "App Store". While the steps to install XCode are clear
enough, the newer versions of XCode require an additional set of steps to
get a complete SDK environment. After you have installed XCode via the
"App Store", you must go to XCode -> Preferences -> Downloads, and click
on the "Command Line Tools" download button. This will complete installation
of required command line tools used for building. Prior versions of XCode
were obtained directly from the Apple Developer portal and included a
complete distribution of XCode GUI tools + Command Line Tools as part of
the installer. Please make note of these extra steps when performing a new
installation of XCode.
* Mac OS X 10.8 (Mountain Lion)
At the current time, Mac OS X 10.8 is very new and still has some vetting
before we can say we officially support it. Please report any issues
found on this platform to the CCNx team.