Android SQLite R-Tree - How to install module?

后端 未结 4 974
灰色年华
灰色年华 2020-12-10 07:59

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 SQLIT

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-10 09:00

    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)

提交回复
热议问题