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
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:
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先摆出来留个纪念,其实是懒得再叙述一遍了
。
![偷笑](http://static.blog.csdn.net/xheditor/xheditor_emot/default/titter.gif)
关于RCFProto:
简单介绍一下,这是一个RPC远程过程调用的开源项目,支持多平台。
其实忘了重要的一步:要编译google的protobuffer,当然也是要用NDK来编译,因为RCFProto有依赖这个库。
我采纳了这篇文章的方法:
这样4步走下来如果顺利,还是很快成功的,但是因为没有前人之鉴,我还是颇费周折!