comparison INSTALL @ 292:0439da59faef

notes
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 14 Dec 2012 15:33:17 +0100
parents 4d7469f72a0b
children 238134081136
comparison
equal deleted inserted replaced
291:4d7469f72a0b 292:0439da59faef
44 ------------------------ 44 ------------------------
45 45
46 To build binaries with debug information: 46 To build binaries with debug information:
47 47
48 # cd ~/OrthancBuild 48 # cd ~/OrthancBuild
49 # cmake -DCMAKE_BUILD_TYPE=DEBUG ~/Orthanc 49 # cmake -DCMAKE_BUILD_TYPE=Debug ~/Orthanc
50 # make 50 # make
51 # make doc 51 # make doc
52 52
53 53
54 To build a release version: 54 To build a release version:
55 55
56 # cd ~/OrthancBuild 56 # cd ~/OrthancBuild
57 # cmake -DCMAKE_BUILD_TYPE=RELEASE ~/Orthanc 57 # cmake -DCMAKE_BUILD_TYPE=Release ~/Orthanc
58 # make 58 # make
59 # make doc 59 # make doc
60 60
61 61
62 Under Linux, you have the possibility to dynamically link Orthanc 62 Under Linux, you have the possibility to dynamically link Orthanc
63 against the shared libraries of your system, provided their version is 63 against the shared libraries of your system, provided their version is
64 recent enough. This greatly speeds up the compilation: 64 recent enough. This greatly speeds up the compilation:
65 65
66 # cd ~/OrthancBuild 66 # cd ~/OrthancBuild
67 # cmake -DSTATIC_BUILD=OFF -DCMAKE_BUILD_TYPE=DEBUG ~/Orthanc 67 # cmake -DSTATIC_BUILD=OFF -DCMAKE_BUILD_TYPE=Debug ~/Orthanc
68 # make 68 # make
69 69
70 70
71 71
72 Cross-Compilation for Windows under Linux 72 Cross-Compilation for Windows under Linux
74 74
75 To cross-compile Windows binaries under Linux using MinGW, please use 75 To cross-compile Windows binaries under Linux using MinGW, please use
76 the following command: 76 the following command:
77 77
78 # cd ~/OrthancBuild 78 # cd ~/OrthancBuild
79 # cmake -DCMAKE_TOOLCHAIN_FILE=~/Orthanc/Resources/MinGWToolchain.cmake -DSTANDALONE_BUILD=ON -DCMAKE_BUILD_TYPE=DEBUG ~/Orthanc 79 # cmake -DCMAKE_TOOLCHAIN_FILE=~/Orthanc/Resources/MinGWToolchain.cmake -DSTANDALONE_BUILD=ON -DCMAKE_BUILD_TYPE=Debug ~/Orthanc
80 # make 80 # make
81 81
82 82
83 83
84 Native Windows build with MinGW (VERY SLOW) 84 Native Windows build with MinGW (VERY SLOW)
85 ------------------------------------------- 85 -------------------------------------------
86 86
87 # cd [...]\OrthancBuild 87 # cd [...]\OrthancBuild
88 # cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=DEBUG [...]\Orthanc 88 # cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Debug [...]\Orthanc
89 # mingw32-make 89 # mingw32-make
90 90
91 91
92 92
93 Native Windows build with Microsoft Visual Studio 2005 93 Native Windows build with Microsoft Visual Studio 2005
113 When dynamically linking against the system libraries, you have to 113 When dynamically linking against the system libraries, you have to
114 manually add the "wrap" and "oflog" libraries at the configuration 114 manually add the "wrap" and "oflog" libraries at the configuration
115 time (because of a packaging error in "libdcmtk"): 115 time (because of a packaging error in "libdcmtk"):
116 116
117 # cd ~/OrthancBuild 117 # cd ~/OrthancBuild
118 # cmake "-DDCMTK_LIBRARIES=wrap;oflog" -DSTATIC_BUILD=OFF -DCMAKE_BUILD_TYPE=DEBUG ~/Orthanc 118 # cmake "-DDCMTK_LIBRARIES=wrap;oflog" -DSTATIC_BUILD=OFF -DCMAKE_BUILD_TYPE=Debug ~/Orthanc
119 # make 119 # make
120 120