comparison LinuxCompilation.txt @ 1208:6502517fd4af

improved doc thanks to Vincent Kersten
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 03 Nov 2014 16:45:35 +0100
parents fe0ab24f4db1
children c4ae92753d57
comparison
equal deleted inserted replaced
1207:ddb5b6ed9736 1208:6502517fd4af
7 7
8 The most simple way of building Orthanc under Linux consists in 8 The most simple way of building Orthanc under Linux consists in
9 statically linking against all the third-party dependencies. In this 9 statically linking against all the third-party dependencies. In this
10 case, the system-wide libraries will not be used. The build tool 10 case, the system-wide libraries will not be used. The build tool
11 (CMake) will download the sources of all the required packages and 11 (CMake) will download the sources of all the required packages and
12 automatically compile them. This process should work on all the Linux 12 automatically compile them.
13 distributions. 13
14 14 This process should work on any Linux distribution, provided that a
15 We make the assumption that Orthanc source code is placed in the 15 C/C++ compiler ("build-essential" in Debian-based systems), the Python
16 interpreter, CMake, the "unzip" system tool, and the development
17 package for libuuid ("uuid-dev" in Debian) are installed.
18
19
20 We now make the assumption that Orthanc source code is placed in the
16 folder "~/Orthanc" and that the binaries will be compiled to 21 folder "~/Orthanc" and that the binaries will be compiled to
17 "~/OrthancBuild". 22 "~/OrthancBuild". To build binaries with debug information:
18
19
20 To build binaries with debug information:
21 23
22 # cd ~/OrthancBuild 24 # cd ~/OrthancBuild
23 # cmake -DSTATIC_BUILD=ON -DCMAKE_BUILD_TYPE=Debug ~/Orthanc 25 # cmake -DSTATIC_BUILD=ON -DCMAKE_BUILD_TYPE=Debug ~/Orthanc
24 # make 26 # make
25 # make doc 27 # make doc
31 # cmake -DSTATIC_BUILD=ON -DCMAKE_BUILD_TYPE=Release ~/Orthanc 33 # cmake -DSTATIC_BUILD=ON -DCMAKE_BUILD_TYPE=Release ~/Orthanc
32 # make 34 # make
33 # make doc 35 # make doc
34 36
35 37
36 Note: When the "STATIC_BUILD" option is set to "ON", the build tool 38 Note 1- When the "STATIC_BUILD" option is set to "ON", the build tool
37 will not ask you the permission to download packages from the 39 will not ask you the permission to download packages from the
38 Internet. 40 Internet.
41
42 Note 2- If the development package of libuuid was not installed when
43 first invoking cmake, you will have to manually remove the build
44 directory ("rm -rf ~/OrthancBuild") after installing this package,
45 then run cmake again.
39 46
40 47
41 Use system-wide libraries under Linux 48 Use system-wide libraries under Linux
42 ===================================== 49 =====================================
43 50