annotate LinuxCompilation.txt @ 823:da4c30a8bcdd templating

plustache
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 28 May 2014 16:21:48 +0200
parents 7019922daf3d
children 256e1530eb0f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
634
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
1 This file is a complement to "INSTALL", which contains instructions
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
2 that are specific to Linux.
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
3
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
4
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
5 Static linking for Linux
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
6 ========================
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
7
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
8 The most simple way of building Orthanc under Linux consists in
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
9 statically linking against all the third-party dependencies. In this
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
10 case, the system-wide libraries will not be used. The build tool
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
11 (CMake) will download the sources of all the required packages and
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
12 automatically compile them. This process should work on all the Linux
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
13 distributions.
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
14
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
15
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
16 To build binaries with debug information:
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
17
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
18 # cd ~/OrthancBuild
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
19 # cmake -DSTATIC_BUILD=ON -DCMAKE_BUILD_TYPE=Debug ~/Orthanc
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
20 # make
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
21 # make doc
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
22
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
23
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
24 To build a release version:
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
25
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
26 # cd ~/OrthancBuild
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
27 # cmake -DSTATIC_BUILD=ON -DCMAKE_BUILD_TYPE=Release ~/Orthanc
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
28 # make
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
29 # make doc
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
30
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
31
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
32 Note: When the "STATIC_BUILD" option is set to "ON", the build tool
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
33 will not ask you the permission to download packages from the
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
34 Internet.
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
35
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
36
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
37 Use system-wide libraries under Linux
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
38 =====================================
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
39
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
40 Under Linux, by default, Orthanc links against the shared libraries of
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
41 your system (the "STATIC_BUILD" option is set to "OFF"). This greatly
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
42 speeds up the compilation. This is also required when building
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
43 packages for Linux distributions. Because using system libraries is
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
44 the default behavior, you just have to use:
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
45
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
46 # cd ~/OrthancBuild
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
47 # cmake -DCMAKE_BUILD_TYPE=Debug ~/Orthanc
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
48 # make
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
49
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
50
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
51 However, on some Linux distributions, it is still required to download
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
52 and static link against some third-party dependencies, e.g. when the
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
53 system-wide library is not shipped or is outdated. Because of
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
54 difference in the packaging of the various Linux distribution, it is
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
55 also sometimes required to fine-tune some options.
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
56
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
57 You will find below build instructions for specific Linux
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
58 distributions. Distributions tagged by "SUPPORTED" are tested by
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
59 Sébastien Jodogne. Distributions tagged by "CONTRIBUTED" come from
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
60 Orthanc users.
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
61
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
62
677
27acbc5985f5 notes for wheezy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 651
diff changeset
63 SUPPORTED - Debian Squeeze (6.x)
634
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
64 --------------------------------
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
65
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
66 # sudo apt-get install build-essential unzip cmake mercurial \
635
cd3b60f6e7d4 refactoring cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 634
diff changeset
67 uuid-dev libcurl4-openssl-dev liblua5.1-0-dev \
640
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 638
diff changeset
68 libgoogle-glog-dev libpng-dev libgtest-dev \
635
cd3b60f6e7d4 refactoring cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 634
diff changeset
69 libsqlite3-dev libssl-dev zlib1g-dev
634
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
70
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
71 # cmake -DALLOW_DOWNLOADS=ON \
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
72 -DUSE_SYSTEM_BOOST=OFF \
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
73 -DUSE_SYSTEM_DCMTK=OFF \
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
74 -DUSE_SYSTEM_MONGOOSE=OFF \
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
75 -DUSE_SYSTEM_JSONCPP=OFF \
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
76 ~/Orthanc
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
77
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
78
677
27acbc5985f5 notes for wheezy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 651
diff changeset
79 SUPPORTED - Debian Wheezy (7.x)
27acbc5985f5 notes for wheezy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 651
diff changeset
80 -------------------------------
27acbc5985f5 notes for wheezy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 651
diff changeset
81
27acbc5985f5 notes for wheezy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 651
diff changeset
82 # sudo apt-get install build-essential unzip cmake mercurial \
27acbc5985f5 notes for wheezy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 651
diff changeset
83 uuid-dev libcurl4-openssl-dev liblua5.1-0-dev \
27acbc5985f5 notes for wheezy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 651
diff changeset
84 libgtest-dev libpng-dev libsqlite3-dev \
27acbc5985f5 notes for wheezy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 651
diff changeset
85 libssl-dev zlib1g-dev libdcmtk2-dev \
678
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 677
diff changeset
86 libboost-all-dev libwrap0-dev libjsoncpp-dev
677
27acbc5985f5 notes for wheezy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 651
diff changeset
87
27acbc5985f5 notes for wheezy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 651
diff changeset
88 # cmake -DALLOW_DOWNLOADS=ON \
27acbc5985f5 notes for wheezy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 651
diff changeset
89 -DUSE_SYSTEM_GOOGLE_LOG=OFF \
27acbc5985f5 notes for wheezy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 651
diff changeset
90 -DUSE_SYSTEM_MONGOOSE=OFF \
27acbc5985f5 notes for wheezy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 651
diff changeset
91 -DUSE_GTEST_DEBIAN_SOURCE_PACKAGE=ON \
27acbc5985f5 notes for wheezy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 651
diff changeset
92 ~/Orthanc
27acbc5985f5 notes for wheezy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 651
diff changeset
93
27acbc5985f5 notes for wheezy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 651
diff changeset
94
636
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
95 SUPPORTED - Debian Jessie/Sid
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
96 -----------------------------
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
97
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
98 # sudo apt-get install build-essential unzip cmake mercurial \
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
99 uuid-dev libcurl4-openssl-dev liblua5.1-0-dev \
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
100 libgoogle-glog-dev libgtest-dev libpng-dev \
678
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 677
diff changeset
101 libsqlite3-dev libssl-dev zlib1g-dev libdcmtk2-dev \
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 677
diff changeset
102 libboost-all-dev libwrap0-dev libjsoncpp-dev
636
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
103
651
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 645
diff changeset
104 # cmake -DALLOW_DOWNLOADS=ON \
636
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
105 -DUSE_SYSTEM_MONGOOSE=OFF \
638
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 636
diff changeset
106 -DUSE_GTEST_DEBIAN_SOURCE_PACKAGE=ON \
636
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
107 ~/Orthanc
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
108
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
109 Note: Have also a look at the official package:
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
110 http://anonscm.debian.org/viewvc/debian-med/trunk/packages/orthanc/trunk/debian/
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
111
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
112
645
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
113 SUPPORTED - Ubuntu 12.04 LTS
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
114 ----------------------------
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
115
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
116 # sudo apt-get install build-essential unzip cmake mercurial \
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
117 uuid-dev libcurl4-openssl-dev liblua5.1-0-dev \
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
118 libgtest-dev libpng-dev libsqlite3-dev libssl-dev \
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
119 zlib1g-dev libdcmtk2-dev libboost-all-dev libwrap0-dev
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
120
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
121 # cmake "-DDCMTK_LIBRARIES=wrap;oflog" \
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
122 -DALLOW_DOWNLOADS=ON \
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
123 -DUSE_SYSTEM_MONGOOSE=OFF \
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
124 -DUSE_SYSTEM_JSONCPP=OFF \
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
125 -DUSE_SYSTEM_GOOGLE_LOG=OFF \
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
126 -DUSE_GTEST_DEBIAN_SOURCE_PACKAGE=ON \
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
127 ~/Orthanc
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
128
636
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
129
635
cd3b60f6e7d4 refactoring cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 634
diff changeset
130 SUPPORTED - Ubuntu 12.10
cd3b60f6e7d4 refactoring cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 634
diff changeset
131 ------------------------
cd3b60f6e7d4 refactoring cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 634
diff changeset
132
cd3b60f6e7d4 refactoring cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 634
diff changeset
133 # sudo apt-get install build-essential unzip cmake mercurial \
cd3b60f6e7d4 refactoring cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 634
diff changeset
134 uuid-dev libcurl4-openssl-dev liblua5.1-0-dev \
cd3b60f6e7d4 refactoring cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 634
diff changeset
135 libgoogle-glog-dev libgtest-dev libpng-dev \
cd3b60f6e7d4 refactoring cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 634
diff changeset
136 libsqlite3-dev libssl-dev zlib1g-dev \
636
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
137 libdcmtk2-dev libboost-all-dev libwrap0-dev
635
cd3b60f6e7d4 refactoring cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 634
diff changeset
138
cd3b60f6e7d4 refactoring cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 634
diff changeset
139 # cmake "-DDCMTK_LIBRARIES=wrap;oflog" \
cd3b60f6e7d4 refactoring cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 634
diff changeset
140 -DALLOW_DOWNLOADS=ON \
cd3b60f6e7d4 refactoring cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 634
diff changeset
141 -DUSE_SYSTEM_MONGOOSE=OFF \
cd3b60f6e7d4 refactoring cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 634
diff changeset
142 -DUSE_SYSTEM_JSONCPP=OFF \
638
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 636
diff changeset
143 -DUSE_GTEST_DEBIAN_SOURCE_PACKAGE=ON \
635
cd3b60f6e7d4 refactoring cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 634
diff changeset
144 ~/Orthanc
cd3b60f6e7d4 refactoring cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 634
diff changeset
145
cd3b60f6e7d4 refactoring cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 634
diff changeset
146
700
0fe6632864b9 ubuntu 13.10
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 678
diff changeset
147 SUPPORTED - Ubuntu 13.10
0fe6632864b9 ubuntu 13.10
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 678
diff changeset
148 ------------------------
0fe6632864b9 ubuntu 13.10
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 678
diff changeset
149
0fe6632864b9 ubuntu 13.10
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 678
diff changeset
150 # sudo apt-get install build-essential unzip cmake mercurial \
0fe6632864b9 ubuntu 13.10
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 678
diff changeset
151 uuid-dev libcurl4-openssl-dev liblua5.1-0-dev \
0fe6632864b9 ubuntu 13.10
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 678
diff changeset
152 libgoogle-glog-dev libgtest-dev libpng-dev \
0fe6632864b9 ubuntu 13.10
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 678
diff changeset
153 libsqlite3-dev libssl-dev zlib1g-dev \
0fe6632864b9 ubuntu 13.10
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 678
diff changeset
154 libdcmtk2-dev libboost-all-dev libwrap0-dev libjsoncpp-dev
0fe6632864b9 ubuntu 13.10
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 678
diff changeset
155
0fe6632864b9 ubuntu 13.10
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 678
diff changeset
156 # cmake "-DDCMTK_LIBRARIES=wrap;oflog" \
0fe6632864b9 ubuntu 13.10
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 678
diff changeset
157 -DALLOW_DOWNLOADS=ON \
0fe6632864b9 ubuntu 13.10
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 678
diff changeset
158 -DUSE_SYSTEM_MONGOOSE=OFF \
0fe6632864b9 ubuntu 13.10
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 678
diff changeset
159 -DUSE_GTEST_DEBIAN_SOURCE_PACKAGE=ON \
0fe6632864b9 ubuntu 13.10
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 678
diff changeset
160 ~/Orthanc
0fe6632864b9 ubuntu 13.10
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 678
diff changeset
161
0fe6632864b9 ubuntu 13.10
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 678
diff changeset
162
634
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
163
736
7019922daf3d versions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 734
diff changeset
164 SUPPORTED - Fedora 18/19/20
7019922daf3d versions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 734
diff changeset
165 ---------------------------
636
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
166
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
167 # sudo yum install make automake gcc gcc-c++ python cmake \
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
168 boost-devel curl-devel dcmtk-devel glog-devel \
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
169 gtest-devel libpng-devel libsqlite3x-devel libuuid-devel \
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
170 mongoose-devel openssl-devel jsoncpp-devel lua-devel
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
171
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
172 # cmake ~/Orthanc
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
173
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
174 Note: Have also a look at the official package:
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
175 http://pkgs.fedoraproject.org/cgit/orthanc.git/tree/?h=f18
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
176
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
177
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
178
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
179
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
180
634
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
181 Other Linux distributions?
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
182 --------------------------
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
183
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
184 Please send us your build instructions (by a mail to
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
185 s.jodogne@gmail.com)!
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
186
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
187 You can find build instructions for Orthanc up to 0.7.0 on the
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
188 following Wiki page:
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
189 https://code.google.com/p/orthanc/wiki/LinuxCompilationUpTo070
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
190
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
191 These instructions will not work as such beyond Orthanc 0.7.0, but
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
192 they might give indications.
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
193
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
194
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
195
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
196
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
197 Using ccache
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
198 ============
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
199
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
200 Under Linux, you also have the opportunity to use "ccache" to
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
201 dramatically decrease the compilation time when rebuilding
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
202 Orthanc. This is especially useful for developers. To this end, you
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
203 would use:
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
204
636
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
205 # CC="ccache gcc" CXX="ccache g++" cmake ~/Orthanc [Other Options]