Mercurial > hg > orthanc
annotate Resources/ThirdParty/icu/README.txt @ 3838:95083d2f6819
fix build on os x
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 15 Apr 2020 17:58:30 +0200 |
parents | 905ee53c8274 |
children |
rev | line source |
---|---|
3242
5d78df37c62f
automating compilation if icu is used
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1 Generating ICU data file |
5d78df37c62f
automating compilation if icu is used
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2 ======================== |
5d78df37c62f
automating compilation if icu is used
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
3 |
5d78df37c62f
automating compilation if icu is used
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
4 This folder generates the "icudtXXX_dat.c" file that contains the |
5d78df37c62f
automating compilation if icu is used
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
5 resources internal to ICU. |
5d78df37c62f
automating compilation if icu is used
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
6 |
5d78df37c62f
automating compilation if icu is used
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
7 IMPORTANT: Since ICU 59, C++11 is mandatory, making it incompatible |
5d78df37c62f
automating compilation if icu is used
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
8 with Linux Standard Base (LSB) SDK. The option |
5d78df37c62f
automating compilation if icu is used
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
9 "-DUSE_LEGACY_LIBICU=ON" will use the latest version of ICU that does |
5d78df37c62f
automating compilation if icu is used
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
10 not use C++11 (58-2). |
5d78df37c62f
automating compilation if icu is used
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
11 |
5d78df37c62f
automating compilation if icu is used
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
12 |
5d78df37c62f
automating compilation if icu is used
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
13 Usage |
5d78df37c62f
automating compilation if icu is used
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
14 ----- |
5d78df37c62f
automating compilation if icu is used
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
15 |
5d78df37c62f
automating compilation if icu is used
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
16 Newest release of icu: |
5d78df37c62f
automating compilation if icu is used
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
17 |
5d78df37c62f
automating compilation if icu is used
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
18 $ cmake .. -G Ninja && ninja install |
5d78df37c62f
automating compilation if icu is used
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
19 |
3269 | 20 Legacy version suitable for LSB: |
3242
5d78df37c62f
automating compilation if icu is used
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
21 |
5d78df37c62f
automating compilation if icu is used
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
22 $ cmake .. -G Ninja -DUSE_LEGACY_LIBICU=ON && ninja install |
5d78df37c62f
automating compilation if icu is used
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
23 |
3251
fcfd4f73228c
using masm if compiling icu with Visual Studio
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3243
diff
changeset
|
24 Legacy version, compiled using LSB: |
3242
5d78df37c62f
automating compilation if icu is used
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
25 |
5d78df37c62f
automating compilation if icu is used
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
26 $ LSB_CC=gcc-4.8 LSB_CXX=g++-4.8 cmake .. -G Ninja \ |
5d78df37c62f
automating compilation if icu is used
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
27 -DCMAKE_TOOLCHAIN_FILE=../../../LinuxStandardBaseToolchain.cmake \ |
5d78df37c62f
automating compilation if icu is used
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
28 -DUSE_LEGACY_LIBICU=ON |
5d78df37c62f
automating compilation if icu is used
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
29 $ ninja install |
5d78df37c62f
automating compilation if icu is used
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
30 |
5d78df37c62f
automating compilation if icu is used
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
31 |
5d78df37c62f
automating compilation if icu is used
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
32 Result |
5d78df37c62f
automating compilation if icu is used
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
33 ------ |
5d78df37c62f
automating compilation if icu is used
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
34 |
5d78df37c62f
automating compilation if icu is used
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
35 The resulting files are placed in the "ThirdPartyDownloads" folder at |
5d78df37c62f
automating compilation if icu is used
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
36 the root of the Orthanc repository (next to the main "CMakeLists.txt"). |