Mercurial > hg > orthanc-stone
comparison README.md @ 554:841ab71cd91f dev
merge
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Wed, 03 Apr 2019 17:39:17 +0200 |
parents | d10a295b607a |
children | e3f21a265be5 69370bdaad89 |
comparison
equal
deleted
inserted
replaced
553:92305ee35b1c | 554:841ab71cd91f |
---|---|
135 -DORTHANC_FRAMEWORK_ROOT=$currentDir/../../../orthanc \ | 135 -DORTHANC_FRAMEWORK_ROOT=$currentDir/../../../orthanc \ |
136 -DALLOW_DOWNLOADS=ON -DENABLE_SDL=ON \ | 136 -DALLOW_DOWNLOADS=ON -DENABLE_SDL=ON \ |
137 ~/orthanc-stone/Applications/Samples/ | 137 ~/orthanc-stone/Applications/Samples/ |
138 ``` | 138 ``` |
139 | 139 |
140 **Ninja generator with static build (typical under Windows)** | 140 **Ninja generator with static SDL build (pwsh script)** |
141 | 141 |
142 ``` | 142 ``` |
143 # Please yourself one level above the orthanc-stone and orthanc folders | 143 # Please yourself one level above the orthanc-stone and orthanc folders |
144 mkdir -p stone_build_sdl | 144 if( -not (test-path stone_build_sdl)) { mkdir stone_build_sdl } |
145 cd stone_build_sdl | 145 cd stone_build_sdl |
146 cmake -G Ninja -DSTATIC_BUILD=ON -DOPENSSL_NO_CAPIENG=ON -DORTHANC_FRAMEWORK_SOURCE=path -DORTHANC_FRAMEWORK_ROOT="$($pwd)\..\orthanc" -DALLOW_DOWNLOADS=ON -DENABLE_SDL=ON ../orthanc-stone/Applications/Samples/ | 146 cmake -G Ninja -DSTATIC_BUILD=ON -DOPENSSL_NO_CAPIENG=ON -DORTHANC_FRAMEWORK_SOURCE=path -DORTHANC_FRAMEWORK_ROOT="$($pwd)\..\orthanc" -DALLOW_DOWNLOADS=ON -DENABLE_SDL=ON ../orthanc-stone/Applications/Samples/ |
147 ``` | 147 ``` |
148 | 148 |
149 **Visual Studio 2017 generator with static SDL build (pwsh script)** | |
150 | |
151 ``` | |
152 # The following will use Visual Studio 2017 to build the SDL samples | |
153 # in debug mode (with multiple compilers in parallel). NOTE: place | |
154 # yourself one level above the `orthanc-stone` and `orthanc` folders | |
155 | |
156 if( -not (test-path stone_build_sdl)) { mkdir stone_build_sdl } | |
157 cd stone_build_sdl | |
158 cmake -G "Visual Studio 15 2017 Win64" -DMSVC_MULTIPLE_PROCESSES=ON -DSTATIC_BUILD=ON -DOPENSSL_NO_CAPIENG=ON -DORTHANC_FRAMEWORK_SOURCE=path -DORTHANC_FRAMEWORK_ROOT="$($pwd)\..\orthanc" -DALLOW_DOWNLOADS=ON -DENABLE_SDL=ON ../orthanc-stone/Applications/Samples/ | |
159 cmake --build . --config Debug | |
160 ``` | |
149 | 161 |
150 If you are working on Windows, add the correct generator option to | 162 If you are working on Windows, add the correct generator option to |
151 cmake to, for instance, generate msbuild files for Visual Studio. | 163 cmake to, for instance, generate msbuild files for Visual Studio. |
152 | 164 |
153 Then, under Linux: | 165 Then, under Linux: |
158 Note: replace `$($pwd)` with the current directory when not using Powershell | 170 Note: replace `$($pwd)` with the current directory when not using Powershell |
159 | 171 |
160 Building the Qt native samples (SimpleViewer only) under Windows: | 172 Building the Qt native samples (SimpleViewer only) under Windows: |
161 ------------------------------------------------------------------ | 173 ------------------------------------------------------------------ |
162 | 174 |
163 **MSVC 2017 generator with static build (typical under Windows)** | 175 **Visual Studio 2017 generator with static Qt build (pwsh script)** |
164 | 176 |
165 For instance, if Qt is installed in `C:\Qt\5.12.0\msvc2017_64` | 177 For instance, if Qt is installed in `C:\Qt\5.12.0\msvc2017_64` |
166 | 178 |
167 ``` | 179 ``` |
168 cmake -DSTATIC_BUILD=ON -DOPENSSL_NO_CAPIENG=ON -DCMAKE_PREFIX_PATH=C:\Qt\5.12.0\msvc2017_64 -DORTHANC_FRAMEWORK_SOURCE=path -DORTHANC_FRAMEWORK_ROOT="$($pwd)\..\orthanc" -DALLOW_DOWNLOADS=ON -DENABLE_QT=ON -G "Visual Studio 15 2017 Win64" ../orthanc-stone/Applications/Samples/ | 180 # The following will use Visual Studio 2017 to build the SDL samples |
181 # in debug mode (with multiple compilers in parallel). NOTE: place | |
182 # yourself one level above the `orthanc-stone` and `orthanc` folders | |
183 | |
184 if( -not (test-path stone_build_qt)) { mkdir stone_build_qt } | |
185 cd stone_build_qt | |
186 cmake -G "Visual Studio 15 2017 Win64" -DMSVC_MULTIPLE_PROCESSES=ON -DSTATIC_BUILD=ON -DOPENSSL_NO_CAPIENG=ON -DCMAKE_PREFIX_PATH=C:\Qt\5.12.0\msvc2017_64 -DORTHANC_FRAMEWORK_SOURCE=path -DORTHANC_FRAMEWORK_ROOT="$($pwd)\..\orthanc" -DALLOW_DOWNLOADS=ON -DENABLE_QT=ON ../orthanc-stone/Applications/Samples/ | |
187 cmake --build . --config Debug | |
169 ``` | 188 ``` |
170 | 189 |
171 Note: replace `$($pwd)` with the current directory when not using Powershell | 190 Note: replace `$($pwd)` with the current directory when not using Powershell |
191 | |
192 | |
193 | |
172 | 194 |
173 | 195 |
174 | 196 |
175 Building the SDL native samples (SimpleViewer only) under Windows: | 197 Building the SDL native samples (SimpleViewer only) under Windows: |
176 ------------------------------------------------------------------ | 198 ------------------------------------------------------------------ |