comparison Sphinx/source/plugins/wsi.rst @ 129:61050d813d74

build wsi
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 04 Jan 2018 11:06:35 +0100
parents f8aa67501041
children 011b01ccf52d
comparison
equal deleted inserted replaced
128:f2abbac22d5c 129:61050d813d74
22 22
23 23
24 Compilation 24 Compilation
25 ----------- 25 -----------
26 26
27 Static linking
28 ^^^^^^^^^^^^^^
29
27 .. highlight:: text 30 .. highlight:: text
28 31
29 The procedure to compile the WSI framework is similar of that for the 32 The procedure to compile the WSI framework is similar of that for the
30 :ref:`core of Orthanc <binaries>`. The following commands should work 33 :ref:`core of Orthanc <binaries>`. The following commands should work
31 for every UNIX-like distribution (including GNU/Linux):: 34 for every UNIX-like distribution (including GNU/Linux)::
33 # Firstly, compile the command-line tools 36 # Firstly, compile the command-line tools
34 $ mkdir Applications/Build 37 $ mkdir Applications/Build
35 $ cd Applications/Build 38 $ cd Applications/Build
36 $ cmake .. -DSTATIC_BUILD=ON -DCMAKE_BUILD_TYPE=Release 39 $ cmake .. -DSTATIC_BUILD=ON -DCMAKE_BUILD_TYPE=Release
37 $ make 40 $ make
41
38 # Secondly, compile the viewer plugin 42 # Secondly, compile the viewer plugin
39 $ mkdir ../../ViewerPlugin/Build 43 $ mkdir ../../ViewerPlugin/Build
40 $ cd ../../ViewerPlugin/Build 44 $ cd ../../ViewerPlugin/Build
41 $ cmake .. -DSTATIC_BUILD=ON -DCMAKE_BUILD_TYPE=Release 45 $ cmake .. -DSTATIC_BUILD=ON -DCMAKE_BUILD_TYPE=Release
42 $ make 46 $ make
45 49
46 * ``Applications/Build/OrthancWSIDicomizer``, which contains the DICOM-izer. 50 * ``Applications/Build/OrthancWSIDicomizer``, which contains the DICOM-izer.
47 * ``Applications/Build/OrthancWSIDicomToTiff``, which contains the DICOM-to-TIFF converter. 51 * ``Applications/Build/OrthancWSIDicomToTiff``, which contains the DICOM-to-TIFF converter.
48 * ``ViewerPlugin/Build/OrthancWSI``, which is a shared library containing the viewer plugin for Orthanc. 52 * ``ViewerPlugin/Build/OrthancWSI``, which is a shared library containing the viewer plugin for Orthanc.
49 53
54 Microsoft Windows
55 ^^^^^^^^^^^^^^^^^
56
50 Note that pre-compiled binaries for Microsoft Windows `are available 57 Note that pre-compiled binaries for Microsoft Windows `are available
51 <http://www.orthanc-server.com/browse.php?path=/whole-slide-imaging>`__. 58 <http://www.orthanc-server.com/browse.php?path=/whole-slide-imaging>`__.
59
60
61 Dynamic linking
62 ^^^^^^^^^^^^^^^
63
64 .. highlight:: text
65
66 If static linking is not desired, here are build instructions for
67 Ubuntu 16.04 (provided build dependencies for the :ref:`core of
68 Orthanc <compiling>` have already been installed)::
69
70 $ sudo apt-get install libopenjpeg-dev
71
72 # Firstly, compile the command-line tools
73 $ mkdir Applications/Build
74 $ cd Applications/Build
75 $ cmake .. -DCMAKE_BUILD_TYPE=Release -DUSE_SYSTEM_ORTHANC_SDK=OFF
76 $ make
77
78 # Secondly, compile the viewer plugin
79 $ mkdir ../../ViewerPlugin/Build
80 $ cd ../../ViewerPlugin/Build
81 $ cmake .. -DCMAKE_BUILD_TYPE=Release -DUSE_SYSTEM_ORTHANC_SDK=OFF -DALLOW_DOWNLOADS=ON
82 $ make
83
52 84
53 85
54 Usage of the plugin 86 Usage of the plugin
55 ------------------- 87 -------------------
56 88