annotate OrthancFramework/SharedLibrary/NOTES.txt @ 4632:f5cde118a284 varian

closing varian
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 20 Apr 2021 18:14:48 +0200
parents c5efe8897da8
children b7f27b116685
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
4103
c5efe8897da8 rename ORTHANC_INSTALL_DIR as ORTHANC_INSTALL_PREFIX for more consistency with CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4069
diff changeset
3 NB: CMake option "ORTHANC_INSTALL_PREFIX" can be used to specify an
c5efe8897da8 rename ORTHANC_INSTALL_DIR as ORTHANC_INSTALL_PREFIX for more consistency with CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4069
diff changeset
4 installation directory (to be used with "make install" or "ninja
c5efe8897da8 rename ORTHANC_INSTALL_DIR as ORTHANC_INSTALL_PREFIX for more consistency with CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4069
diff changeset
5 install").
4066
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
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
8 Dynamic linking under Ubuntu 18.04
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
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
11 $ cd i
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
12 $ cmake .. -DCMAKE_BUILD_TYPE=Debug -DALLOW_DOWNLOADS=ON \
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
13 -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
14 $ ninja -j4
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
15 $ ./UnitTests
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
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
19 Static linking under GNU/Linux
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
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
22 $ cd s
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
23 $ 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
24 $ ninja -j4
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
25 $ ./UnitTests
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
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
29 Cross-compilation to Windows 32 (using MinGW)
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
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
32 $ cd w32
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
33 $ 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
34 -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
35 $ ninja -j4
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
36
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
37 $ cp /usr/i686-w64-mingw32/lib/libwinpthread-1.dll .
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
38 $ 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
39 $ wine ./UnitTests.exe
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
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
43 WebAssembly (for the "upstream" version of emscripten)
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
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
46 $ cd wasm
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
47 $ source ~/Downloads/emsdk/emsdk_env.sh
4069
cf454aabfc19 improving EmscriptenParameters.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4066
diff changeset
48 $ 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
49 -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
50 $ ninja -j4
3a59a021b5de build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
51