[postgis-devel] Problems trying to build with PostGIS
Roberto Ribeiro
robertofig85 at gmail.com
Mon Apr 30 08:18:47 PDT 2018
Hello Regina,
thank you for the clarification, and sorry for the lateness in my reply! I
will look further into LibRTTopo!
2018-04-18 1:50 GMT-03:00 Regina Obe <lr at pcorp.us>:
> Postgis_svn_revision.h is autogenerated by the svn_repo_revision.pl
> script.
>
>
>
> It should happen if you do
>
>
>
> sh autogen.sh
>
>
>
>
>
> I've had some issues in some cases where it didn't autogenerate, so had to
> explicitly do it with something like below
>
>
>
> # generating postgis_svn_revision.h in case hasn't been generated
>
>
>
> if test -f utils/svn_repo_revision.pl; then
>
>
>
> echo "Generating postgis_svn_revision.h"
>
>
>
> perl utils/svn_repo_revision.pl
>
> fi
>
>
>
>
>
> That said, what you are doing is not supported. liblwgeom_internal, as
> I'd like to think about it is postgis underwear and is prone to change
> without notice so your code will be fragile if you try to build against it
> and your code is not part of postgis.
>
>
>
> If you want to reuse liblwgeom, you'd probably be better off using the
> forked project:
>
>
>
> https://git.osgeo.org/gitea/rttopo/librttopo
>
>
>
>
>
> Sandro can speak more about this since he was the one who had the crazy
> idea of sharing our dirty laundry with the world, that Paul and I were
> vehemently against it because of dependency hell.
>
>
>
> Thanks,
>
> Regina
>
>
>
> *From:* postgis-devel [mailto:postgis-devel-bounces at lists.osgeo.org] *On
> Behalf Of *Roberto Ribeiro
> *Sent:* Tuesday, April 17, 2018 6:57 PM
> *To:* postgis-devel at lists.osgeo.org
> *Subject:* [postgis-devel] Problems trying to build with PostGIS
>
>
>
> Hello list,
>
> I'm writing a Postgres extension that uses part of the PostGIS code.
> Specifically I'm including liblwgeom_internal.h, which in turn calls
> postgis_config.h, which then tries to include postgis_svn_revision.h. This,
> however, I can't find anywhere in the source. Could anyone inform me if
> this is a missing file, or if I'm doing it wrong?
>
> My source was directly cloned from the git a couple of days ago.
>
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/postgis-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20180430/3af43a7c/attachment.html>
More information about the postgis-devel
mailing list