annotate LinuxCompilation.txt @ 967:dfc076546821

add suffix Tests to unit test sources
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 27 Jun 2014 15:36:38 +0200
parents 9c7f5fd8a7a2
children 00f9f36bcd94
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
936
9c7f5fd8a7a2 build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 875
diff changeset
15 We make the assumption that Orthanc source code is placed in the
9c7f5fd8a7a2 build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 875
diff changeset
16 folder "~/Orthanc" and that the binaries will be compiled to
9c7f5fd8a7a2 build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 875
diff changeset
17 "~/OrthancBuild".
9c7f5fd8a7a2 build instructions for Mac OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 875
diff changeset
18
634
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
19
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
20 To build binaries with debug information:
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
21
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
22 # cd ~/OrthancBuild
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
23 # cmake -DSTATIC_BUILD=ON -DCMAKE_BUILD_TYPE=Debug ~/Orthanc
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
24 # make
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
25 # make doc
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
26
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
27
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
28 To build a release version:
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
29
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
30 # cd ~/OrthancBuild
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
31 # cmake -DSTATIC_BUILD=ON -DCMAKE_BUILD_TYPE=Release ~/Orthanc
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
32 # make
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
33 # make doc
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
34
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
35
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
36 Note: When the "STATIC_BUILD" option is set to "ON", the build tool
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
37 will not ask you the permission to download packages from the
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
38 Internet.
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
39
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
40
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
41 Use system-wide libraries under Linux
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
42 =====================================
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
43
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
44 Under Linux, by default, Orthanc links against the shared libraries of
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
45 your system (the "STATIC_BUILD" option is set to "OFF"). This greatly
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
46 speeds up the compilation. This is also required when building
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
47 packages for Linux distributions. Because using system libraries is
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
48 the default behavior, you just have to use:
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
49
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
50 # cd ~/OrthancBuild
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
51 # cmake -DCMAKE_BUILD_TYPE=Debug ~/Orthanc
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
52 # make
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
53
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
54
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
55 However, on some Linux distributions, it is still required to download
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
56 and static link against some third-party dependencies, e.g. when the
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
57 system-wide library is not shipped or is outdated. Because of
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
58 difference in the packaging of the various Linux distribution, it is
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
59 also sometimes required to fine-tune some options.
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
60
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
61 You will find below build instructions for specific Linux
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
62 distributions. Distributions tagged by "SUPPORTED" are tested by
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
63 Sébastien Jodogne. Distributions tagged by "CONTRIBUTED" come from
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
64 Orthanc users.
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
65
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
66
677
27acbc5985f5 notes for wheezy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 651
diff changeset
67 SUPPORTED - Debian Squeeze (6.x)
634
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
68 --------------------------------
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
69
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
70 # sudo apt-get install build-essential unzip cmake mercurial \
635
cd3b60f6e7d4 refactoring cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 634
diff changeset
71 uuid-dev libcurl4-openssl-dev liblua5.1-0-dev \
640
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 638
diff changeset
72 libgoogle-glog-dev libpng-dev libgtest-dev \
635
cd3b60f6e7d4 refactoring cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 634
diff changeset
73 libsqlite3-dev libssl-dev zlib1g-dev
634
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
74
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
75 # cmake -DALLOW_DOWNLOADS=ON \
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
76 -DUSE_SYSTEM_BOOST=OFF \
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
77 -DUSE_SYSTEM_DCMTK=OFF \
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
78 -DUSE_SYSTEM_MONGOOSE=OFF \
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
79 -DUSE_SYSTEM_JSONCPP=OFF \
875
d21031a7a6e4 build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 854
diff changeset
80 -DENABLE_JPEG=OFF \
d21031a7a6e4 build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 854
diff changeset
81 -DENABLE_JPEG_LOSSLESS=OFF \
634
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
82 ~/Orthanc
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
83
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
84
677
27acbc5985f5 notes for wheezy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 651
diff changeset
85 SUPPORTED - Debian Wheezy (7.x)
27acbc5985f5 notes for wheezy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 651
diff changeset
86 -------------------------------
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 # sudo apt-get install build-essential unzip cmake mercurial \
27acbc5985f5 notes for wheezy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 651
diff changeset
89 uuid-dev libcurl4-openssl-dev liblua5.1-0-dev \
27acbc5985f5 notes for wheezy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 651
diff changeset
90 libgtest-dev libpng-dev libsqlite3-dev \
27acbc5985f5 notes for wheezy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 651
diff changeset
91 libssl-dev zlib1g-dev libdcmtk2-dev \
678
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 677
diff changeset
92 libboost-all-dev libwrap0-dev libjsoncpp-dev
677
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 # cmake -DALLOW_DOWNLOADS=ON \
27acbc5985f5 notes for wheezy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 651
diff changeset
95 -DUSE_SYSTEM_GOOGLE_LOG=OFF \
27acbc5985f5 notes for wheezy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 651
diff changeset
96 -DUSE_SYSTEM_MONGOOSE=OFF \
27acbc5985f5 notes for wheezy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 651
diff changeset
97 -DUSE_GTEST_DEBIAN_SOURCE_PACKAGE=ON \
875
d21031a7a6e4 build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 854
diff changeset
98 -DENABLE_JPEG=OFF \
d21031a7a6e4 build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 854
diff changeset
99 -DENABLE_JPEG_LOSSLESS=OFF \
677
27acbc5985f5 notes for wheezy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 651
diff changeset
100 ~/Orthanc
27acbc5985f5 notes for wheezy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 651
diff changeset
101
27acbc5985f5 notes for wheezy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 651
diff changeset
102
636
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
103 SUPPORTED - Debian Jessie/Sid
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
104 -----------------------------
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
105
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
106 # 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
107 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
108 libgoogle-glog-dev libgtest-dev libpng-dev \
678
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 677
diff changeset
109 libsqlite3-dev libssl-dev zlib1g-dev libdcmtk2-dev \
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 677
diff changeset
110 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
111
651
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 645
diff changeset
112 # cmake -DALLOW_DOWNLOADS=ON \
636
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
113 -DUSE_SYSTEM_MONGOOSE=OFF \
638
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 636
diff changeset
114 -DUSE_GTEST_DEBIAN_SOURCE_PACKAGE=ON \
875
d21031a7a6e4 build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 854
diff changeset
115 -DENABLE_JPEG=OFF \
d21031a7a6e4 build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 854
diff changeset
116 -DENABLE_JPEG_LOSSLESS=OFF \
636
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
117 ~/Orthanc
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
118
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
119 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
120 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
121
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
122
645
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
123 SUPPORTED - Ubuntu 12.04 LTS
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
124 ----------------------------
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
125
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
126 # 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
127 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
128 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
129 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
130
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
131 # cmake "-DDCMTK_LIBRARIES=wrap;oflog" \
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
132 -DALLOW_DOWNLOADS=ON \
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
133 -DUSE_SYSTEM_MONGOOSE=OFF \
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
134 -DUSE_SYSTEM_JSONCPP=OFF \
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
135 -DUSE_SYSTEM_GOOGLE_LOG=OFF \
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
136 -DUSE_GTEST_DEBIAN_SOURCE_PACKAGE=ON \
875
d21031a7a6e4 build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 854
diff changeset
137 -DENABLE_JPEG=OFF \
d21031a7a6e4 build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 854
diff changeset
138 -DENABLE_JPEG_LOSSLESS=OFF \
645
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
139 ~/Orthanc
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
140
636
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
141
635
cd3b60f6e7d4 refactoring cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 634
diff changeset
142 SUPPORTED - Ubuntu 12.10
cd3b60f6e7d4 refactoring cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 634
diff changeset
143 ------------------------
cd3b60f6e7d4 refactoring cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 634
diff changeset
144
cd3b60f6e7d4 refactoring cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 634
diff changeset
145 # sudo apt-get install build-essential unzip cmake mercurial \
cd3b60f6e7d4 refactoring cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 634
diff changeset
146 uuid-dev libcurl4-openssl-dev liblua5.1-0-dev \
cd3b60f6e7d4 refactoring cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 634
diff changeset
147 libgoogle-glog-dev libgtest-dev libpng-dev \
cd3b60f6e7d4 refactoring cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 634
diff changeset
148 libsqlite3-dev libssl-dev zlib1g-dev \
842
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 840
diff changeset
149 libdcmtk2-dev libboost-all-dev libwrap0-dev libcharls-dev
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 840
diff changeset
150
854
ff530685e46a fast version of image copy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 842
diff changeset
151 With JPEG:
635
cd3b60f6e7d4 refactoring cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 634
diff changeset
152
842
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 840
diff changeset
153 # cmake "-DDCMTK_LIBRARIES=CharLS;dcmjpls;wrap;oflog" \
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 840
diff changeset
154 -DALLOW_DOWNLOADS=ON \
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 840
diff changeset
155 -DUSE_SYSTEM_MONGOOSE=OFF \
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 840
diff changeset
156 -DUSE_SYSTEM_JSONCPP=OFF \
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 840
diff changeset
157 -DUSE_GTEST_DEBIAN_SOURCE_PACKAGE=ON \
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 840
diff changeset
158 ~/Orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 840
diff changeset
159
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 840
diff changeset
160
854
ff530685e46a fast version of image copy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 842
diff changeset
161 Without JPEG:
842
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 840
diff changeset
162
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 840
diff changeset
163 # cmake "-DDCMTK_LIBRARIES=wrap;oflog" \
635
cd3b60f6e7d4 refactoring cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 634
diff changeset
164 -DALLOW_DOWNLOADS=ON \
cd3b60f6e7d4 refactoring cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 634
diff changeset
165 -DUSE_SYSTEM_MONGOOSE=OFF \
cd3b60f6e7d4 refactoring cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 634
diff changeset
166 -DUSE_SYSTEM_JSONCPP=OFF \
638
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 636
diff changeset
167 -DUSE_GTEST_DEBIAN_SOURCE_PACKAGE=ON \
854
ff530685e46a fast version of image copy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 842
diff changeset
168 -DENABLE_JPEG=OFF \
ff530685e46a fast version of image copy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 842
diff changeset
169 -DENABLE_JPEG_LOSSLESS=OFF \
635
cd3b60f6e7d4 refactoring cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 634
diff changeset
170 ~/Orthanc
cd3b60f6e7d4 refactoring cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 634
diff changeset
171
cd3b60f6e7d4 refactoring cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 634
diff changeset
172
700
0fe6632864b9 ubuntu 13.10
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 678
diff changeset
173 SUPPORTED - Ubuntu 13.10
0fe6632864b9 ubuntu 13.10
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 678
diff changeset
174 ------------------------
0fe6632864b9 ubuntu 13.10
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 678
diff changeset
175
0fe6632864b9 ubuntu 13.10
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 678
diff changeset
176 # sudo apt-get install build-essential unzip cmake mercurial \
0fe6632864b9 ubuntu 13.10
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 678
diff changeset
177 uuid-dev libcurl4-openssl-dev liblua5.1-0-dev \
0fe6632864b9 ubuntu 13.10
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 678
diff changeset
178 libgoogle-glog-dev libgtest-dev libpng-dev \
0fe6632864b9 ubuntu 13.10
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 678
diff changeset
179 libsqlite3-dev libssl-dev zlib1g-dev \
0fe6632864b9 ubuntu 13.10
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 678
diff changeset
180 libdcmtk2-dev libboost-all-dev libwrap0-dev libjsoncpp-dev
0fe6632864b9 ubuntu 13.10
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 678
diff changeset
181
0fe6632864b9 ubuntu 13.10
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 678
diff changeset
182 # cmake "-DDCMTK_LIBRARIES=wrap;oflog" \
0fe6632864b9 ubuntu 13.10
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 678
diff changeset
183 -DALLOW_DOWNLOADS=ON \
0fe6632864b9 ubuntu 13.10
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 678
diff changeset
184 -DUSE_SYSTEM_MONGOOSE=OFF \
0fe6632864b9 ubuntu 13.10
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 678
diff changeset
185 -DUSE_GTEST_DEBIAN_SOURCE_PACKAGE=ON \
875
d21031a7a6e4 build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 854
diff changeset
186 -DENABLE_JPEG=OFF \
d21031a7a6e4 build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 854
diff changeset
187 -DENABLE_JPEG_LOSSLESS=OFF \
700
0fe6632864b9 ubuntu 13.10
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 678
diff changeset
188 ~/Orthanc
0fe6632864b9 ubuntu 13.10
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 678
diff changeset
189
0fe6632864b9 ubuntu 13.10
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 678
diff changeset
190
634
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
191
736
7019922daf3d versions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 734
diff changeset
192 SUPPORTED - Fedora 18/19/20
7019922daf3d versions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 734
diff changeset
193 ---------------------------
636
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
194
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
195 # 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
196 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
197 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
198 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
199
875
d21031a7a6e4 build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 854
diff changeset
200 # cmake -DENABLE_JPEG=OFF \
d21031a7a6e4 build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 854
diff changeset
201 -DENABLE_JPEG_LOSSLESS=OFF \
d21031a7a6e4 build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 854
diff changeset
202 ~/Orthanc
d21031a7a6e4 build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 854
diff changeset
203
636
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
204 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
205 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
206
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
207
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
208
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
209
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
210
634
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
211 Other Linux distributions?
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
212 --------------------------
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
213
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
214 Please send us your build instructions (by a mail to
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
215 s.jodogne@gmail.com)!
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
216
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
217 You can find build instructions for Orthanc up to 0.7.0 on the
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
218 following Wiki page:
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
219 https://code.google.com/p/orthanc/wiki/LinuxCompilationUpTo070
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
220
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
221 These instructions will not work as such beyond Orthanc 0.7.0, but
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
222 they might give indications.
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
223
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
224
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
225
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
226
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
227 Using ccache
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
228 ============
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
229
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
230 Under Linux, you also have the opportunity to use "ccache" to
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
231 dramatically decrease the compilation time when rebuilding
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
232 Orthanc. This is especially useful for developers. To this end, you
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
233 would use:
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
234
636
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
235 # CC="ccache gcc" CXX="ccache g++" cmake ~/Orthanc [Other Options]