annotate LinuxCompilation.txt @ 1503:4320cfcfabef Orthanc-0.9.3

Orthanc-0.9.3
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 07 Aug 2015 18:18:12 +0200
parents 728c22ade2e2
children 729d69336919
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
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
1208
6502517fd4af improved doc thanks to Vincent Kersten
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1150
diff changeset
14 This process should work on any Linux distribution, provided that a
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
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
50 Use system-wide libraries under Linux
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
51 =====================================
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
52
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
53 Under Linux, by default, Orthanc links against the shared libraries of
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
54 your system (the "STATIC_BUILD" option is set to "OFF"). This greatly
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
55 speeds up the compilation. This is also required when building
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
56 packages for Linux distributions. Because using system libraries is
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
57 the default behavior, you just have to use:
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
1219
c4ae92753d57 note about doxygen
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1208
diff changeset
63 Note that to build the documentation, you will have to install doxyen.
634
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
64
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
65 However, on some Linux distributions, it is still required to download
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
66 and static link against some third-party dependencies, e.g. when the
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
67 system-wide library is not shipped or is outdated. Because of
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
68 difference in the packaging of the various Linux distribution, it is
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
69 also sometimes required to fine-tune some options.
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
70
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
71 You will find below build instructions for specific Linux
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
72 distributions. Distributions tagged by "SUPPORTED" are tested by
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
73 Sébastien Jodogne. Distributions tagged by "CONTRIBUTED" come from
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
74 Orthanc users.
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
75
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
76
636
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
77 SUPPORTED - Debian Jessie/Sid
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
78 -----------------------------
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 # 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
81 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
82 libgoogle-glog-dev libgtest-dev libpng-dev \
678
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 677
diff changeset
83 libsqlite3-dev libssl-dev zlib1g-dev libdcmtk2-dev \
1077
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1046
diff changeset
84 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
85
651
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 645
diff changeset
86 # cmake -DALLOW_DOWNLOADS=ON \
636
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
87 -DUSE_SYSTEM_MONGOOSE=OFF \
638
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 636
diff changeset
88 -DUSE_GTEST_DEBIAN_SOURCE_PACKAGE=ON \
1078
5d35f9e16fd1 compilation notes
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1077
diff changeset
89 -DDCMTK_LIBRARIES=dcmjpls \
636
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
90 ~/Orthanc
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
91
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
92 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
93 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
94
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
95
1349
d8334d7b425d fix issue 33
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1337
diff changeset
96 SUPPORTED - Ubuntu 12.04.5 LTS
d8334d7b425d fix issue 33
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1337
diff changeset
97 ------------------------------
645
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
98
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
99 # 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
100 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
101 libgtest-dev libpng-dev libsqlite3-dev libssl-dev \
1349
d8334d7b425d fix issue 33
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1337
diff changeset
102 zlib1g-dev libdcmtk2-dev libboost1.48-all-dev libwrap0-dev \
d8334d7b425d fix issue 33
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1337
diff changeset
103 libcharls-dev
645
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
104
1349
d8334d7b425d fix issue 33
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1337
diff changeset
105 # cmake "-DDCMTK_LIBRARIES=boost_locale;CharLS;dcmjpls;wrap;oflog" \
645
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
106 -DALLOW_DOWNLOADS=ON \
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
107 -DUSE_SYSTEM_MONGOOSE=OFF \
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
108 -DUSE_SYSTEM_JSONCPP=OFF \
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
109 -DUSE_SYSTEM_GOOGLE_LOG=OFF \
1046
00f9f36bcd94 on-the-fly conversion of JSON to XML according to HTTP Accept
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 936
diff changeset
110 -DUSE_SYSTEM_PUGIXML=OFF \
645
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
111 -DUSE_GTEST_DEBIAN_SOURCE_PACKAGE=ON \
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
112 ~/Orthanc
75af92b18e23 build notes for ubuntu 12.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 640
diff changeset
113
636
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
114
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
115
1350
724dc4e17d38 build ubuntu 14.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1349
diff changeset
116 SUPPORTED - Ubuntu 14.04 LTS
724dc4e17d38 build ubuntu 14.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1349
diff changeset
117 ----------------------------
724dc4e17d38 build ubuntu 14.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1349
diff changeset
118
724dc4e17d38 build ubuntu 14.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1349
diff changeset
119 # cmake -DALLOW_DOWNLOADS=ON \
724dc4e17d38 build ubuntu 14.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1349
diff changeset
120 -DUSE_GTEST_DEBIAN_SOURCE_PACKAGE=ON \
724dc4e17d38 build ubuntu 14.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1349
diff changeset
121 -DUSE_SYSTEM_MONGOOSE=OFF \
724dc4e17d38 build ubuntu 14.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1349
diff changeset
122 -DDCMTK_LIBRARIES=dcmjpls \
724dc4e17d38 build ubuntu 14.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1349
diff changeset
123 ~/Orthanc
724dc4e17d38 build ubuntu 14.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1349
diff changeset
124
724dc4e17d38 build ubuntu 14.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1349
diff changeset
125
724dc4e17d38 build ubuntu 14.04 lts
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1349
diff changeset
126
1415
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
127 SUPPORTED - Fedora 20-22
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
128 ------------------------
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
129
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
130 # sudo yum install unzip make automake gcc gcc-c++ python cmake \
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
131 boost-devel curl-devel dcmtk-devel glog-devel \
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
132 gtest-devel libpng-devel libsqlite3x-devel libuuid-devel \
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
133 mongoose-devel openssl-devel jsoncpp-devel lua-devel pugixml-devel
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
134
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
135 You will also have to install "gflags-devel" on Fedora 21&22:
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
136
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
137 # sudo yum install gflags-devel
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
138
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
139 # cmake "-DDCMTK_LIBRARIES=CharLS" \
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
140 -DSYSTEM_MONGOOSE_USE_CALLBACKS=OFF \
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
141 ~/Orthanc
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
142
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
143 Note: Have also a look at the official package:
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
144 http://pkgs.fedoraproject.org/cgit/orthanc.git/tree/?h=f18
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
145
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
146
728c22ade2e2 cleaning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1406
diff changeset
147
1337
afaa55d42ddd FreeBSD support
jodogne
parents: 1219
diff changeset
148 SUPPORTED - FreeBSD 10.1
afaa55d42ddd FreeBSD support
jodogne
parents: 1219
diff changeset
149 ------------------------
afaa55d42ddd FreeBSD support
jodogne
parents: 1219
diff changeset
150
afaa55d42ddd FreeBSD support
jodogne
parents: 1219
diff changeset
151 # pkg install jsoncpp pugixml lua51 curl googletest dcmtk cmake \
afaa55d42ddd FreeBSD support
jodogne
parents: 1219
diff changeset
152 e2fsprogs-libuuid glog boost-libs sqlite3 python libiconv
afaa55d42ddd FreeBSD support
jodogne
parents: 1219
diff changeset
153
afaa55d42ddd FreeBSD support
jodogne
parents: 1219
diff changeset
154 # cmake -DALLOW_DOWNLOADS=ON \
afaa55d42ddd FreeBSD support
jodogne
parents: 1219
diff changeset
155 -DUSE_SYSTEM_MONGOOSE=OFF \
afaa55d42ddd FreeBSD support
jodogne
parents: 1219
diff changeset
156 -DDCMTK_LIBRARIES="dcmdsig;charls;dcmjpls" \
afaa55d42ddd FreeBSD support
jodogne
parents: 1219
diff changeset
157 ~/Orthanc
afaa55d42ddd FreeBSD support
jodogne
parents: 1219
diff changeset
158
636
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
159
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
160
634
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
161 Other Linux distributions?
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
162 --------------------------
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
163
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
164 Please send us your build instructions (by a mail to
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
165 s.jodogne@gmail.com)!
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
166
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
167 You can find build instructions for Orthanc up to 0.7.0 on the
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
168 following Wiki page:
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
169 https://code.google.com/p/orthanc/wiki/LinuxCompilationUpTo070
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
170
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
171 These instructions will not work as such beyond Orthanc 0.7.0, but
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
172 they might give indications.
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
173
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
174
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
175
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
176
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
177 Using ccache
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
178 ============
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
179
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
180 Under Linux, you also have the opportunity to use "ccache" to
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
181 dramatically decrease the compilation time when rebuilding
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
182 Orthanc. This is especially useful for developers. To this end, you
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
183 would use:
d775a3cb5a06 refactoring of CMake scripts
jodogne
parents:
diff changeset
184
636
9ac1e8383877 build instructions for Debian Sid and Fedora 18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 635
diff changeset
185 # CC="ccache gcc" CXX="ccache g++" cmake ~/Orthanc [Other Options]