Release build fails

classic Classic list List threaded Threaded
5 messages Options
bclay bclay
Reply | Threaded
Open this post in threaded view
|

Release build fails

I am using the latest code from GIT.  The debug version built without error but the release version fails with

3>GEOS.obj : error LNK2019: unresolved external symbol "public: static class geos::geom::GeometryFactory::unique_ptr __cdecl geos::geom::GeometryFactory::create(class geos::geom::PrecisionModel const *)" (?create@GeometryFactory@geom@geos@@SA?AVunique_ptr@123@PEBVPrecisionModel@23@@Z) referenced in function "public: __cdecl osgEarth::Symbology::GEOSContext::GEOSContext(void)" (??0GEOSContext@Symbology@osgEarth@@QEAA@XZ)
3>GEOS.obj : error LNK2019: unresolved external symbol "public: void __cdecl geos::geom::GeometryFactory::destroy(void)" (?destroy@GeometryFactory@geom@geos@@QEAAXXZ) referenced in function "public: __cdecl osgEarth::Symbology::GEOSContext::GEOSContext(void)" (??0GEOSContext@Symbology@osgEarth@@QEAA@XZ)

while building osgEarthSymbology.vcxproj.

I am using Visual Studio 2017 on windows 10.


gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: Release build fails

Which version of GEOS are you using?
Glenn Waldron / Pelican Mapping
plevy plevy
Reply | Threaded
Open this post in threaded view
|

Re: Release build fails

I use the vcpkg version which is Version: 3.6.3-3 and builds fine.  I haven't tried any later versions.

--
Paul Levy : Pelican Mapping


On Thu, Jan 2, 2020 at 10:58 AM gwaldron [via osgEarth] <[hidden email]> wrote:
Which version of GEOS are you using?
Glenn Waldron / Pelican Mapping



If you reply to this email, your message will be added to the discussion below:
http://forum.osgearth.org/Release-build-fails-tp7593022p7593024.html
To start a new topic under osgEarth, email [hidden email]
To unsubscribe from osgEarth, click here.
NAML
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: Release build fails

At some point we might need to integrate the C API version...

https://github.com/libgeos/geos/blob/master/include/geos/geom/Geometry.h#L24
Glenn Waldron / Pelican Mapping
bclay bclay
Reply | Threaded
Open this post in threaded view
|

Re: Release build fails

In reply to this post by gwaldron
Glenn:
It appears that my debug build was using geos 3.6.3 but the release build pulled from a different lib.  Sorry for the interruption.

Bruce