[postgis-devel] Problems trying to build with PostGIS

Regina Obe lr at pcorp.us
Tue Apr 17 21:50:07 PDT 2018


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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20180418/8cc95aec/attachment.html>


More information about the postgis-devel mailing list