[geos-devel] Geos not compiling Ubuntu 12.0.4

Mateusz Łoskot mateusz at loskot.net
Sat Oct 11 12:04:48 PDT 2014


On 11 October 2014 18:06, Sandro Santilli <strk at keybit.net> wrote:
> On Sat, Oct 11, 2014 at 05:44:28PM +0200, Mateusz Łoskot wrote:
>> On 11 October 2014 16:05, Sandro Santilli <strk at keybit.net> wrote:
>> > On Fri, Oct 10, 2014 at 09:35:23PM +0200, Mateusz Łoskot wrote:
>> >> On 10 October 2014 18:38, Sandro Santilli <strk at keybit.net> wrote:
>> >> > On Fri, Oct 10, 2014 at 06:01:30PM +0200, Rémi Cura wrote:
>> >> >>
>> >> >> I tried to compile geos with cmake :
>> >> >>
>> >> >> libgeos/capi/geos_c.cpp: In function ‘geos::geom::Geometry*
>> >> >> GEOSClipByRect(const geos::geom::Geometry*, double, double, double,
>> >> >> double)’:
>> >> >> libgeos/capi/geos_c.cpp:491:64: error: ‘GEOSClipByRect_r’ was not declared
>> >
>> > Uhm, then maybe geos_c.h was not regenerated ?
>>
>> There is a command in the root CMakeLists.txt for it, so it should be generated
>> https://github.com/libgeos/libgeos/blob/svn-trunk/CMakeLists.txt#L305
>
> Well, I tried building it myself but for me it fails as it tries to
> build .cpp files that happen to be in the source dir but are not meant
> to be built ...

If there are .cpp files which are not meant to be compiled, then
the CMake will grab them too, due to the globbing.
That may be a problem, indeed.

> Does it build for you ?

I haven't tried, no Linux handy ATM.

Best regards,
-- 
Mateusz  Łoskot, http://mateusz.loskot.net


More information about the geos-devel mailing list