当前位置: 首页 > news >正文

VS2017编译osg3.6.0和osgearth2.10

osg3.6.0正常编译即可,osgearth2.10编译过程中会出现如下错误

1.osgEarth出错

1>HTTPClient.obj : error LNK2019: 无法解析的外部符号 curl_global_init,该符号在函数 "public: static void __cdecl osgEarth::HTTPClient::globalInit(void)" (?globalInit@HTTPClient@osgEarth@@SAXXZ) 中被引用
1>HTTPClient.obj : error LNK2019: 无法解析的外部符号 curl_slist_append,该符号在函数 "private: class osgEarth::HTTPResponse __cdecl osgEarth::HTTPClient::doGet(class osgEarth::HTTPRequest const &,class osgDB::Options const *,class osgEarth::ProgressCallback *)const " (?doGet@HTTPClient@osgEarth@@AEBA?AVHTTPResponse@2@AEBVHTTPRequest@2@PEBVOptions@osgDB@@PEAVProgressCallback@2@@Z) 中被引用
1>HTTPClient.obj : error LNK2019: 无法解析的外部符号 curl_slist_free_all,该符号在函数 "private: class osgEarth::HTTPResponse __cdecl osgEarth::HTTPClient::doGet(class osgEarth::HTTPRequest const &,class osgDB::Options const *,class osgEarth::ProgressCallback *)const " (?doGet@HTTPClient@osgEarth@@AEBA?AVHTTPResponse@2@AEBVHTTPRequest@2@PEBVOptions@osgDB@@PEAVProgressCallback@2@@Z) 中被引用
1>HTTPClient.obj : error LNK2019: 无法解析的外部符号 curl_easy_strerror,该符号在函数 "private: class osgEarth::HTTPResponse __cdecl osgEarth::HTTPClient::doGet(class osgEarth::HTTPRequest const &,class osgDB::Options const *,class osgEarth::ProgressCallback *)const " (?doGet@HTTPClient@osgEarth@@AEBA?AVHTTPResponse@2@AEBVHTTPRequest@2@PEBVOptions@osgDB@@PEAVProgressCallback@2@@Z) 中被引用
1>HTTPClient.obj : error LNK2019: 无法解析的外部符号 curl_easy_init,该符号在函数 "private: void __cdecl osgEarth::HTTPClient::initializeImpl(void)" (?initializeImpl@HTTPClient@osgEarth@@AEAAXXZ) 中被引用
1>HTTPClient.obj : error LNK2019: 无法解析的外部符号 curl_easy_setopt,该符号在函数 "private: class osgEarth::HTTPResponse __cdecl osgEarth::HTTPClient::doGet(class osgEarth::HTTPRequest const &,class osgDB::Options const *,class osgEarth::ProgressCallback *)const " (?doGet@HTTPClient@osgEarth@@AEBA?AVHTTPResponse@2@AEBVHTTPRequest@2@PEBVOptions@osgDB@@PEAVProgressCallback@2@@Z) 中被引用
1>HTTPClient.obj : error LNK2019: 无法解析的外部符号 curl_easy_perform,该符号在函数 "private: class osgEarth::HTTPResponse __cdecl osgEarth::HTTPClient::doGet(class osgEarth::HTTPRequest const &,class osgDB::Options const *,class osgEarth::ProgressCallback *)const " (?doGet@HTTPClient@osgEarth@@AEBA?AVHTTPResponse@2@AEBVHTTPRequest@2@PEBVOptions@osgDB@@PEAVProgressCallback@2@@Z) 中被引用
1>HTTPClient.obj : error LNK2019: 无法解析的外部符号 curl_easy_cleanup,该符号在函数 "public: virtual __cdecl osgEarth::HTTPClient::~HTTPClient(void)" (??1HTTPClient@osgEarth@@UEAA@XZ) 中被引用
1>HTTPClient.obj : error LNK2019: 无法解析的外部符号 curl_easy_getinfo,该符号在函数 "private: class osgEarth::HTTPResponse __cdecl osgEarth::HTTPClient::doGet(class osgEarth::HTTPRequest const &,class osgDB::Options const *,class osgEarth::ProgressCallback *)const " (?doGet@HTTPClient@osgEarth@@AEBA?AVHTTPResponse@2@AEBVHTTPRequest@2@PEBVOptions@osgDB@@PEAVProgressCallback@2@@Z) 中被引用
1>D:\6_OSG_Enviroument\vs2017x64osg360oe2.10.0\osgearth-osgearth-2.10\build\lib\Debug\osgEarthd.dll : fatal error LNK1120: 9 个无法解析的外部命令

在附加依赖项里面,加入curl的静态库路径即可

2.osgEarthSymbology出错

错误原因是protobuf使用静态库就没问题,使用动态库的时候,需要在预处理器里面,添加PROTOBUF_USE_DLLS

3.osgEarthSymbology错误

与osgEarthSymbology错误原因一样,在预处理器里,添加PROTOBUF_USE_DLLS即可。

4.osgEarthTriton错误

将其注释掉

在附加依赖项里添加legacy_stdio_definitions.lib


http://www.mrgr.cn/news/6538.html

相关文章:

  • Java SpringBoot+Vue实战教程:如何一步步实现Cosplay论坛设计与实现
  • 自动生成依赖清单:pipreqs,Python项目的救星
  • Onnx使用预训练的 ResNet18 模型对输入图像进行分类,并将分类结果显示在图像上
  • 代码随想录训练营 Day37打卡 动态规划 part05 完全背包理论基础 518. 零钱兑换II 377. 组合总和 Ⅳ 卡码70. 爬楼梯(进阶版)
  • Notification 分不同实例关闭
  • 什么是关键词难度?
  • RISC-V全志D1多媒体套件文章汇总
  • OCR识别行驶证(阿里云和百度云)
  • Axios 中的相关参数
  • 图论 最短路
  • webrtc ns 降噪之粉红噪声参数推导
  • 我们再次陷入软件危机
  • 提高实时多媒体传输效率的三大方法
  • io进程----标准io
  • 开源AI智能名片商城小程序在私域流量运营中的转化效率与ROI提升研究
  • DM8守护集群部署、数据同步验证、主备切换
  • PyQtGraph库的基本使用
  • 进程函数练习
  • Apache Doris安装部署
  • vue-cli搭建过程,elementUI搭建使用过程