gwaldron / osgearth

3D Maps for OpenSceneGraph / C++14
https://www.pelicanmapping.com/home-1/opensource
Other
1.47k stars 772 forks source link

no matching function for call to ‘CesiumIonClient::Connection::Connection(CesiumAsync::AsyncSystem&, std::shared_ptr<osgEarth::Cesium::AssetAccessor>&, std::string)' #2573

Closed virtuozo007 closed 1 week ago

virtuozo007 commented 2 months ago

osgEarth Version (required): the latest master version.

compiling with the latest Cesium-native lib.

From version 0.35.0, a parameter called "CesiumIonClient::ApplicationData&" was added in the constructor function of "Connection" in the "CesiumIonClient" module.

So, the "CesiumIon::refresh()" funtion in CesiumIon.cpp may need a modify as bellow, i guess: Connection connection(Context::instance().asyncSystem, Context::instance().assetAccessor, getCesiumIonKey(), CesiumIonClient::ApplicationData());

gwaldron commented 1 month ago

osgEarth 3.5/3.6 builds against Cesium Native 0.31.0.