osgearth icon indicating copy to clipboard operation
osgearth copied to clipboard

3.2 fails to compile if protobuf not found

Open Displacer opened this issue 3 years ago • 4 comments

with error:

osgearth-3.2/src/osgEarth/ArcGISTilePackage.cpp:195:19: error: ‘osgEarth::MVT’ has not been declared

MVT defined in header under condition OSGEARTH_HAVE_MVT which not enabled if Protobuf not found in CMakeList.txt

Displacer avatar Jul 05 '21 14:07 Displacer

Is there a recommended workaround to this. I'm dealing with some static memory problems caused by the protobuf dependency. I'd like to not compile osgEarth with protobuf.

ASxa86 avatar Jul 22 '22 02:07 ASxa86

Sorry, let me take a look at it

plevy avatar Jul 22 '22 05:07 plevy

Sorry, let me take a look at it

I realized after my comment that the code on master just gets wrapped in an #ifdef. That's good enough for my use case I believe. I should be able to do the same thing on my machine.

ASxa86 avatar Jul 22 '22 05:07 ASxa86

Even better

plevy avatar Jul 22 '22 05:07 plevy