Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

osgEarth 2.8 failed to build #865

Closed
willysr opened this issue Feb 8, 2017 · 5 comments
Closed

osgEarth 2.8 failed to build #865

willysr opened this issue Feb 8, 2017 · 5 comments

Comments

@willysr
Copy link

willysr commented Feb 8, 2017

I tested this on Slackware64-14.2 with following deps installed:

  • OpenSceneGraph-3.4.0
  • gdal-2.1.3
  • geos-3.6.1
  • proj-4.9.3

Error message:

In file included from /tmp/SBo/osgearth-2.8/src/osgEarthSymbology/GEOS.cpp:25:0:
/usr/include/geos/geom/GeometryFactory.h: In constructor ‘osgEarth::Symbology::GEOSContext::GEOSContext()’:
/usr/include/geos/geom/GeometryFactory.h:453:2: error: ‘geos::geom::GeometryFactory::GeometryFactory(const geos::geom::PrecisionModel*)’ is protected
  GeometryFactory(const PrecisionModel *pm);
  ^
/tmp/SBo/osgearth-2.8/src/osgEarthSymbology/GEOS.cpp:219:52: error: within this context
     _factory = new geos::geom::GeometryFactory( pm );
                                                    ^
In file included from /tmp/SBo/osgearth-2.8/src/osgEarthSymbology/GEOS.cpp:25:0:
/usr/include/geos/geom/GeometryFactory.h: In destructor ‘osgEarth::Symbology::GEOSContext::~GEOSContext()’:
/usr/include/geos/geom/GeometryFactory.h:474:10: error: ‘virtual geos::geom::GeometryFactory::~GeometryFactory()’ is protected
  virtual ~GeometryFactory();
          ^
/tmp/SBo/osgearth-2.8/src/osgEarthSymbology/GEOS.cpp:227:12: error: within this context
     delete _factory;
            ^
In file included from /tmp/SBo/osgearth-2.8/src/osgEarthSymbology/GEOS.cpp:25:0:
/usr/include/geos/geom/GeometryFactory.h: In member function ‘void osgEarth::Symbology::GEOSContext::disposeGeometry(geos::geom::Geometry*)’:
/usr/include/geos/geom/GeometryFactory.h:474:10: error: ‘virtual geos::geom::GeometryFactory::~GeometryFactory()’ is protected
  virtual ~GeometryFactory();
          ^
/tmp/SBo/osgearth-2.8/src/osgEarthSymbology/GEOS.cpp:337:20: error: within this context
             delete f;
                    ^
src/osgEarthSymbology/CMakeFiles/osgEarthSymbology.dir/build.make:350: recipe for target 'src/osgEarthSymbology/CMakeFiles/osgEarthSymbology.dir/GEOS.cpp.o' failed
make[2]: *** [src/osgEarthSymbology/CMakeFiles/osgEarthSymbology.dir/GEOS.cpp.o] Error 1
CMakeFiles/Makefile2:333: recipe for target 'src/osgEarthSymbology/CMakeFiles/osgEarthSymbology.dir/all' failed
make[1]: *** [src/osgEarthSymbology/CMakeFiles/osgEarthSymbology.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
@ferdna
Copy link

ferdna commented Feb 8, 2017

i was able to compile osgEarth 2.8 with GEOS 3.5.0

@gwaldron
Copy link
Owner

gwaldron commented Feb 8, 2017

Thanks. I will open a new ticket for GEOS 3.6 support.

@gwaldron gwaldron closed this as completed Feb 8, 2017
@filnet
Copy link
Contributor

filnet commented Feb 8, 2017

I submitted a PR to compile with geos 3.6.1

@willysr
Copy link
Author

willysr commented Feb 9, 2017

@filnet in which project? i don't see any PR in osgEarth's PR list

@filnet
Copy link
Contributor

filnet commented Feb 9, 2017

Are you looking in your own clone ?

The PR is here here #848

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants