Android的SQLite的R树 - 如何安装模块? [英] Android SQLite R-Tree - How to install module?
问题描述
http://www.sqlite.org/rtree.html 说,R *树包括作为合并的一部分,但默认情况下禁用,并启用简单地定义的SQLITE_ENABLE_RTREE C- preprocessor宏编译
http://www.sqlite.org/rtree.html says that the r*tree is "included as part of the amalgamation but is disabled by default" and to enable it "simply compile with the SQLITE_ENABLE_RTREE C-preprocessor macro defined"
嗯,我想用在我的Android应用程序R树,但显然SQLite是所有pre-安装等有没有办法到用户的手机/设备上启用了?
Well I want to use R-trees in my android app, but clearly SQLite is all pre-installed etc. Is there a way to enable it on a user's phone/device?
另外,是否有可能使用NDK和免费提供源$ C $ C的SQLite的?
Alternatively, is it possible to use the NDK and the freely available source code for SQLite?
推荐答案
您可以完全编译您自己的版本的SQLite。我们这样做是为了使来自wxSQLite加密/ codeC模块。看看在Android Git仓库SQLite的源代码。基本上它是那么容易,创造一个Android.mk的选项(如SQLITE_ENABLE_RTREE)你想启用。当然,这会给你一个机库。为了使用它,你会需要从NDK访问它,或者创建一个包装器(同样,你可以看一下Android的存储库和Java / JNI包装到SQLite的)
You can absolutely compile your own version of SQLite. We do this in order to enable the encryption/codec modules from wxSQLite. Take a look at the SQLite source in the Android Git repository. Basically it's as easy and creating a Android.mk with the options (such as SQLITE_ENABLE_RTREE) you'd like enabled. Of course, this will give you a native library. In order to use it you'll need to access it from the NDK or create a wrapper (again, you can look at the Android repository and Java/JNI wrappers to SQLite)
这篇关于Android的SQLite的R树 - 如何安装模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!