zhao67865 发表于 2013-4-19 21:51:23

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

编译完成后运行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".
* 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".
* WARNING: Failed to load terrain engine driver for "mp"
* FAILED to create a terrain engine for this map

并且出现内存错误,实在不知道哪的问题了

ago 发表于 2013-4-19 22:13:04

把你的E:\osgearth\osgearth\vs2010\lib\Release下面的dll拷贝过来试试

zhao67865 发表于 2013-4-20 10:05:03

ago 发表于 2013-4-19 22:13 static/image/common/back.gif
把你的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".

* No earth file from the command line; making one.

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

zhao67865 发表于 2013-4-20 10:11:34

zhao67865 发表于 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".
* WARNING: Failed to load TileSource driver for "gdal"
Warning: Could not find plugin to read objects from file ".osgearth_gdal".
* WARNING: Failed to load TileSource driver for "gdal"
Warning: Could not find plugin to read objects from file ".osgearth_gdal".
* WARNING: Failed to load TileSource driver for "gdal"
* "world-tiff" Error: layer does not have a valid TileSou
rce, cannot create image

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

ago 发表于 2013-4-20 20:41:43

使用的三方库也需要拷贝过来,提示很清楚了

ago 发表于 2013-4-20 20:41:43

使用的三方库也需要拷贝过来,提示很清楚了

zhao67865 发表于 2013-4-20 21:38:24

ago 发表于 2013-4-20 20:41 static/image/common/back.gif
使用的三方库也需要拷贝过来,提示很清楚了

gdal19.dll在目录下

幻影天使 发表于 2013-8-25 09:53:58

zhao67865 发表于 2013-4-20 21:38 static/image/common/back.gif
gdal19.dll在目录下

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

hshen0 发表于 2013-9-10 11:02:53

我也来看看了啊!嘻嘻嘻

hitcms 发表于 2015-1-30 10:00:12

幻影天使 发表于 2013-8-25 09:53
我也遇到一样的问题了。一开始是出错,后面解决了,然后出来的是白球,没有纹理出来。楼主解决了吗?

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

hitcms 发表于 2015-1-30 20:28:52

hitcms 发表于 2015-1-30 10:00
同样的问题,白球, 解决了吗?

已解决,估计是依赖库的版本问题,全部换成最新版本,重新编译一遍,成功了!
页: [1]
查看完整版本: osgearth编译完成后用osgearth_viewer测试效果是出现错误failed to create a terrain