changeset 263:39609c9a2c41

note about includes for postgresql
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 12 Aug 2019 10:19:04 +0200
parents 3391edf37359
children e6a478800d42
files Sphinx/source/plugins/postgresql.rst
diffstat 1 files changed, 24 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Sphinx/source/plugins/postgresql.rst	Tue Aug 06 09:51:59 2019 +0200
+++ b/Sphinx/source/plugins/postgresql.rst	Mon Aug 12 10:19:04 2019 +0200
@@ -48,6 +48,8 @@
 is available courtesy of `Osimis <http://osimis.io/>`__.
 
 
+.. _postgresql-ubuntu1604:
+
 Dynamic linking on Ubuntu 16.04
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
@@ -66,6 +68,28 @@
                         -DUSE_SYSTEM_ORTHANC_SDK=OFF
   $ make
 
+
+.. _postgresql-cmake:
+  
+Dynamic linking on other GNU/Linux distributions
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+.. highlight:: text
+
+The build instructions should always be very similar to those for
+:ref:`Ubuntu 16.04 <postgresql-ubuntu1604>`. One difficulty that could
+however arise is that it is possible that the CMake environment that
+is shipped with the GNU/Linux distribution cannot locate a recent
+version of the development headers for PostgreSQL. This leads to an
+error while invoking CMake that looks like::
+
+  -- Could NOT find PostgreSQL (missing: PostgreSQL_TYPE_INCLUDE_DIR)
+
+In such a situation, please add your version of PostgreSQL to the
+macro ``PostgreSQL_ADDITIONAL_VERSIONS`` that is defined at the end of
+the `Resources/CMake/PostgreSQLConfiguration.cmake file
+<https://bitbucket.org/sjodogne/orthanc-databases/src/default/Resources/CMake/PostgreSQLConfiguration.cmake>`__ in the sources of the project.
+  
   
 Usage
 -----