查看: 3700|回复: 1

请教一下osgearth例子的编译问题!

[复制链接]

该用户从未签到

发表于 2011-8-23 09:35:34 | 显示全部楼层 |阅读模式
我的osg版本3.0,osgearth 版本osgearth_2.1RC2_T,编译器:VS2008,Release模式,编译的时候成功52个,失败一个,总共53项,只有Sample osgearth_imageoverlay,一个项目有问题,失败的那个是:Sample osgearth_imageoverlay,编译时提示如下错误:编译如下,osgearth编译好的四个库osgEarth.lib,osgEarthFeatures.lib,osgEarthUtil.lib,osgEarthSymbology.lib加上,加上了libcurl.lib,gdal_i.lib,zlib.lib,geos下的库也加上了,osg本身的库文件也加上啦!这个应该跟osgearth本身的库有关系,但是对osgearth不熟悉,请教一下各位老大如何修改来解决下面问题!

1>------ 已启动全部重新生成: 项目: Sample osgearth_imageoverlay, 配置: Release Win32 ------
1>正在删除项目“Sample osgearth_imageoverlay”(配置“Release|Win32”)的中间文件和输出文件
1>Building Custom Rule D:/openscencegraph/xinosgEartch/osgearth/src/applications/osgearth_imageoverlay/CMakeLists.txt
1>CMake does not need to re-run because D:\openscencegraph\xinosgEartch\osgearth\build\src\applications\osgearth_imageoverlay\CMakeFiles\generate.stamp is up-to-date.
1>正在编译...
1>osgearth_imageoverlay.cpp
1>正在链接...
1>osgearth_imageoverlay.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall osgEarth::Util::ImageOverlayEditor::ImageOverlayEditor(class osgEarth::Util::ImageOverlay *,class osg::EllipsoidModel const *,class osg::Node *)" (__imp_??0ImageOverlayEditor@Util@osgEarth@@QAE@PAVImageOverlay@12@PBVEllipsoidModel@osg@@PAVNode@5@@Z),该符号在函数 _main 中被引用
1>osgearth_imageoverlay.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) protected: virtual __thiscall osgEarth::Util::ImageOverlayEditor::~ImageOverlayEditor(void)" (__imp_??1ImageOverlayEditor@Util@osgEarth@@MAE@XZ),该符号在函数 "protected: virtual void * __thiscall osgEarth::Util::ImageOverlayEditor::`scalar deleting destructor'(unsigned int)" (??_GImageOverlayEditor@Util@osgEarth@@MAEPAXI@Z) 中被引用
1>D:\openscencegraph\xinosgEartch\osgearth\build\bin\Release\osgearth_imageoverlay.exe : fatal error LNK1120: 2 个无法解析的外部命令
1>生成日志保存在“file://d:\openscencegraph\xinosgEartch\osgearth\build\src\applications\osgearth_imageoverlay\application_osgearth_imageoverlay.dir\Release\BuildLog.htm”
1>Sample osgearth_imageoverlay - 3 个错误,0 个警告
========== 全部重新生成: 成功 0 个,失败 1 个,跳过 0 个 ==========

该用户从未签到

发表于 2012-8-5 09:53:19 | 显示全部楼层
本帖最后由 xuhaiyan8825 于 2014-6-10 21:26 编辑

楼主你好,能不能把你编译的例子工程源码给大家分享一下
您需要登录后才可以回帖 登录 | 注册

本版积分规则

OSG中国官方论坛-有您OSG在中国才更好

网站简介:osgChina是国内首个三维相关技术开源社区,旨在为国内更多的技术开发人员提供最前沿的技术资讯,为更多的三维从业者提供一个学习、交流的技术平台。

联系我们

  • 工作时间:09:00--18:00
  • 反馈邮箱:1315785073@qq.com
快速回复 返回顶部 返回列表