gwaldron / osgearth

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

osgEarthCesium: build error with MacOS #2557

Closed remoe closed 2 months ago

remoe commented 2 months ago

Current master doesn't build with cesium-native and Clang:

include/c++/v1/__locale:930:44: error: implicit instantiation of undefined template 'std::ctype<unsigned char>'
    return use_facet<ctype<_CharT> >(__loc).toupper(__c);
                                           ^
osgearth.git/src/osgEarthCesium/CesiumCreditsNode.cpp:50:33: note: in instantiation of function template specialization 'std::toupper<unsigned char>' requested here
                    return std::toupper(c1, locale) == std::toupper(c2, locale);

I've fixed it here: https://github.com/gwaldron/osgearth/pull/2551

gwaldron commented 2 months ago

Fixed in 285eba106