Package Details: postgis-sfcgal 2.3.1-1

Git Clone URL: https://aur.archlinux.org/postgis-sfcgal.git (read-only, click to copy)
Package Base: postgis-sfcgal
Description: Adds support for geographic objects to PostgreSQL and includes SFCGAL support for experimental 3D functions
Upstream URL: http://postgis.net/
Keywords: GIS
Licenses: GPL
Conflicts: postgis
Provides: postgis
Submitter: okanisis
Maintainer: okanisis
Last Packager: okanisis
Votes: 5
Popularity: 0.000001
First Submitted: 2014-05-30 21:26 (UTC)
Last Updated: 2016-12-05 21:19 (UTC)

Latest Comments

arw commented on 2022-08-01 09:20 (UTC) (edited on 2022-08-02 09:55 (UTC) by arw)

Hi, I was not able to build this package with postgis 2.3.1 version.

Using postgis 3.2.2 (last version), I was able to build the package if I added llvm and llvm13-libs as dependencies (without this, I had failure because of llvm-lto, libLLVM-13.so, libLLVM-14.so) with this PKGBUILD:

pkgname=postgis-sfcgal
_pkgname=${pkgname%-sfcgal}
pkgver=3.2.2
pkgrel=1
pkgdesc="Adds support for geographic objects to PostgreSQL and includes SFCGAL support for experimental 3D functions"
arch=('i686' 'x86_64')
url="http://postgis.net/"
license=('GPL')
depends=('postgresql' 'gdal' 'geos' 'json-c' 'sfcgal' 'libxml2' 'libxslt' 'llvm13-libs')
makedepends=('llvm')
provides=("$_pkgname=$pkgver")
conflicts=($_pkgname)
source=("https://download.osgeo.org/postgis/source/${_pkgname}-${pkgver}.tar.gz")
md5sums=('3fa8bfdc791f53147aab7e1fa8d2ae49')

build() {
  cd ${_pkgname}-${pkgver}

  ./autogen.sh
  ./configure --prefix=/usr --with-raster --with-gdalconfig=/usr/bin/gdal-config --with-gui
  make
}

package() {
  cd ${_pkgname}-${pkgver}

  make DESTDIR="${pkgdir}" install
}

kikislater commented on 2016-12-07 16:34 (UTC)

You're right, I saw cgal update but forget sfcgal ! Many thanks Donovan

okanisis commented on 2016-12-07 16:08 (UTC)

Looks like sfcgal lib is having trouble, try recompiling sfcgal (probably because cgal has been updated since) then it should build.

kikislater commented on 2016-12-07 12:13 (UTC)

Unable to build /usr/lib/libSFCGAL.so: undefined reference to `boost::archive::basic_binary_iprimitive<boost::archive::binary_iarchive, char, std::char_traits<char> >::init()' /usr/lib/libSFCGAL.so: undefined reference to `boost::archive::basic_binary_iprimitive<boost::archive::binary_iarchive, char, std::char_traits<char> >::~basic_binary_iprimitive()' /usr/lib/libSFCGAL.so: undefined reference to `boost::archive::text_iarchive_impl<boost::archive::text_iarchive>::load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:85: raster2pgsql] Error 1 make[2]: Leaving directory '/tmp/yaourt-tmp-kiki/aur-postgis-sfcgal/src/postgis-2.3.1/raster/loader' make[1]: *** [Makefile:31: rtloader] Error 2 make[1]: Leaving directory '/tmp/yaourt-tmp-kiki/aur-postgis-sfcgal/src/postgis-2.3.1/raster' make: *** [GNUmakefile:16: all] Error 1 ==> ERROR: A failure occurred in build(). Aborting...

kikislater commented on 2016-06-27 13:48 (UTC) (edited on 2016-06-27 14:30 (UTC) by kikislater)

Edit : Succesfull build by adding : --with-sfcgal=/usr/bin/sfcgal-config Building with multithreading cores give errors