annotate OrthancFramework/SharedLibrary/NOTES.txt @ 4097:99e2054d1e8d

fix unit tests for orthanc framework
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 01 Jul 2020 11:15:29 +0200
parents cf454aabfc19
children c5efe8897da8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4066
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
2
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
3 NB: CMake option "ORTHANC_INSTALL_DIR" can be used to specify an
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
4 installation directory (to be used with "ninja install").
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
5
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
6
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
7 Dynamic linking under Ubuntu 18.04
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
8 ==================================
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
9
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
10 $ cd i
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
11 $ cmake .. -DCMAKE_BUILD_TYPE=Debug -DALLOW_DOWNLOADS=ON \
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
12 -DUSE_SYSTEM_CIVETWEB=OFF -DUSE_SYSTEM_GOOGLE_TEST=OFF -G Ninja
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
13 $ ninja -j4
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
14 $ ./UnitTests
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
15
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
16
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
17
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
18 Static linking under GNU/Linux
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
19 ==============================
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
20
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
21 $ cd s
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
22 $ cmake .. -DCMAKE_BUILD_TYPE=Debug -DSTATIC_BUILD=ON -G Ninja
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
23 $ ninja -j4
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
24 $ ./UnitTests
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
25
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
26
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
27
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
28 Cross-compilation to Windows 32 (using MinGW)
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
29 ===============================
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
30
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
31 $ cd w32
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
32 $ cmake .. -DCMAKE_BUILD_TYPE=Release -DSTATIC_BUILD=ON -DUSE_LEGACY_LIBICU=ON -G Ninja \
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
33 -DCMAKE_TOOLCHAIN_FILE=/home/jodogne/Subversion/orthanc/Resources/MinGW-W64-Toolchain32.cmake
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
34 $ ninja -j4
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
35
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
36 $ cp /usr/i686-w64-mingw32/lib/libwinpthread-1.dll .
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
37 $ cp /usr/lib/gcc/i686-w64-mingw32/7.3-win32/libgcc_s_sjlj-1.dll .
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
38 $ wine ./UnitTests.exe
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
39
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
40
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
41
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
42 WebAssembly (for the "upstream" version of emscripten)
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
43 ===========
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
44
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
45 $ cd wasm
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
46 $ source ~/Downloads/emsdk/emsdk_env.sh
4069
cf454aabfc19 improving EmscriptenParameters.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4066
diff changeset
47 $ cmake .. -DCMAKE_BUILD_TYPE=Release -DALLOW_DOWNLOADS=ON -G Ninja \
4066
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
48 -DCMAKE_TOOLCHAIN_FILE=${EMSDK}/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
49 $ ninja -j4
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
50