annotate LinuxCompilation.txt @ 3481:df730398978a

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 01 Aug 2019 18:35:47 +0200
parents 4e34fd3e226a
children bfaa10078f7d
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
2086
630606097798 GNU/Linux
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2014
diff changeset
2 that are specific to GNU/Linux.
634
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
3
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
4
2086
630606097798 GNU/Linux
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2014
diff changeset
5 Static linking for GNU/Linux
630606097798 GNU/Linux
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2014
diff changeset
6 ============================
634
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
7
2086
630606097798 GNU/Linux
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2014
diff changeset
8 The most simple way of building Orthanc under GNU/Linux consists in
634
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
1208
6502517fd4af improved doc thanks to Vincent Kersten
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1150
diff changeset
12 automatically compile them.
634
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
13
2086
630606097798 GNU/Linux
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2014
diff changeset
14 This process should work on any GNU/Linux distribution, provided that a
1208
6502517fd4af improved doc thanks to Vincent Kersten
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1150
diff changeset
15 C/C++ compiler ("build-essential" in Debian-based systems), the Python
6502517fd4af improved doc thanks to Vincent Kersten
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1150
diff changeset
16 interpreter, CMake, the "unzip" system tool, and the development
6502517fd4af improved doc thanks to Vincent Kersten
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1150
diff changeset
17 package for libuuid ("uuid-dev" in Debian) are installed.
936
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
1208
6502517fd4af improved doc thanks to Vincent Kersten
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1150
diff changeset
20 We now make the assumption that Orthanc source code is placed in the
6502517fd4af improved doc thanks to Vincent Kersten
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1150
diff changeset
21 folder "~/Orthanc" and that the binaries will be compiled to
6502517fd4af improved doc thanks to Vincent Kersten
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1150
diff changeset
22 "~/OrthancBuild". To build binaries with debug information:
634
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
23
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
24 # cd ~/OrthancBuild
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
25 # cmake -DSTATIC_BUILD=ON -DCMAKE_BUILD_TYPE=Debug ~/Orthanc
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
26 # make
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
27 # make doc
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
28
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
29
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
30 To build a release version:
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
31
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
32 # cd ~/OrthancBuild
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
33 # cmake -DSTATIC_BUILD=ON -DCMAKE_BUILD_TYPE=Release ~/Orthanc
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
34 # make
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
35 # make doc
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
36
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
37
1208
6502517fd4af improved doc thanks to Vincent Kersten
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1150
diff changeset
38 Note 1- When the "STATIC_BUILD" option is set to "ON", the build tool
634
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
39 will not ask you the permission to download packages from the
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
40 Internet.
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
41
1208
6502517fd4af improved doc thanks to Vincent Kersten
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1150
diff changeset
42 Note 2- If the development package of libuuid was not installed when
6502517fd4af improved doc thanks to Vincent Kersten
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1150
diff changeset
43 first invoking cmake, you will have to manually remove the build
6502517fd4af improved doc thanks to Vincent Kersten
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1150
diff changeset
44 directory ("rm -rf ~/OrthancBuild") after installing this package,
6502517fd4af improved doc thanks to Vincent Kersten
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1150
diff changeset
45 then run cmake again.
6502517fd4af improved doc thanks to Vincent Kersten
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1150
diff changeset
46
1219
c4ae92753d57 note about doxygen
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1208
diff changeset
47 Note 3- To build the documentation, you will have to install doxyen.
c4ae92753d57 note about doxygen
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1208
diff changeset
48
634
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
49
2086
630606097798 GNU/Linux
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2014
diff changeset
50 Use system-wide libraries under GNU/Linux
630606097798 GNU/Linux
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2014
diff changeset
51 =========================================
634
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
52
2086
630606097798 GNU/Linux
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2014
diff changeset
53 Under GNU/Linux, by default, Orthanc links against the shared
630606097798 GNU/Linux
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2014
diff changeset
54 libraries of your system (the "STATIC_BUILD" option is set to
630606097798 GNU/Linux
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2014
diff changeset
55 "OFF"). This greatly speeds up the compilation. This is also required
630606097798 GNU/Linux
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2014
diff changeset
56 when building packages for GNU/Linux distributions. Because using
630606097798 GNU/Linux
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2014
diff changeset
57 system libraries is the default behavior, you just have to use:
634
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
58
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
59 # cd ~/OrthancBuild
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
60 # cmake -DCMAKE_BUILD_TYPE=Debug ~/Orthanc
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
61 # make
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
62
3355
eb18269de57f Fixed typo
Benjamin Golinvaux <bgo@osimis.io>
parents: 3179
diff changeset
63 Note that to build the documentation, you will have to install doxygen.
634
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
64
2086
630606097798 GNU/Linux
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2014
diff changeset
65 However, on some GNU/Linux distributions, it is still required to
630606097798 GNU/Linux
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2014
diff changeset
66 download and static link against some third-party dependencies,
630606097798 GNU/Linux
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2014
diff changeset
67 e.g. when the system-wide library is not shipped or is
630606097798 GNU/Linux
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2014
diff changeset
68 outdated. Because of difference in the packaging of the various
630606097798 GNU/Linux
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2014
diff changeset
69 GNU/Linux distribution, it is also sometimes required to fine-tune
630606097798 GNU/Linux
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2014
diff changeset
70 some options.
634
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
71
2086
630606097798 GNU/Linux
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2014
diff changeset
72 You will find below build instructions for specific GNU/Linux
634
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
73 distributions. Distributions tagged by "SUPPORTED" are tested by
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
74 Sébastien Jodogne. Distributions tagged by "CONTRIBUTED" come from
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
75 Orthanc users.
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
76
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
77
636
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
78 SUPPORTED - Debian Jessie/Sid
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
79 -----------------------------
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
80
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
81 # 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
82 uuid-dev libcurl4-openssl-dev liblua5.1-0-dev \
1974
ea4b8975d064 no need for google log anymore
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1622
diff changeset
83 libgtest-dev libpng-dev libjpeg-dev \
678
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 677
diff changeset
84 libsqlite3-dev libssl-dev zlib1g-dev libdcmtk2-dev \
1077
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1046
diff changeset
85 libboost-all-dev libwrap0-dev libjsoncpp-dev libpugixml-dev
636
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
86
651
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 645
diff changeset
87 # cmake -DALLOW_DOWNLOADS=ON \
3138
ab46e537f92e renamed class MongooseServer as HttpServer, CivetWeb made default HTTP server
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3131
diff changeset
88 -DUSE_SYSTEM_CIVETWEB=OFF \
2403
06536b4f30c0 rename USE_GOOGLE_TEST_DEBIAN_SOURCE_PACKAGE as USE_GOOGLE_TEST_DEBIAN_PACKAGE
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2402
diff changeset
89 -DUSE_GOOGLE_TEST_DEBIAN_PACKAGE=ON \
1078
5d35f9e16fd1 compilation notes
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1077
diff changeset
90 -DDCMTK_LIBRARIES=dcmjpls \
2709
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2403
diff changeset
91 -DCMAKE_BUILD_TYPE=Release \
636
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
92 ~/Orthanc
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
93
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
94 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
95 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
96
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
97
3405
408ffcb4038f reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3359
diff changeset
98 SUPPORTED - Ubuntu 14.04 LTS
408ffcb4038f reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3359
diff changeset
99 ----------------------------
645
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
100
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
101 # sudo apt-get install build-essential unzip cmake mercurial \
3405
408ffcb4038f reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3359
diff changeset
102 uuid-dev libcurl4-openssl-dev \
408ffcb4038f reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3359
diff changeset
103 libgtest-dev libpng-dev libsqlite3-dev libssl-dev libjpeg-dev \
408ffcb4038f reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3359
diff changeset
104 zlib1g-dev libdcmtk2-dev libboost-all-dev libwrap0-dev \
408ffcb4038f reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3359
diff changeset
105 libcharls-dev libjsoncpp-dev libpugixml-dev
645
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
106
3405
408ffcb4038f reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3359
diff changeset
107 # cmake -DALLOW_DOWNLOADS=ON \
408ffcb4038f reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3359
diff changeset
108 -DUSE_GOOGLE_TEST_DEBIAN_PACKAGE=ON \
3359
815b81142ff7 Enable custom logging functions to redirect to emscripten specific logging calls
Benjamin Golinvaux <bgo@osimis.io>
parents: 3355
diff changeset
109 -DUSE_SYSTEM_CIVETWEB=OFF \
815b81142ff7 Enable custom logging functions to redirect to emscripten specific logging calls
Benjamin Golinvaux <bgo@osimis.io>
parents: 3355
diff changeset
110 -DUSE_SYSTEM_JSONCPP=OFF \
3481
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3458
diff changeset
111 -DUSE_SYSTEM_LUA=OFF \
3405
408ffcb4038f reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3359
diff changeset
112 -DDCMTK_LIBRARIES=dcmjpls \
2709
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2403
diff changeset
113 -DCMAKE_BUILD_TYPE=Release \
3359
815b81142ff7 Enable custom logging functions to redirect to emscripten specific logging calls
Benjamin Golinvaux <bgo@osimis.io>
parents: 3355
diff changeset
114 ~/Orthanc
3405
408ffcb4038f reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3359
diff changeset
115 # make
636
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
116
3405
408ffcb4038f reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3359
diff changeset
117
408ffcb4038f reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3359
diff changeset
118 SUPPORTED - Ubuntu 16.04 LTS
408ffcb4038f reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3359
diff changeset
119 ----------------------------
1350
724dc4e17d38 build ubuntu 14.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1349
diff changeset
120
1552
729d69336919 build instructions
jodogne
parents: 1415
diff changeset
121 # sudo apt-get install build-essential unzip cmake mercurial \
3405
408ffcb4038f reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3359
diff changeset
122 uuid-dev libcurl4-openssl-dev liblua5.3-0-dev \
1622
0b8e62bd9c48 build instructions for centos 6
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1552
diff changeset
123 libgtest-dev libpng-dev libsqlite3-dev libssl-dev libjpeg-dev \
1552
729d69336919 build instructions
jodogne
parents: 1415
diff changeset
124 zlib1g-dev libdcmtk2-dev libboost-all-dev libwrap0-dev \
729d69336919 build instructions
jodogne
parents: 1415
diff changeset
125 libcharls-dev libjsoncpp-dev libpugixml-dev
729d69336919 build instructions
jodogne
parents: 1415
diff changeset
126
1350
724dc4e17d38 build ubuntu 14.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1349
diff changeset
127 # cmake -DALLOW_DOWNLOADS=ON \
2403
06536b4f30c0 rename USE_GOOGLE_TEST_DEBIAN_SOURCE_PACKAGE as USE_GOOGLE_TEST_DEBIAN_PACKAGE
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2402
diff changeset
128 -DUSE_GOOGLE_TEST_DEBIAN_PACKAGE=ON \
3138
ab46e537f92e renamed class MongooseServer as HttpServer, CivetWeb made default HTTP server
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3131
diff changeset
129 -DUSE_SYSTEM_CIVETWEB=OFF \
1350
724dc4e17d38 build ubuntu 14.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1349
diff changeset
130 -DDCMTK_LIBRARIES=dcmjpls \
2709
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2403
diff changeset
131 -DCMAKE_BUILD_TYPE=Release \
1350
724dc4e17d38 build ubuntu 14.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1349
diff changeset
132 ~/Orthanc
3179
fca730c267d7 New primitives to set and refresh metrics
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3138
diff changeset
133 # make
fca730c267d7 New primitives to set and refresh metrics
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3138
diff changeset
134
fca730c267d7 New primitives to set and refresh metrics
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3138
diff changeset
135
fca730c267d7 New primitives to set and refresh metrics
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3138
diff changeset
136 NB: Instructions to use clang and ninja:
fca730c267d7 New primitives to set and refresh metrics
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3138
diff changeset
137
fca730c267d7 New primitives to set and refresh metrics
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3138
diff changeset
138 # sudo apt-get install ninja-build
fca730c267d7 New primitives to set and refresh metrics
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3138
diff changeset
139 # CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake -G Ninja \
fca730c267d7 New primitives to set and refresh metrics
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3138
diff changeset
140 -DALLOW_DOWNLOADS=ON \
fca730c267d7 New primitives to set and refresh metrics
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3138
diff changeset
141 -DUSE_GOOGLE_TEST_DEBIAN_PACKAGE=ON \
fca730c267d7 New primitives to set and refresh metrics
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3138
diff changeset
142 -DUSE_SYSTEM_CIVETWEB=OFF \
fca730c267d7 New primitives to set and refresh metrics
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3138
diff changeset
143 -DDCMTK_LIBRARIES=dcmjpls \
fca730c267d7 New primitives to set and refresh metrics
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3138
diff changeset
144 -DCMAKE_BUILD_TYPE=Release \
fca730c267d7 New primitives to set and refresh metrics
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3138
diff changeset
145 ~/Orthanc
fca730c267d7 New primitives to set and refresh metrics
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3138
diff changeset
146 # ninja
1350
724dc4e17d38 build ubuntu 14.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1349
diff changeset
147
724dc4e17d38 build ubuntu 14.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1349
diff changeset
148
3458
4e34fd3e226a ubuntu 18.04
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3405
diff changeset
149 SUPPORTED - Ubuntu 18.04 LTS
4e34fd3e226a ubuntu 18.04
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3405
diff changeset
150 ----------------------------
4e34fd3e226a ubuntu 18.04
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3405
diff changeset
151
4e34fd3e226a ubuntu 18.04
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3405
diff changeset
152 # sudo apt-get install build-essential unzip cmake mercurial \
4e34fd3e226a ubuntu 18.04
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3405
diff changeset
153 uuid-dev libcurl4-openssl-dev liblua5.3-0-dev \
4e34fd3e226a ubuntu 18.04
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3405
diff changeset
154 libgtest-dev libpng-dev libsqlite3-dev libssl-dev libjpeg-dev \
4e34fd3e226a ubuntu 18.04
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3405
diff changeset
155 zlib1g-dev libdcmtk2-dev libboost-all-dev libwrap0-dev \
4e34fd3e226a ubuntu 18.04
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3405
diff changeset
156 libcharls-dev libjsoncpp-dev libpugixml-dev locales
4e34fd3e226a ubuntu 18.04
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3405
diff changeset
157
4e34fd3e226a ubuntu 18.04
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3405
diff changeset
158 # cmake -DALLOW_DOWNLOADS=ON \
4e34fd3e226a ubuntu 18.04
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3405
diff changeset
159 -DUSE_GOOGLE_TEST_DEBIAN_PACKAGE=ON \
4e34fd3e226a ubuntu 18.04
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3405
diff changeset
160 -DUSE_SYSTEM_CIVETWEB=OFF \
4e34fd3e226a ubuntu 18.04
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3405
diff changeset
161 -DDCMTK_LIBRARIES=dcmjpls \
4e34fd3e226a ubuntu 18.04
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3405
diff changeset
162 -DCMAKE_BUILD_TYPE=Release \
4e34fd3e226a ubuntu 18.04
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3405
diff changeset
163 ~/Orthanc
4e34fd3e226a ubuntu 18.04
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3405
diff changeset
164 # make
4e34fd3e226a ubuntu 18.04
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3405
diff changeset
165
4e34fd3e226a ubuntu 18.04
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3405
diff changeset
166
4e34fd3e226a ubuntu 18.04
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3405
diff changeset
167 NB: A suitable environment for locales can be setup as follows:
4e34fd3e226a ubuntu 18.04
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3405
diff changeset
168
4e34fd3e226a ubuntu 18.04
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3405
diff changeset
169 # echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
4e34fd3e226a ubuntu 18.04
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3405
diff changeset
170 # locale-gen
4e34fd3e226a ubuntu 18.04
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3405
diff changeset
171
4e34fd3e226a ubuntu 18.04
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3405
diff changeset
172
1350
724dc4e17d38 build ubuntu 14.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1349
diff changeset
173
1415
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
174 SUPPORTED - Fedora 20-22
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
175 ------------------------
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
176
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
177 # sudo yum install unzip make automake gcc gcc-c++ python cmake \
1974
ea4b8975d064 no need for google log anymore
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1622
diff changeset
178 boost-devel curl-devel dcmtk-devel \
1622
0b8e62bd9c48 build instructions for centos 6
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1552
diff changeset
179 gtest-devel libpng-devel libsqlite3x-devel libuuid-devel jpeg-devel \
1415
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
180 mongoose-devel openssl-devel jsoncpp-devel lua-devel pugixml-devel
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
181
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
182 You will also have to install "gflags-devel" on Fedora 21&22:
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
183
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
184 # sudo yum install gflags-devel
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
185
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
186 # cmake "-DDCMTK_LIBRARIES=CharLS" \
3138
ab46e537f92e renamed class MongooseServer as HttpServer, CivetWeb made default HTTP server
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3131
diff changeset
187 -DENABLE_CIVETWEB=OFF \
1415
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
188 -DSYSTEM_MONGOOSE_USE_CALLBACKS=OFF \
2709
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2403
diff changeset
189 -DCMAKE_BUILD_TYPE=Release \
1415
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
190 ~/Orthanc
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
191
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
192 Note: Have also a look at the official package:
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
193 http://pkgs.fedoraproject.org/cgit/orthanc.git/tree/?h=f18
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
194
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
195
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
196
1337
afaa55d42ddd FreeBSD support
jodogne
parents: 1219
diff changeset
197 SUPPORTED - FreeBSD 10.1
afaa55d42ddd FreeBSD support
jodogne
parents: 1219
diff changeset
198 ------------------------
afaa55d42ddd FreeBSD support
jodogne
parents: 1219
diff changeset
199
1622
0b8e62bd9c48 build instructions for centos 6
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1552
diff changeset
200 # pkg install jsoncpp pugixml lua51 curl googletest dcmtk cmake jpeg \
1974
ea4b8975d064 no need for google log anymore
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1622
diff changeset
201 e2fsprogs-libuuid boost-libs sqlite3 python libiconv
1337
afaa55d42ddd FreeBSD support
jodogne
parents: 1219
diff changeset
202
afaa55d42ddd FreeBSD support
jodogne
parents: 1219
diff changeset
203 # cmake -DALLOW_DOWNLOADS=ON \
3138
ab46e537f92e renamed class MongooseServer as HttpServer, CivetWeb made default HTTP server
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3131
diff changeset
204 -DUSE_SYSTEM_CIVETWEB=OFF \
1337
afaa55d42ddd FreeBSD support
jodogne
parents: 1219
diff changeset
205 -DDCMTK_LIBRARIES="dcmdsig;charls;dcmjpls" \
2709
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2403
diff changeset
206 -DCMAKE_BUILD_TYPE=Release \
1337
afaa55d42ddd FreeBSD support
jodogne
parents: 1219
diff changeset
207 ~/Orthanc
afaa55d42ddd FreeBSD support
jodogne
parents: 1219
diff changeset
208
636
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
2086
630606097798 GNU/Linux
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2014
diff changeset
211 Other GNU/Linux distributions?
630606097798 GNU/Linux
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2014
diff changeset
212 ------------------------------
634
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
213
3405
408ffcb4038f reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3359
diff changeset
214 Don't hesitate to send us your build instructions (by a mail to
3063
fa5ad4368fe3 new mail address
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3006
diff changeset
215 s.jodogne@orthanc-labs.com)!
634
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
216
3405
408ffcb4038f reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3359
diff changeset
217 The file "./Resources/OldBuildInstructions.txt" contains build
408ffcb4038f reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3359
diff changeset
218 instructions that once worked for older versions of Orthanc or older
408ffcb4038f reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3359
diff changeset
219 GNU/Linux distributions, but are not tested anymore. Even if they may
408ffcb4038f reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3359
diff changeset
220 not work anymore as such, they can serve as a basis.
408ffcb4038f reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3359
diff changeset
221
634
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
222 You can find build instructions for Orthanc up to 0.7.0 on the
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
223 following Wiki page:
3405
408ffcb4038f reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3359
diff changeset
224 https://book.orthanc-server.com/faq/compiling-old.html
634
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
225
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
226 These instructions will not work as such beyond Orthanc 0.7.0, but
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
227 they might give indications.
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
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
231 Using ccache
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
232 ============
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
233
2086
630606097798 GNU/Linux
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2014
diff changeset
234 Under GNU/Linux, you also have the opportunity to use "ccache" to
634
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
235 dramatically decrease the compilation time when rebuilding
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
236 Orthanc. This is especially useful for developers. To this end, you
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
237 would use:
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
238
636
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
239 # CC="ccache gcc" CXX="ccache g++" cmake ~/Orthanc [Other Options]