Mercurial > hg > orthanc
comparison INSTALL @ 385:dfbd3989a3f9
install update
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 19 Apr 2013 09:46:14 +0200 |
parents | 1da6ec6038f5 |
children | d775a3cb5a06 |
comparison
equal
deleted
inserted
replaced
383:37f3e20b5add | 385:dfbd3989a3f9 |
---|---|
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 Native Windows build with Microsoft Visual Studio 2005 | |
73 ------------------------------------------------------ | |
74 | |
75 # cd [...]\OrthancBuild | |
76 # cmake -DSTANDALONE_BUILD=ON -G "Visual Studio 8 2005" [...]\Orthanc | |
77 | |
78 Then open the "[...]/OrthancBuild/Orthanc.sln" with Visual Studio. | |
79 | |
80 NOTES: | |
81 * More recent versions of Visual Studio should also work. | |
82 * You will have to install the Platform SDK (version 6 or above) for | |
83 Visual Studio 2005: | |
84 http://en.wikipedia.org/wiki/Microsoft_Windows_SDK. | |
85 Read the CMake FAQ: http://goo.gl/By90B | |
86 | |
87 | |
88 | |
72 Cross-Compilation for Windows under Linux | 89 Cross-Compilation for Windows under Linux |
73 ----------------------------------------- | 90 ----------------------------------------- |
74 | 91 |
75 To cross-compile Windows binaries under Linux using MinGW, please use | 92 To cross-compile Windows binaries under Linux using MinGW, please use |
76 the following command: | 93 the following command: |
88 # cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Debug [...]\Orthanc | 105 # cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Debug [...]\Orthanc |
89 # mingw32-make | 106 # mingw32-make |
90 | 107 |
91 | 108 |
92 | 109 |
93 Native Windows build with Microsoft Visual Studio 2005 | |
94 ------------------------------------------------------ | |
95 | |
96 # cd [...]\OrthancBuild | |
97 # cmake -DSTANDALONE_BUILD=ON -G "Visual Studio 8 2005" [...]\Orthanc | |
98 | |
99 Then open the "[...]/OrthancBuild/Orthanc.sln" with Visual Studio. | |
100 | |
101 NOTES: | |
102 * More recent versions of Visual Studio should also work. | |
103 * You will have to install the Platform SDK (version 6 or above) for | |
104 Visual Studio 2005: | |
105 http://en.wikipedia.org/wiki/Microsoft_Windows_SDK. | |
106 Read the CMake FAQ: http://goo.gl/By90B | |
107 | |
108 | |
109 | |
110 Debian/Ubuntu specific | |
111 ---------------------- | |
112 | |
113 When dynamically linking against the system libraries, you have to | |
114 manually add the "wrap" and "oflog" libraries at the configuration | |
115 time (because of a packaging error in "libdcmtk"): | |
116 | |
117 # cd ~/OrthancBuild | |
118 # cmake "-DDCMTK_LIBRARIES=wrap;oflog" -DSTATIC_BUILD=OFF -DCMAKE_BUILD_TYPE=Debug ~/Orthanc | |
119 # make | |
120 | |
121 | |
122 | |
123 Using ccache | 110 Using ccache |
124 ------------ | 111 ------------ |
125 | 112 |
126 Under Linux, you have the opportunity to use "ccache" to dramatically | 113 Under Linux, you have the opportunity to use "ccache" to dramatically |
127 decrease the compilation time when rebuilding Orthanc. This is | 114 decrease the compilation time when rebuilding Orthanc. This is |
128 especially useful for developers. Under Debian/Ubuntu, you would use: | 115 especially useful for developers. Under Debian/Ubuntu, you would use: |
129 | 116 |
130 # CC="ccache gcc" CXX="ccache g++" cmake "-DDCMTK_LIBRARIES=wrap;oflog" \ | 117 # CC="ccache gcc" CXX="ccache g++" cmake "-DDCMTK_LIBRARIES=wrap;oflog" \ |
131 -DSTATIC_BUILD=OFF -DCMAKE_BUILD_TYPE=Debug ~/Orthanc | 118 -DSTATIC_BUILD=OFF -DCMAKE_BUILD_TYPE=Debug ~/Orthanc |
132 | 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? |