【RCFProto】关于Android使用RCFProto

Sent: Thu Dec 12, 2013 2:33 am 
From: Zachary 
To: falk 
Thanks for your kindly suggests, I successfully compiled the RCFProto lib in NDK way now.

In my practice, I found that no need to compile the Boost library, because the needed source file is already contained in the RCF project.
I used a tool named android-cmake, you can find it here:
https://code.google.com/p/android-cmake/

1.Followed the android-cmake procedure to generate a NDK toolchain is the first step.
2.According to RCFProto's CmakeLists.txt, I wrote another one to pointed out the header files,reference lib and other definitions.
3.For RcfProto ,pay attention to RCFProto_Java_impl.cpp , comment out this line :director_->swig_jvm_->DetachCurrentThread(); It causes a crash.

Struggled after all these, the lib running in android quite OK , what's a relief ~  
If you have any problems, feel free to let me know.

Best Regards 
Zachary 

把老外的mail先摆出来留个纪念,其实是懒得再叙述一遍了 偷笑
关于RCFProto:
简单介绍一下,这是一个RPC远程过程调用的开源项目,支持多平台。

其实忘了重要的一步:要编译google的protobuffer,当然也是要用NDK来编译,因为RCFProto有依赖这个库。
我采纳了这篇文章的方法:

这样4步走下来如果顺利,还是很快成功的,但是因为没有前人之鉴,我还是颇费周折!
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值