Mercurial > hg > orthanc-book
comparison Sphinx/source/plugins/postgresql.rst @ 128:f2abbac22d5c
postgresql
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 03 Jan 2018 15:32:44 +0100 |
parents | a30abf63ccba |
children | 61050d813d74 |
comparison
equal
deleted
inserted
replaced
127:57de03213fba | 128:f2abbac22d5c |
---|---|
15 | 15 |
16 | 16 |
17 | 17 |
18 Compilation | 18 Compilation |
19 ----------- | 19 ----------- |
20 | |
21 Static linking | |
22 ^^^^^^^^^^^^^^ | |
20 | 23 |
21 .. highlight:: text | 24 .. highlight:: text |
22 | 25 |
23 The procedure to compile these plugins is similar of that for the | 26 The procedure to compile these plugins is similar of that for the |
24 :ref:`core of Orthanc <compiling>`. The following commands should work | 27 :ref:`core of Orthanc <compiling>`. The following commands should work |
32 The compilation will produce 2 shared libraries, each containing one plugin for Orthanc: | 35 The compilation will produce 2 shared libraries, each containing one plugin for Orthanc: |
33 | 36 |
34 * ``OrthancPostgreSQLIndex`` replaces the default SQLite index of Orthanc by PostgreSQL. | 37 * ``OrthancPostgreSQLIndex`` replaces the default SQLite index of Orthanc by PostgreSQL. |
35 * ``OrthancPostgreSQLStorage`` makes Orthanc store the DICOM files it receives into PostgreSQL. | 38 * ``OrthancPostgreSQLStorage`` makes Orthanc store the DICOM files it receives into PostgreSQL. |
36 | 39 |
40 | |
41 Microsoft Windows and Apple OS X | |
42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
43 | |
37 Pre-compiled binaries for Microsoft Windows `are also available | 44 Pre-compiled binaries for Microsoft Windows `are also available |
38 <http://www.orthanc-server.com/browse.php?path=/plugin-postgresql>`__. | 45 <http://www.orthanc-server.com/browse.php?path=/plugin-postgresql>`__. |
39 A package for `Apple's Mac OS X | 46 A package for `Apple's Mac OS X |
40 <http://www.osimis.io/en/download.html>`__ | 47 <http://www.osimis.io/en/download.html>`__ |
41 are available courtesy of `Osimis <http://osimis.io/>`__. | 48 is available courtesy of `Osimis <http://osimis.io/>`__. |
42 | 49 |
43 | 50 |
51 Dynamic linking on Ubuntu 16.04 | |
52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
53 | |
54 .. highlight:: text | |
55 | |
56 If static linking is not desired, here are build instructions for | |
57 Ubuntu 16.04 (provided build dependencies for the :ref:`core of | |
58 Orthanc <compiling>` have already been installed):: | |
59 | |
60 $ sudo apt-get install libpq-dev postgresql-server-dev-all | |
61 $ cmake .. -DCMAKE_BUILD_TYPE=Debug \ | |
62 -DALLOW_DOWNLOADS=ON \ | |
63 -DUSE_SYSTEM_GOOGLE_TEST=OFF \ | |
64 -DUSE_SYSTEM_ORTHANC_SDK=OFF | |
65 $ make | |
66 | |
67 | |
44 Usage | 68 Usage |
45 ----- | 69 ----- |
46 | 70 |
47 .. highlight:: json | 71 .. highlight:: json |
48 | 72 |