comparison INSTALL @ 634:d775a3cb5a06

refactoring of CMake scripts
author jodogne
date Tue, 29 Oct 2013 10:31:02 +0100
parents dfbd3989a3f9
children f4f5ab513157
comparison
equal deleted inserted replaced
633:e207b33216db 634:d775a3cb5a06
41 41
42 42
43 Native Linux Compilation 43 Native Linux Compilation
44 ------------------------ 44 ------------------------
45 45
46 To build binaries with debug information: 46 See the file "LinuxCompilation.txt".
47
48 # cd ~/OrthancBuild
49 # cmake -DSTATIC_BUILD=ON -DCMAKE_BUILD_TYPE=Debug ~/Orthanc
50 # make
51 # make doc
52
53
54 To build a release version:
55
56 # cd ~/OrthancBuild
57 # cmake -DSTATIC_BUILD=ON -DCMAKE_BUILD_TYPE=Release ~/Orthanc
58 # make
59 # make doc
60
61
62 Under Linux, you have the possibility to dynamically link Orthanc
63 against the shared libraries of your system, provided their version is
64 recent enough. This greatly speeds up the compilation:
65
66 # cd ~/OrthancBuild
67 # cmake -DSTATIC_BUILD=OFF -DCMAKE_BUILD_TYPE=Debug ~/Orthanc
68 # make
69 47
70 48
71 49
72 Native Windows build with Microsoft Visual Studio 2005 50 Native Windows build with Microsoft Visual Studio 2005
73 ------------------------------------------------------ 51 ------------------------------------------------------
102 ------------------------------------------- 80 -------------------------------------------
103 81
104 # cd [...]\OrthancBuild 82 # cd [...]\OrthancBuild
105 # cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Debug [...]\Orthanc 83 # cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Debug [...]\Orthanc
106 # mingw32-make 84 # mingw32-make
107
108
109
110 Using ccache
111 ------------
112
113 Under Linux, you have the opportunity to use "ccache" to dramatically
114 decrease the compilation time when rebuilding Orthanc. This is
115 especially useful for developers. Under Debian/Ubuntu, you would use:
116
117 # CC="ccache gcc" CXX="ccache g++" cmake "-DDCMTK_LIBRARIES=wrap;oflog" \
118 -DSTATIC_BUILD=OFF -DCMAKE_BUILD_TYPE=Debug ~/Orthanc
119
120
121
122 Troubleshooting
123 ---------------
124
125 The build instructions for specific Linux distributions are available at the following place:
126 https://code.google.com/p/orthanc/wiki/FAQ#I_use_the_Linux_distribution_XXX,_how_can_I_build_Orthanc?