查看: 7590|回复: 11

osgearth编译完成后用osgearth_viewer测试效果是出现错误failed to create a terrain

[复制链接]

该用户从未签到

发表于 2013-4-19 21:51:23 | 显示全部楼层 |阅读模式
编译完成后运行vs2010\bin\release下的osgearth_viewer.exe出现错误,命令如下:
osgearth_viewer.exe E:\osgearth\osgearth\tests\gdal_tiff.earth

E:\osgearth\osgearth\vs2010\bin\Release>osgearth_viewer.exe E:\osgearth\osgearth
\tests\gdal_tiff.earth
Warning: Could not find plugin to read objects from file "E:\osgearth\osgearth\t
ests\gdal_tiff.earth".
[osgEarth]* [MapNodeHelper] No earth file from the command line; making one.
Warning: Could not find plugin to read objects from file "C:\WINDOWS\Fonts\arial
.ttf".
Warning: Could not find plugin to read objects from file ".osgearth_engine_mp".
[osgEarth]* WARNING: Failed to load terrain engine driver for "mp"
[osgEarth]* FAILED to create a terrain engine for this map

并且出现内存错误,实在不知道哪的问题了
QQ截图20130419214536.jpg

该用户从未签到

发表于 2013-4-19 22:13:04 | 显示全部楼层
把你的E:\osgearth\osgearth\vs2010\lib\Release下面的dll拷贝过来试试

该用户从未签到

 楼主| 发表于 2013-4-20 10:05:03 | 显示全部楼层
ago 发表于 2013-4-19 22:13
把你的E:\osgearth\osgearth\vs2010\lib\Release下面的dll拷贝过来试试

谢谢,虽然成功了,但是打开的只是一个白球,没有地球的纹理
G:\osgearth\osgearth\vs2010\bin\Release>osgearth_viewer G:\osgearth\osgearth\tes
t\gdal_tiff.earth
Warning: Could not find plugin to read objects from file "C:\WINDOWS\Fonts\arial
.ttf".

[osgEarth]* [MapNodeHelper] No earth file from the command line; making one.

G:\osgearth\osgearth\vs2010\bin\Release>

该用户从未签到

 楼主| 发表于 2013-4-20 10:11:34 | 显示全部楼层
qiu.JPG

该用户从未签到

 楼主| 发表于 2013-4-20 10:18:30 | 显示全部楼层
换了一种命令方法

G:\osgearth\osgearth\vs2010\bin\Release>osgearth_viewer G:/osgearth/osgearth/tes
ts/gdal_tiff.earth
Warning: Could not find plugin to read objects from file "C:\WINDOWS\Fonts\arial
.ttf".
Warning: Could not find plugin to read objects from file ".osgearth_gdal".
[osgEarth]* WARNING: Failed to load TileSource driver for "gdal"
Warning: Could not find plugin to read objects from file ".osgearth_gdal".
[osgEarth]* WARNING: Failed to load TileSource driver for "gdal"
Warning: Could not find plugin to read objects from file ".osgearth_gdal".
[osgEarth]* WARNING: Failed to load TileSource driver for "gdal"
[osgEarth]* [ImageLayer] "world-tiff" Error: layer does not have a valid TileSou
rce, cannot create image

G:\osgearth\osgearth\vs2010\bin\Release>

该用户从未签到

发表于 2013-4-20 20:41:43 来自手机 | 显示全部楼层
使用的三方库也需要拷贝过来,提示很清楚了

该用户从未签到

发表于 2013-4-20 20:41:43 来自手机 | 显示全部楼层
使用的三方库也需要拷贝过来,提示很清楚了

该用户从未签到

 楼主| 发表于 2013-4-20 21:38:24 | 显示全部楼层
ago 发表于 2013-4-20 20:41
使用的三方库也需要拷贝过来,提示很清楚了

gdal19.dll在目录下

该用户从未签到

发表于 2013-8-25 09:53:58 | 显示全部楼层
zhao67865 发表于 2013-4-20 21:38
gdal19.dll在目录下

我也遇到一样的问题了。一开始是出错,后面解决了,然后出来的是白球,没有纹理出来。楼主解决了吗?

该用户从未签到

发表于 2013-9-10 11:02:53 | 显示全部楼层
我也来看看了啊!嘻嘻嘻

该用户从未签到

发表于 2015-1-30 10:00:12 | 显示全部楼层
幻影天使 发表于 2013-8-25 09:53
我也遇到一样的问题了。一开始是出错,后面解决了,然后出来的是白球,没有纹理出来。楼主解决了吗?

同样的问题,白球, 解决了吗?

该用户从未签到

发表于 2015-1-30 20:28:52 | 显示全部楼层
hitcms 发表于 2015-1-30 10:00
同样的问题,白球, 解决了吗?

已解决,估计是依赖库的版本问题,全部换成最新版本,重新编译一遍,成功了!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

联系我们

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