Mercurial > hg > orthanc
comparison DarwinCompilation.txt @ 936:9c7f5fd8a7a2
build instructions for Mac OS X
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 24 Jun 2014 17:59:29 +0200 |
parents | |
children | 63973b76a51f |
comparison
equal
deleted
inserted
replaced
935:9f32a3f8a347 | 936:9c7f5fd8a7a2 |
---|---|
1 This file is a complement to "INSTALL", which contains instructions | |
2 that are specific to Mac OS X (Darwin). | |
3 | |
4 | |
5 Static linking for OS X using XCode | |
6 =================================== | |
7 | |
8 The most simple way of building Orthanc under OS X consists in | |
9 statically linking against all the third-party dependencies. In this | |
10 case, no package manager such as Homebrew or MacPorts is required. | |
11 The build tool (CMake) will download the sources of all the required | |
12 packages and automatically compile them. | |
13 | |
14 | |
15 Prerequisites | |
16 ------------- | |
17 | |
18 1) XCode must be installed. | |
19 | |
20 2) CMake must be installed (http://www.cmake.org/). | |
21 | |
22 3) It is assumed that Orthanc source code is placed in the folder | |
23 "~/Orthanc" and that the binaries will be compiled to | |
24 "~/OrthancBuild". | |
25 | |
26 | |
27 Prepare the build with CMake | |
28 ---------------------------- | |
29 | |
30 # cd ~/OrthancBuild | |
31 # cmake -GXcode -DCMAKE_OSX_DEPLOYMENT_TARGET=10.8 -DSTATIC_BUILD=ON -DSTANDALONE_BUILD=ON .. | |
32 | |
33 NB: Adapt the value of "CMAKE_OSX_DEPLOYMENT_TARGET" with respect to | |
34 your version of XCode. | |
35 | |
36 | |
37 Build the Debug version of Orthanc | |
38 ---------------------------------- | |
39 | |
40 # xcodebuild | |
41 # ./Debug/UnitTests | |
42 | |
43 The binaries of Orthanc are located at "~/OrthancBuild/Debug/Orthanc". | |
44 | |
45 | |
46 Build the Release version of Orthanc | |
47 ------------------------------------ | |
48 | |
49 # xcodebuild -configuration Release | |
50 # ./Debug/UnitTests | |
51 | |
52 The binaries of Orthanc are located at "~/OrthancBuild/Release/Orthanc". |