Mercurial > hg > orthanc
comparison INSTALL @ 2547:8b6b0b6ece6b
MinGW, ORTHANC_FRAMEWORK_URL
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 18 Apr 2018 10:23:40 +0200 |
parents | 6d5e36e1256f |
children | c6dab987f43a |
comparison
equal
deleted
inserted
replaced
2546:6d5e36e1256f | 2547:8b6b0b6ece6b |
---|---|
93 | 93 |
94 | 94 |
95 Cross-Compilation for Windows under GNU/Linux | 95 Cross-Compilation for Windows under GNU/Linux |
96 --------------------------------------------- | 96 --------------------------------------------- |
97 | 97 |
98 To cross-compile Windows binaries under Linux using MinGW-W64, please | 98 Some versions of MinGW-W64 might have problems with C++11 (notably |
99 use the following command: | 99 those shipped in Ubuntu 16.04 LTS, in the "mingw-w64" package). Use |
100 the following command to disable C++11: | |
100 | 101 |
101 # cd ~/OrthancBuild | 102 # cd ~/OrthancBuild |
102 # cmake -DCMAKE_TOOLCHAIN_FILE=~/Orthanc/Resources/MinGW-W64-Toolchain32.cmake -DSTATIC_BUILD=ON -DSTANDALONE_BUILD=ON -DUSE_DCMTK_360=ON -DCMAKE_BUILD_TYPE=Debug ~/Orthanc | 103 # cmake ~/Orthanc \ |
104 -DCMAKE_BUILD_TYPE=Debug \ | |
105 -DCMAKE_TOOLCHAIN_FILE=~/Orthanc/Resources/MinGW-W64-Toolchain32.cmake \ | |
106 -DSTANDALONE_BUILD=ON \ | |
107 -DSTATIC_BUILD=ON \ | |
108 -DUSE_LEGACY_JSONCPP=ON | |
103 # make | 109 # make |
104 | 110 |
105 For older MinGW32, use the following CMake invokation: | 111 NB: Use the toolchain "MinGW-W64-Toolchain64.cmake" to produce 64bit |
112 Windows binaries. | |
106 | 113 |
107 # cmake -DCMAKE_TOOLCHAIN_FILE=~/Orthanc/Resources/MinGWToolchain.cmake -DSTATIC_BUILD=ON -DSTANDALONE_BUILD=ON -DCMAKE_BUILD_TYPE=Debug -DUSE_DCMTK_360=ON -DUSE_LEGACY_JSONCPP=ON ~/Orthanc | 114 |
115 | |
116 Legacy MinGW32 compilers (notably those shipped in Ubuntu 14.04 LTS, | |
117 in the "mingw32" package) are incompatible with DCMTK 3.6.2 and | |
118 C++11. Use the following command to force using DCMTK 3.6.0 and | |
119 disable C++11: | |
120 | |
121 # cd ~/OrthancBuild | |
122 # cmake ~/Orthanc \ | |
123 -DCMAKE_BUILD_TYPE=Debug \ | |
124 -DCMAKE_TOOLCHAIN_FILE=~/Orthanc/Resources/MinGWToolchain.cmake \ | |
125 -DSTANDALONE_BUILD=ON \ | |
126 -DSTATIC_BUILD=ON \ | |
127 -DUSE_DCMTK_360=ON \ | |
128 -DUSE_LEGACY_JSONCPP=ON | |
129 # make |