Mercurial > hg > orthanc
annotate DarwinCompilation.txt @ 2836:7133ad478eea
fix Debian warnings
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 20 Sep 2018 16:17:46 +0200 |
parents | d1bb4bbe9775 |
children | 19a2f1d2b816 |
rev | line source |
---|---|
936
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1 This file is a complement to "INSTALL", which contains instructions |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2 that are specific to Mac OS X (Darwin). |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
3 |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
4 |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
5 Static linking for OS X using XCode |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
6 =================================== |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
7 |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
8 The most simple way of building Orthanc under OS X consists in |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
9 statically linking against all the third-party dependencies. In this |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
10 case, no package manager such as Homebrew or MacPorts is required. |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
11 The build tool (CMake) will download the sources of all the required |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
12 packages and automatically compile them. |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
13 |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
14 |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
15 Prerequisites |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
16 ------------- |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
17 |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
18 1) XCode must be installed. |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
19 |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
20 2) CMake must be installed (http://www.cmake.org/). |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
21 |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
22 3) It is assumed that Orthanc source code is placed in the folder |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
23 "~/Orthanc" and that the binaries will be compiled to |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
24 "~/OrthancBuild". |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
25 |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
26 |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
27 Prepare the build with CMake |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
28 ---------------------------- |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
29 |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
30 # cd ~/OrthancBuild |
1118
3709c03ec9f0
ALLOW_DOWNLOADS for OS X builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
957
diff
changeset
|
31 # cmake -GXcode -DCMAKE_OSX_DEPLOYMENT_TARGET=10.8 -DSTATIC_BUILD=ON -DSTANDALONE_BUILD=ON -DALLOW_DOWNLOADS=ON ~/Orthanc |
936
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
32 |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
33 NB: Adapt the value of "CMAKE_OSX_DEPLOYMENT_TARGET" with respect to |
2105 | 34 your version of OS X. This version can obtained by typing: |
35 | |
36 # sw_vers | |
936
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
37 |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
38 |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
39 Build the Debug version of Orthanc |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
40 ---------------------------------- |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
41 |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
42 # xcodebuild |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
43 # ./Debug/UnitTests |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
44 |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
45 The binaries of Orthanc are located at "~/OrthancBuild/Debug/Orthanc". |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
46 |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
47 |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
48 Build the Release version of Orthanc |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
49 ------------------------------------ |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
50 |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
51 # xcodebuild -configuration Release |
2066
79fa4262e8d4
fixed unittest command in darwin compilation instructions
Lenz Hirsch <hirsch@seamless.de>
parents:
1118
diff
changeset
|
52 # ./Release/UnitTests |
936
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
53 |
9c7f5fd8a7a2
build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
54 The binaries of Orthanc are located at "~/OrthancBuild/Release/Orthanc". |