0
|
1 Palantir - A Lightweight, RESTful DICOM Server
|
|
2 ==============================================
|
|
3
|
|
4
|
|
5 Dependencies
|
|
6 ------------
|
|
7
|
|
8 Palantir uses CMake (http://www.cmake.org/) to automate its building
|
|
9 process. You thus have to download and install CMake first.
|
|
10
|
|
11 The other third party dependencies are automatically downloaded by the
|
|
12 CMake scripts. The downloaded packages are stored in the
|
|
13 "ThirdPartyDownloads" directory.
|
|
14
|
|
15
|
|
16
|
|
17 Building Palantir at a glance
|
|
18 -----------------------------
|
|
19
|
|
20 To build Palantir, you must:
|
|
21
|
|
22 1) Download the source code (either using Mercurial, or through the
|
|
23 released versions). For the examples below, we assume the source
|
|
24 directory is "~/Palantir".
|
|
25
|
|
26 2) Create a build directory. For the examples below, we assume the
|
|
27 build directory is "~/PalantirBuild".
|
|
28
|
|
29
|
|
30
|
|
31 Native Linux Compilation
|
|
32 ------------------------
|
|
33
|
|
34 To build binaries with debug information:
|
|
35
|
|
36 # cd ~/PalantirBuild
|
|
37 # cmake -DCMAKE_BUILD_TYPE=DEBUG ~/Palantir
|
|
38 # make
|
|
39 # make doc
|
|
40
|
|
41
|
|
42 To build a release version:
|
|
43
|
|
44 # cd ~/PalantirBuild
|
|
45 # cmake -DCMAKE_BUILD_TYPE=RELEASE ~/Palantir
|
|
46 # make
|
|
47 # make doc
|
|
48
|
|
49
|
|
50 Under Linux, you have the possibility to dynamically link Palantir
|
|
51 against the shared libraries of your system, provided their version is
|
|
52 recent enough. This greatly speeds up the compilation:
|
|
53
|
|
54 # cd ~/PalantirBuild
|
|
55 # cmake -DSTATIC_BUILD=OFF -DCMAKE_BUILD_TYPE=DEBUG ~/Palantir
|
|
56 # make
|
|
57
|
|
58
|
|
59
|
|
60 Cross-Compilation for Windows under Linux
|
|
61 -----------------------------------------
|
|
62
|
|
63 To cross-compile Windows binaries under Linux using MinGW, please use
|
|
64 the following command:
|
|
65
|
|
66 # cd ~/PalantirBuild
|
|
67 # cmake -DCMAKE_TOOLCHAIN_FILE=~/Palantir/Resources/MinGWToolchain.cmake -DCMAKE_BUILD_TYPE=DEBUG ~/Palantir
|
|
68 # make
|