osgearth for android 之一:编译前的参考

本文介绍了将osgEarth应用于Android平台所遇到的挑战及编译过程。通过引用老外的参考链接,详细阐述了从设置.mk文件获取静态库到构建libosgnativelib.so的步骤,包括osgdb_earth.a等插件的编译。虽然能够成功加载.osg和.ive文件,但在显示.earth文件时遇到问题,手机屏幕仅显示背景色,作者对此感到困惑并寻求解决方案。
摘要由CSDN通过智能技术生成

知道国内有高手搞出来了,很赞。

据我所知,osgearth for android的完善是一个痛苦的过程。


1. 老外的部分参考链接如下

(1)http://forum.osgearth.org/Help-About-osgEarth-for-Android-td7581203.html#a7581205

Hi,everyone.As same as setting OSG For Android,by setting .mk files,

i get some static librarys.There is No error happened in the Ndk process.

I got static libs such as libosgEarth.a,libosgSymbology.a..

After that,through the project named OSGANDROIDEXAMPLEGLES2 ,

i used the static libs to set the .mk to build the libosgnativelib.so.

Of course,i also build osgdb_earth.a,osgdb_osgearth_gdal.a and osgdb_osgearth_driver_osgterrian.a and using them these plugins in the osgmainapp.hpp by macros("USGING OSG PLUGINS").

At last,i debug the project and succeed.i can load the cow.osg file and some .ive files,still can load .earth files.

The catlog displays sentense

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值