<div dir="ltr">Hey list (and salut SFCGAL guys).<br><br>I would like to use SFCGAL but can't make it work.<br><br>On a Ubuntu 12.04 LTS, Postgres 9.3, postgis 2.1, CGAL 4.2 , SFCGAL 1.0.2.<div><div><br></div><div><ol><li>
I compil &install CGAL : fine<br></li><li>I configure and compil SFCGAL : fine<br></li><li>I install SFCGAL : fine (see log)<br></li></ol></div><div><br></div><div><ol><li>I clean postgis : fine<br></li><li>I configure postgis : strange (see log) **SFCGAL version is marked as 1.0.0 where it should be 1.0.2<br>
</li><li>I compil postgis : fine (see log)<br></li><li>I install Postgis : fine (see log)<br></li></ol></div><div><div><br></div><div>Then I create a new database : </div><div><ul><li>CREATE DATABASE test_sfcgal;<br></li>
</ul></div><div>And try to add postgis</div><div><ul><li>CREATE EXTENSION postgis VERSION '2.1.0';<br></li></ul></div><div><br></div><div>Then I get the error message : </div><div><ul><li>"ERROR:  could not load library "/usr/lib/postgresql/9.3/lib/<a href="http://postgis-2.1.so">postgis-2.1.so</a>": libSFCGAL.so: cannot open shared object file: No such file or directory"<br>
</li></ul></div><div><br></div><div>Yet libsfcgal.so is in "/usr/local/lib".</div><div><br></div><div>Is it related to the fact that I have two postgres server (9.2 and 9.3, on port 5432 and 5433), even if only the 9.3 is running when installing etc?</div>
<div><br></div><div>I tried to configure postgis with a given sfcgal path : 'usr/local'</div><div>SFCGAL version is not detected in Postgis configure step.</div><div>Then I get error while building postgis (raster section)</div>
</div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div><div><div><font size="1">/bin/bash ../../libtool --mode=link gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes -I../rt_core -I../../liblwgeom  -I/usr/include/gdal -I/usr/local/include   ../rt_core/librtcore.a raster2pgsql.o ../../liblwgeom/<a href="http://liblwgeom.la">liblwgeom.la</a> -L/usr/lib -lgdal  -L/usr/local/lib -lgeos_c  -lc -lm -o raster2pgsql</font></div>
</div></div></div><div><div><div><font size="1">libtool: link: gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -I../rt_core -I../../liblwgeom -I/usr/include/gdal -I/usr/local/include raster2pgsql.o -o .libs/raster2pgsql  ../rt_core/librtcore.a ../../liblwgeom/.libs/liblwgeom.so -L/usr/lib -lgdal -L/usr/local/lib /usr/local/lib/libgeos_c.so -lc -lm</font></div>
</div></div><div><div><div><font size="1">../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_linestring_add_point' ....</font></div></div></div><div><br></div></blockquote><div><div>I also tried to install SFCGAL in a custom directory ,</div>
<div>then use the --with-sfcgal=the_directory</div><div>I got the same error while building than when indicating 'usr/local' </div><div><br></div><div>Postgis_full_version() before installing sfcgal :</div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">
<div><div><div><font size="1">POSTGIS="2.1.0 r11822" GEOS="3.4.2-CAPI-1.8.2 r3921" PROJ="Rel. 4.8.0, 6 March 2012" GDAL="GDAL 1.10.0, released 2013/04/24" LIBXML="2.8.0" TOPOLOGY RASTER</font></div>
</div></div></blockquote><div><div><br></div><div><br></div><div>Any help appreciated, as I tried everything I could think of !</div><div><br></div><div>Cheers</div><div><br></div><div>Rémi-C</div><div><br></div></div></div>