[geos-devel] Problems compiling nightly snapshot

Paul Meems bontepaarden at gmail.com
Wed Mar 3 07:58:54 EST 2010


Mateusz,

Our problem is that when we want to use the GEOS library in our own code we
need to include geos_c.h
That is logic. We do that as well with other libraries we use, like gdal,
proj, etc.
For that reason in the build script we copy the needed header files to a
include folder higher in the tree after compiling. So our application knows
it should look in that folder and everything works.

This approach works well. When we update the source code of such a library
and we compile it again the header files are neatly copied.
But this doesn't work with geos_c.h because it refers to two files in sub
folders. We can do two things: either create the sub folder and copy the two
files in to it or copy geos_c.h and open it and change geos/version.h to
geos_version.h and geos/export,h to geos_export,h..
Currently we do the latter workaround.

As I understand now the situation for GEOS cannot be changed. So we need to
re-thing our workaround.

Thanks for the explanation.


--
Paul Meems
Release manager, configuration manager
and forum moderator of MapWindow GIS.
www.mapwindow.org

Owner of MapWindow.nl - Support for
Dutch speaking users.
www.mapwindow.nl



2010/3/3 Mateusz Loskot <mateusz at loskot.net>

> Paul Meems wrote:
>
>> Thanks,
>>
>> I just did and got the missing file.
>>
>> But this issue should be fixed:
>> http://trac.osgeo.org/geos/ticket/330#comment:4
>> but it's not. geos_c.h still refers to geos/version.h and geos/export.h
>>
>> Am I still not using the latest version or do I mis-interpret the fixed
>> issue?
>>
>
> I had no idea the fix is supposed to remove geos/export.h from geos_c.h
> It seems to me the export.h was added intentionally:
>
> http://trac.osgeo.org/geos/changeset/2556#file4
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
>
> _______________________________________________
> geos-devel mailing list
> geos-devel at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geos-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geos-devel/attachments/20100303/a0edf9ea/attachment.html


More information about the geos-devel mailing list