win10 + cmake3.17 + vs2017编译osgearth2.7.0遇到的坑

坑1:debug模式下生成osgEarthAnnotation时

错误:xmemory0(881): error C2440: “初始化”: 无法从“std::pair”转换为 to _Objty

出错位置:src/osgEarthFeatures/FeatureSourceIndexNode.cpp

解决办法: 参考https://github.com/gwaldron/osgearth/pull/1188/files

win10 + cmake3.17 + vs2017编译osgearth2.7.0遇到的坑_第1张图片

win10 + cmake3.17 + vs2017编译osgearth2.7.0遇到的坑_第2张图片

参考:

【1】osgEarth源码编译(Win10+VS2019+OSG3.6.5+osgEarth2.10.0) 

你可能感兴趣的:(编译)