教程参考:osgEarth源码编译(Win10+VS2019+OSG3.6.5+osgEarth2.10.0)
坑1:debug模式下生成osgEarthAnnotation时
错误:xmemory0(881): error C2440: “初始化”: 无法从“std::pair<const _Kty,_Ty>”转换为 to _Objty
![]()
出错位置:src/osgEarthFeatures/FeatureSourceIndexNode.cpp
解决办法: 参考https://github.com/gwaldron/osgearth/pull/1188/files


本文介绍了在编译osgEarth过程中遇到的两个问题:debug模式下生成osgEarthAnnotation的类型转换错误和LINK:fatalerrorLNK1181的输入文件问题。作者提供了详细的解决步骤,包括修改FindZLIB.cmake和删除特定debug.lib。
最低0.47元/天 解锁文章

被折叠的 条评论
为什么被折叠?



