comparison OrthancFramework/SharedLibrary/NOTES.txt @ 4066:3a59a021b5de framework

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