Mercurial > hg > orthanc
annotate Resources/OldBuildInstructions.txt @ 4002:02e61695cd83
style
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 06 Jun 2020 10:58:36 +0200 |
parents | 0013818bf6d4 |
children |
rev | line source |
---|---|
1415 | 1 This file contains old build instructions that are not tested anymore. |
2 | |
3 | |
4 Debian Squeeze (6.x) | |
5 -------------------- | |
6 | |
7 # sudo apt-get install build-essential unzip cmake mercurial \ | |
8 uuid-dev libcurl4-openssl-dev liblua5.1-0-dev \ | |
9 libgoogle-glog-dev libpng-dev libgtest-dev \ | |
10 libsqlite3-dev libssl-dev zlib1g-dev | |
11 | |
12 # cmake -DALLOW_DOWNLOADS=ON \ | |
13 -DUSE_SYSTEM_BOOST=OFF \ | |
14 -DUSE_SYSTEM_DCMTK=OFF \ | |
15 -DUSE_SYSTEM_MONGOOSE=OFF \ | |
16 -DUSE_SYSTEM_JSONCPP=OFF \ | |
17 -DUSE_SYSTEM_PUGIXML=OFF \ | |
18 -DENABLE_JPEG=OFF \ | |
19 -DENABLE_JPEG_LOSSLESS=OFF \ | |
20 ~/Orthanc | |
21 | |
22 | |
23 Debian Wheezy (7.x) | |
24 ------------------- | |
25 | |
26 # sudo apt-get install build-essential unzip cmake mercurial \ | |
27 uuid-dev libcurl4-openssl-dev liblua5.1-0-dev \ | |
28 libgtest-dev libpng-dev libsqlite3-dev \ | |
29 libssl-dev zlib1g-dev libdcmtk2-dev \ | |
30 libboost-all-dev libwrap0-dev libjsoncpp-dev | |
31 | |
32 # cmake -DALLOW_DOWNLOADS=ON \ | |
33 -DUSE_SYSTEM_GOOGLE_LOG=OFF \ | |
34 -DUSE_SYSTEM_MONGOOSE=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
|
35 -DUSE_GOOGLE_TEST_DEBIAN_PACKAGE=ON \ |
1415 | 36 -DUSE_SYSTEM_PUGIXML=OFF \ |
37 -DENABLE_JPEG=OFF \ | |
38 -DENABLE_JPEG_LOSSLESS=OFF \ | |
39 ~/Orthanc | |
40 | |
41 | |
3405
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
42 Ubuntu 12.04.5 LTS |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
43 ------------------ |
1415 | 44 |
3405
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
45 # sudo apt-get install build-essential unzip cmake mercurial \ |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
46 uuid-dev libcurl4-openssl-dev liblua5.1-0-dev \ |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
47 libgtest-dev libpng-dev libsqlite3-dev libssl-dev libjpeg-dev \ |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
48 zlib1g-dev libdcmtk2-dev libboost1.48-all-dev libwrap0-dev \ |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
49 libcharls-dev |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
50 |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
51 # cmake "-DDCMTK_LIBRARIES=boost_locale;CharLS;dcmjpls;wrap;oflog" \ |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
52 -DALLOW_DOWNLOADS=ON \ |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
53 -DUSE_SYSTEM_CIVETWEB=OFF \ |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
54 -DUSE_SYSTEM_JSONCPP=OFF \ |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
55 -DUSE_SYSTEM_PUGIXML=OFF \ |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
56 -DUSE_GOOGLE_TEST_DEBIAN_PACKAGE=ON \ |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
57 -DCMAKE_BUILD_TYPE=Release \ |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
58 ~/Orthanc |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
59 |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
60 |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
61 Ubuntu 12.10 |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
62 ------------ |
1415 | 63 |
64 # sudo apt-get install build-essential unzip cmake mercurial \ | |
65 uuid-dev libcurl4-openssl-dev liblua5.1-0-dev \ | |
66 libgoogle-glog-dev libgtest-dev libpng-dev \ | |
67 libsqlite3-dev libssl-dev zlib1g-dev \ | |
68 libdcmtk2-dev libboost-all-dev libwrap0-dev libcharls-dev | |
69 | |
70 With JPEG: | |
71 | |
72 # cmake "-DDCMTK_LIBRARIES=CharLS;dcmjpls;wrap;oflog" \ | |
73 -DALLOW_DOWNLOADS=ON \ | |
74 -DUSE_SYSTEM_MONGOOSE=OFF \ | |
75 -DUSE_SYSTEM_JSONCPP=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
|
76 -DUSE_GOOGLE_TEST_DEBIAN_PACKAGE=ON \ |
1415 | 77 -DUSE_SYSTEM_PUGIXML=OFF \ |
78 ~/Orthanc | |
79 | |
80 | |
81 Without JPEG: | |
82 | |
83 # cmake "-DDCMTK_LIBRARIES=wrap;oflog" \ | |
84 -DALLOW_DOWNLOADS=ON \ | |
85 -DUSE_SYSTEM_MONGOOSE=OFF \ | |
86 -DUSE_SYSTEM_JSONCPP=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
|
87 -DUSE_GOOGLE_TEST_DEBIAN_PACKAGE=ON \ |
1415 | 88 -DUSE_SYSTEM_PUGIXML=OFF \ |
89 -DENABLE_JPEG=OFF \ | |
90 -DENABLE_JPEG_LOSSLESS=OFF \ | |
91 ~/Orthanc | |
92 | |
93 | |
3405
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
94 Ubuntu 13.10 |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
95 ------------ |
1415 | 96 |
97 # sudo apt-get install build-essential unzip cmake mercurial \ | |
98 uuid-dev libcurl4-openssl-dev liblua5.1-0-dev \ | |
99 libgoogle-glog-dev libgtest-dev libpng-dev \ | |
100 libsqlite3-dev libssl-dev zlib1g-dev \ | |
101 libdcmtk2-dev libboost-all-dev libwrap0-dev libjsoncpp-dev | |
102 | |
103 # cmake "-DDCMTK_LIBRARIES=wrap;oflog" \ | |
104 -DALLOW_DOWNLOADS=ON \ | |
105 -DUSE_SYSTEM_MONGOOSE=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
|
106 -DUSE_GOOGLE_TEST_DEBIAN_PACKAGE=ON \ |
1415 | 107 -DUSE_SYSTEM_PUGIXML=OFF \ |
108 -DENABLE_JPEG=OFF \ | |
109 -DENABLE_JPEG_LOSSLESS=OFF \ | |
110 ~/Orthanc | |
111 | |
112 | |
3405
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
113 Fedora 19 |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
114 --------- |
1415 | 115 |
116 # sudo yum install unzip make automake gcc gcc-c++ python cmake \ | |
117 boost-devel curl-devel dcmtk-devel glog-devel \ | |
118 gtest-devel libpng-devel libsqlite3x-devel libuuid-devel \ | |
119 mongoose-devel openssl-devel jsoncpp-devel lua-devel pugixml-devel | |
120 | |
121 # cmake "-DDCMTK_LIBRARIES=CharLS" \ | |
122 -DSYSTEM_MONGOOSE_USE_CALLBACKS=OFF \ | |
123 ~/Orthanc | |
124 | |
125 Note: Have also a look at the official package: | |
126 http://pkgs.fedoraproject.org/cgit/orthanc.git/tree/?h=f18 | |
3405
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
127 |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
128 |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
129 CentOS 6 |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
130 -------- |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
131 |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
132 # yum install unzip make automake gcc gcc-c++ python cmake curl-devel \ |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
133 libpng-devel sqlite-devel libuuid-devel openssl-devel \ |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
134 lua-devel mercurial patch tar |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
135 |
3452 | 136 Using static linking with Civetweb (tested with Orthanc 1.5.7): |
137 | |
138 # cmake -DSTATIC_BUILD=ON \ | |
139 -DSTANDALONE_BUILD=ON \ | |
140 -DUSE_LEGACY_JSONCPP=ON \ | |
141 -DUSE_LEGACY_LIBICU=ON \ | |
142 -DBOOST_LOCALE_BACKEND=icu \ | |
143 -DCMAKE_BUILD_TYPE=Debug \ | |
144 ~/Orthanc | |
145 | |
146 Using Mongoose (untested): | |
147 | |
3405
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
148 # cmake -DALLOW_DOWNLOADS=ON \ |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
149 -DUSE_SYSTEM_JSONCPP=OFF \ |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
150 -DUSE_SYSTEM_CIVETWEB=OFF \ |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
151 -DUSE_SYSTEM_PUGIXML=OFF \ |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
152 -DUSE_SYSTEM_SQLITE=OFF \ |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
153 -DUSE_SYSTEM_BOOST=OFF \ |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
154 -DUSE_SYSTEM_DCMTK=OFF \ |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
155 -DUSE_SYSTEM_GOOGLE_TEST=OFF \ |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
156 -DUSE_SYSTEM_LIBJPEG=OFF \ |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
157 -DCMAKE_BUILD_TYPE=Release \ |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
158 ~/Orthanc |
408ffcb4038f
reorganizing build instructions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2403
diff
changeset
|
159 |