[geos-devel] [#317] Build configuration for CMake build system
Mateusz Loskot
mateusz at loskot.net
Fri Jan 29 23:05:50 EST 2010
Sandro Santilli wrote:
> On Wed, Jan 27, 2010 at 10:13:45PM +0000, Mateusz Loskot wrote:
>
>> I explicitly add -D_ISOC99_SOURCE=1 for checks of isfinite and it passes
>> for me.
>>
>> Could you give it another shot and test?
>
>
> -- Performing Test HAVE_STD_ISNAN
> -- Performing Test HAVE_STD_ISNAN - Success
> -- Performing Test HAVE_STD_ISFINITE
> -- Performing Test HAVE_STD_ISFINITE - Failed
> -- Looking for isfinite
> -- Looking for isfinite - found
>
> Sounds good.
>
> Next:
>
> Linking CXX executable geos_unit
> CMakeFiles/geos_unit.dir/geostest2.cpp.o: In function `main':
> /usr/src/geos/trunk/tests/unit/geostest2.cpp:56: multiple definition of `main'
> CMakeFiles/geos_unit.dir/geos_unit.cpp.o:/usr/src/geos/trunk/tests/unit/geos_unit.cpp:56: first defined here
Sandro,
The geostest no longer exists in tests/unit
I presume you are have old source tree nodes still in your copy.
> CMakeFiles/geos_unit.dir/bug176.cpp.o: In function `do_sir()':
> /usr/src/geos/trunk/include/geos/io/WKTReader.inl:56: multiple definition of `do_sir()'
> CMakeFiles/geos_unit.dir/geostest2.cpp.o:/usr/src/geos/trunk/include/geos/io/WKTReader.inl:56: first defined here
> CMakeFiles/geos_unit.dir/bug176.cpp.o: In function `do_buffer()':
> /usr/src/geos/trunk/tests/unit/bug176.cpp:22: multiple definition of `do_buffer()'
> CMakeFiles/geos_unit.dir/geostest2.cpp.o:/usr/src/geos/trunk/tests/unit/geostest2.cpp:20: first defined here
> CMakeFiles/geos_unit.dir/bug176.cpp.o: In function `main':
> /usr/src/geos/trunk/tests/unit/bug176.cpp:58: multiple definition of `main'
> CMakeFiles/geos_unit.dir/geos_unit.cpp.o:/usr/src/geos/trunk/tests/unit/geos_unit.cpp:56: first defined here
I suppose there is still something misconfigured ofr GEOS_INLINE.
For instance ,enabled inlining causes problems on Windows for me.
You may try -DGEOS_ENABLE_INLINE=ON|OFF to control this macro.
I'll take a closer look.
Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org
More information about the geos-devel
mailing list