meta data for this page

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
software:postgresql:pgsql-u7 [2021/07/25 18:07] christiansoftware:postgresql:pgsql-u7 [2021/07/25 21:28] (current) christian
Line 9: Line 9:
 ===== CMAKE ===== ===== CMAKE =====
  
-Some of the dependencies of PostGIS require ''cmake'' (as do the [[https://generic-mapping-tools.org|Generic mapping tools]] which will also be used):+Some of the dependencies of PostGIS require ''cmake'' such as SFCGAL (as do the [[https://generic-mapping-tools.org|Generic mapping tools]] which will also be used):
  
 <code bash> <code bash>
 wget https://github.com/Kitware/CMake/releases/download/v3.21.0/cmake-3.21.0-linux-x86_64.sh wget https://github.com/Kitware/CMake/releases/download/v3.21.0/cmake-3.21.0-linux-x86_64.sh
-sh cmake-3.21.0-linux-x86_64.sh && mv cmake-3.21.0-linux-x86_64 ~/bin/+sh cmake-3.21.0-linux-x86_64.sh && mv cmake-3.21.0-linux-x86_64 ~/bin/cmake 
 </code> </code>
  
Line 19: Line 20:
  
 SFCGAL has a few dependencies: SFCGAL has a few dependencies:
 +
 +The [[https://www.mpfr.org/|MPFR library]], [[https://www.mpfr.org/mpfr-current/mpfr.html#Installing-MPFR|install instructions]]
 +<code bash>
 + ./configure --prefix=/home/glorida/opt/mpfr
 +</code>
 +
 +
 +[[https://doc.cgal.org/5.2.3/Manual/installation.html|CGAL installation]]
 +
 +<code bash>
 +mkdir build && cd build
 + ~/bin/cmake-3.21.0-linux-x86_64/bin/cmake -DCMAKE_INSTALL_PREFIX=/home/glorida/opt/CGAL -DMPFR_INCLUDE_DIR=/home/glorida/opt/mpfr/include/  -DMPFR_LIBRARIES=/home/glorida/opt/mpfr/lib/ -DCGAL_HEADER_ONLY=OFF -DCMAKE_BUILD_TYPE=Release .. 
 +make
 +make install
 +</code>
 +
 +
 +[[https://gitlab.com/Oslandia/SFCGAL|SFCGAL]]
 +