{"id":1012,"date":"2012-02-27T13:16:48","date_gmt":"2012-02-27T05:16:48","guid":{"rendered":"http:\/\/blog.newnaw.com\/?p=1012"},"modified":"2012-02-27T13:16:48","modified_gmt":"2012-02-27T05:16:48","slug":"%e5%9c%a8android%e4%b8%8a%e5%88%a9%e7%94%a8ndk%e7%bc%96%e8%af%91%e5%b9%b6%e4%bd%bf%e7%94%a8spatialite%e5%ba%93%ef%bc%88windows%e7%8e%af%e5%a2%83%ef%bc%89","status":"publish","type":"post","link":"https:\/\/blog.newnaw.com\/?p=1012","title":{"rendered":"\u5728Android\u4e0a\u5229\u7528NDK\u7f16\u8bd1\u5e76\u4f7f\u7528Spatialite\u5e93\uff08Windows\u73af\u5883\uff09"},"content":{"rendered":"<p>\u3000\u3000<a href=\"http:\/\/www.sqlite.org\/\">Sqlite<\/a>\u6570\u636e\u5e93\u56e0\u5176\u4f53\u79ef\u4fbf\u643a\uff08\u57fa\u4e8e\u5355\u4e2a\u6587\u4ef6\uff0c\u8de8\u5e73\u53f0\uff09\uff0c\u529f\u80fd\u5b8c\u6574\uff08\u7c7b\u4f3cRDBMS\uff09\u53d7\u5230\u975e\u5e38\u5e7f\u6cdb\u7684\u6b22\u8fce\uff0c\u5728iOS\uff0cAndroid\u5e73\u53f0\u4e0a\u90fd\u63d0\u4f9b\u539f\u751f\u7684\u652f\u6301\u3002<a href=\"http:\/\/www.gaia-gis.it\/gaia-sins\/index.html\">Spatialite<\/a>\u662fSqlite\u7684\u4e00\u4e2a\u7a7a\u95f4\u6269\u5c55\uff0c\u6839\u636e\u5b98\u65b9\u4ecb\u7ecd\uff0cSpatialite\u4e4b\u4e8eSqlite\uff0c\u76f8\u5f53\u4e8ePostGIS\u4e4b\u4e8ePostgreSQL\u3002<br \/>\u3000\u3000Spatialite\u6269\u5c55\u63d0\u4f9b\u4e86<a href=\"http:\/\/www.gaia-gis.it\/gaia-sins\/spatialite-sql-3.0.0.html\">\u4e00\u7cfb\u5217\u7528\u4e8e\u7a7a\u95f4\u64cd\u4f5c\u7684SQL\u51fd\u6570<\/a>\uff0c\u4f8b\u5982\u57fa\u7840\u7684\u7a7a\u95f4\u67e5\u8be2\uff0c\u7f13\u51b2\u533a\u751f\u6210\u7b49\uff0c\u4e5f\u6709\u9ad8\u7ea7\u7684\u7c7b\u4f3cArcObjects\u4e2dITopologicalOperator\uff0cIRelationalOperator\u7b49\u63a5\u53e3\u7684\u529f\u80fd\u3002<br \/>\u3000\u3000\u5728Android\u5e73\u53f0\u4e0a\u4f7f\u7528Spatialite\u8d44\u6599\u6bd4\u8f83\u5c11\uff0c\u4e3b\u8981\u662fgoogle\u4e0a\u7684<a href=\"http:\/\/code.google.com\/p\/spatialite-android\/\">Spatialite for Android<\/a>\u548cgithub\u4e0a\u7684<a href=\"https:\/\/github.com\/mrenouf\/android-spatialite\">android-spatialite<\/a>\u4e24\u4e2a\u5de5\u7a0b\u3002\u524d\u8005\u5e26\u6709\u5b8c\u6574\u7684\u7f16\u8bd1\u6b65\u9aa4\uff0c\u6211\u5c1d\u8bd5\u4e86\u8fd9\u4e2a\uff0c\u5176\u4e2d\u9047\u5230\u4e86\u4e9b\u95ee\u9898\uff0c\u8bb0\u5f55\u4e0b\u6765\uff0c\u65b9\u4fbf\u9700\u8981\u7528\u5230\u7684\u670b\u53cb\u3002\u540e\u8005\u5de5\u7a0b\u4f3c\u4e4e\u5e26\u6709\u7f16\u8bd1\u597d\u7684libjsqlite.so\u5e93\uff0c\u53ef\u76f4\u63a5\u4f7f\u7528\u3002<br \/>\u3000\u3000\u6211\u673a\u5668\u7684\u73af\u5883\u662fWindows 7 64bit\uff0c\u5df2\u7ecf\u642d\u5efa\u597d\u4e86Android Eclipse\u5f00\u53d1\u73af\u5883\u3002\u7531\u4e8eSpatialite\u53caSqlite\u662fC\/C++\u7684native\u8bed\u8a00\u7f16\u5199\uff0c\u800cAndroid\u7684\u9ed8\u8ba4\u5f00\u53d1\u8bed\u8a00\u662fJava\uff0c\u6240\u4ee5\u5728Android\u4e0a\u7f16\u8bd1Spatialite\u5fc5\u987b\u7528\u5230google\u63d0\u4f9b\u7684<a href=\"http:\/\/developer.android.com\/sdk\/ndk\/overview.html\">NDK<\/a>\uff08Native Development Kit\uff09\u73af\u5883\u3002NDK\u73af\u5883\u7684\u642d\u5efa\u6bd4\u8f83\u7b80\u5355\uff0c\u6309\u7167<a href=\"http:\/\/developer.android.com\/sdk\/ndk\/index.html\">google\u7684\u6587\u6863<\/a>\u8fdb\u884c\u5373\u53ef\uff1a<\/p>\n<ol>\n<li>\u4e0b\u8f7dNDK\u538b\u7f29\u5305\uff08android-ndk-r7b-windows.zip\uff09\u3002\u6211\u4e0b\u8f7d\u7684\u662f\u6700\u65b0\u7684android-ndk-r7b\u7248\u672c\u3002\u5c06\u5176\u89e3\u538b\u5230\u4efb\u610f\u76ee\u5f55\uff0c\u4e0b\u6587\u4ee5&lt;ndk&gt;\u6307\u4ee3\u3002\u6ce8\u610f\uff1a\u7531\u4e8e\u540e\u9762cygwin\u4e2d\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u65f6\u4e0d\u652f\u6301\u5e26\u7a7a\u683c\u7684\u8def\u5f84\uff0c\u6240\u4ee5\u5efa\u8bae\u5c06\u5176\u89e3\u538b\u5230\u67d0\u4e2a\u76d8\u7b26\u7684\u6839\u76ee\u5f55\u4e0b\uff0c\u6bd4\u5982d:android-ndk-r7b\uff1b\n<li>\u8bbe\u7f6eWindows\u7684\u73af\u5883\u53d8\u91cf\u3002\u4e3b\u8981\u662f\u5c06NDK\u7684\u8def\u5f84\u6dfb\u52a0\u5230PATH\u4e2d\u53bb\uff0c\u65b9\u4fbf\u5728\u4efb\u4f55\u4f4d\u7f6e\u8c03\u7528ndk-build\u547d\u4ee4\u3002\u8be6\u7ec6\u64cd\u4f5c\u4e0d\u518d\u8d58\u8ff0\u3002\u6b64\u6b65\u9aa4\u53ea\u662f\u4e3acmd\u63d0\u4f9b\u4e86\u4fbf\u5229\uff1b\n<li>\u7531\u4e8e<a href=\"http:\/\/developer.android.com\/sdk\/ndk\/overview.html#reqs\">NDK\u9700\u6c42<\/a>\u4e2d\u8bf4\u660e\uff0c\u5fc5\u987b\u7528\u5230GNU Make\u547d\u4ee4\uff0c\u6240\u4ee5\u5728Windows\u73af\u5883\u4e0a\u8fd8\u9700\u8981\u63d0\u524d\u5b89\u88c5<a href=\"http:\/\/www.cygwin.com\/\">Cygwin<\/a>\u3002\u8fd9\u662f\u5728Windows\u4e0a\u6a21\u62dfLinux\u73af\u5883\u7684\u5de5\u5177\u3002\u5b89\u88c5\u6b65\u9aa4\u53c2\u8003\u6b64\u8d34\uff1a<a href=\"http:\/\/www.metsky.com\/archives\/525.html\">Windows\u73af\u5883\u4e0bAndroid NDK\u73af\u5883\u642d\u5efa<\/a>\u3002\u6ce8\u610f\u5728cygwin\u7684linux\u73af\u5883\u4e0b\uff0c\u914d\u7f6e$NDK\u73af\u5883\u53d8\u91cf\uff0c\u65b9\u4fbf\u5728\u4efb\u4f55\u5730\u65b9\u8c03\u7528ndk-build\u7f16\u8bd1\u547d\u4ee4\u3002\u6211\u5728\u5b89\u88c5Cygwin\u65f6\uff0c\u53ea\u989d\u5916\u52fe\u9009\u4e86Devel\u5e93\u3002<\/li>\n<\/ol>\n<p>\u3000\u3000\u5b8c\u6210\u8fd9\u4e2a\u6b65\u9aa4\u540e\uff0c\u53ef\u5c1d\u8bd5\u7f16\u8bd1\u8fd0\u884cNDK\u4e2d\u81ea\u5e26\u7684hello-jni\u4f8b\u5b50\uff0c\u9a8c\u8bc1NDK\u7f16\u8bd1\u73af\u5883\u5df2\u7ecf\u642d\u597d\u3002\u5177\u4f53\u6b65\u9aa4\u53c2\u89c1<a href=\"http:\/\/developer.android.com\/sdk\/ndk\/overview.html#samples\">google\u7684\u6587\u6863<\/a>\u3002\u53ef\u4ee5\u53d1\u73b0\uff0cnative\u4ee3\u7801\u9700\u8981\u653e\u5728\u4e0esrc\u540c\u7ea7\u7684jni\u76ee\u5f55\u4e0b\uff0c\u8be5\u76ee\u5f55\u4e0b\u5fc5\u987b\u81f3\u5c11\u6709Android.mk\u6587\u4ef6\uff0c\u5411NDK\u7cfb\u7edf\u63cf\u8ff0\u6e90\u6587\u4ef6\uff1b\u7f16\u8bd1\u65f6\u9700\u8981\u5728\u5de5\u7a0b\u7684\u6839\u76ee\u5f55\u4e0b\u8fd0&lt;ndk&gt;\/ndk-build\u547d\u4ee4\uff1b\u5229\u7528NDK\u7f16\u8bd1\u540e\uff0cAndroid\u5de5\u7a0b\u6587\u4ef6\u5939\u4e2d\u4f1a\u591a\u51falibs\u76ee\u5f55\uff0c\u91cc\u9762\u4f1a\u751f\u6210lib&lt;something&gt;.so\u5171\u4eab\u5e93\uff0c\u8fd9\u5c31\u662f\u6211\u4eec\u8981\u7528\u5230\u7c7b\u5e93\uff0c\u8be5\u6587\u4ef6\u4e5f\u4f1a\u4e00\u5e76\u6253\u5305\u5230apk\u6587\u4ef6\u4e2d\u53bb\u3002\u66f4\u591a\u7684ndk\u77e5\u8bc6\u8bf7\u53c2\u8003&lt;ndk&gt;\/documentation.html\u6587\u4ef6\uff0c\u975e\u5e38\u8be6\u5c3d\u3002\u6ce8\uff1aJNI\u76f8\u5f53\u4e8e.net\u5e73\u53f0\u7684p\/invoke\u3002<br \/>\u3000\u3000\u63a5\u4e0b\u6765\u5c31\u8981\u6309\u7167<a href=\"http:\/\/code.google.com\/p\/spatialite-android\/\">Spatialite for Android<\/a>\u4e0a\u7684\u63d0\u793a\uff0c\u5728cygwin\u73af\u5883\u4e2d\u7f16\u8bd1spatialite\u5e93\u4e86\u3002<\/p>\n<ol>\n<li>\u5728windows\u4e0b\u5229\u7528svn\u5de5\u5177\u5bf9\u6574\u4e2aproject checkout\uff08\u8fd9\u6b21\u4f5c\u8005\u7528\u7684\u662fSpatialite 3.0.1\uff0cPROJ 4.7.0\uff0cgeos 3.2.2\u51e0\u4e2a\u5e93\uff09\u3002\u4f1a\u53d1\u73b0\u6709\u4e24\u4e2a\u5de5\u7a0bspatialite-android\u548cspatialite-android-test\u3002\u6211\u4eec\u4e3b\u8981\u5bf9spatialite-android\u5de5\u7a0b\u8fdb\u884c\u7f16\u8bd1\uff1b\n<li>\u7531\u4e8espatialite\u7528\u5230\u4e86geos\u548cproj\u4e24\u4e2a\u5e93\uff0c\u6240\u4ee5\u9996\u5148\u9700\u8981\u4e3a\u8be5\u5de5\u7a0b\u4e0b\u8f7d\uff0c\u914d\u7f6e\u4e24\u4e2a\u5e93\u3002\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff0c\u5728cygwin\u73af\u5883\u4e2d\u6267\u884c\uff1a<br \/> \n<div style=\"border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: 'Courier New', courier, monospace; direction: ltr; max-height: 200px; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px\" id=\"codeSnippetWrapper\">\n<div style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\" id=\"codeSnippet\">\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum1\">   1:<\/span> $ cd jni<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum2\">   2:<\/span> $ wget http:<span style=\"color: #008000\">\/\/download.osgeo.org\/geos\/geos-3.2.2.tar.bz2<\/span><\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum3\">   3:<\/span> $ tar xvjf geos-3.2.2.tar.bz2<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum4\">   4:<\/span> $ cd geos-3.2.2<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum5\">   5:<\/span> $ .\/configure --build=x86_64-pc-linux-gnu --host=arm-linux-eabi<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum6\">   6:<\/span> $ cd ..<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum7\">   7:<\/span> $ wget ftp:<span style=\"color: #008000\">\/\/ftp.remotesensing.org\/proj\/proj-4.7.0.tar.gz<\/span><\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum8\">   8:<\/span> $ tar xvzf proj-4.7.0.tar.gz<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum9\">   9:<\/span> $ cd proj-4.7.0<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum10\">  10:<\/span> $ .\/configure --build=x86_64-pc-linux-gnu --host=arm-linux-eabi<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum11\">  11:<\/span> $ touch src\/empty.cpp<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum12\">  12:<\/span> $ cd ..<\/pre>\n<p><!--CRLF--><\/div>\n<\/div>\n<li>\u6309\u7167\u4f5c\u8005\u7684\u63d0\u793a\uff0c\u4e0b\u6765\u5c31\u53ef\u4ee5\u76f4\u63a5\u5bf9\u5de5\u7a0b\u8fdb\u884cndk-build\u4e86\uff08\u6ce8\uff1a\u6b64\u65f6\u4ecd\u7136\u5728spatialite-android\/jni\u76ee\u5f55\u4e0b\uff0c\u800c\u975espatialite-android\u76ee\u5f55\uff09\u3002\u5982\u679c\u4f60\u8fd9\u4e48\u505a\u4e86\uff0c\u4f1a\u51fa\u73b0\u4e00\u4e2a\u9519\u8bef\uff1a\n<div style=\"border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: 'Courier New', courier, monospace; direction: ltr; max-height: 200px; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px\" id=\"codeSnippetWrapper\">\n<div style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\" id=\"codeSnippet\">\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum1\">   1:<\/span> ...<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum2\">   2:<\/span> Compile thumb  : proj &lt;= rtodms.c<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum3\">   3:<\/span> Compile thumb  : proj &lt;= vector1.c<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum4\">   4:<\/span> StaticLibrary  : libproj.a<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum5\">   5:<\/span> Compile++ thumb  : geos &lt;= geos_c.cpp<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum6\">   6:<\/span> In file included from D:\/spatialite-android\/jni\/geos-3.2.2\/source\/headers\/geos\/geom\/Coordinate.h:20,<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum7\">   7:<\/span>                  from D:\/spatialite-android\/jni\/geos-3.2.2\/source\/headers\/geos\/g                                                                                                                eom\/Envelope.h:26,<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum8\">   8:<\/span>                  from D:\/spatialite-android\/jni\/geos-3.2.2\/source\/headers\/geos\/i                                                                                                                ndex\/strtree\/STRtree.h:27,<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum9\">   9:<\/span>                  from D:\/spatialite-android\/jni\/geos-3.2.2\/capi\/geos_c.cpp:19:<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum10\">  10:<\/span> D:\/spatialite-android\/jni\/geos-3.2.2\/source\/headers\/geos\/platform.h:29:20: error                                                                                                                : ieeefp.h: No such file or directory<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum11\">  11:<\/span> \/cygdrive\/d\/android-ndk-r7b\/build\/core\/build-binary.mk:243: recipe <span style=\"color: #0000ff\">for<\/span> target `\/                                                                                                                cygdrive\/d\/spatialite-android\/obj\/local\/armeabi\/objs-debug\/geos\/geos-3.2.2\/capi\/                                                                                                                geos_c.o' failed<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum12\">  12:<\/span> make: *** [\/cygdrive\/d\/spatialite-android\/obj\/local\/armeabi\/objs-debug\/geos\/geos                                                                                                                -3.2.2\/capi\/geos_c.o] Error 1<\/pre>\n<p><!--CRLF--><\/div>\n<\/div>\n<p><a href=\"http:\/\/blog.newnaw.com\/wp-content\/uploads\/2012\/02\/image.png\"><img decoding=\"async\" loading=\"lazy\" style=\"background-image: none; border-right-width: 0px; margin: 0px auto 5px; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"http:\/\/blog.newnaw.com\/wp-content\/uploads\/2012\/02\/image_thumb.png\" width=\"452\" height=\"193\"><\/a><br \/>\u63d0\u793aieeefp.h: No such file or directory\u3002\u8981\u4fee\u6b63\u8fd9\u4e2a\u9519\u8bef\uff0c\u4f60\u9700\u8981\u5728spatialite-android\/jni\/geos-3.2.2\/source\/headers\/geos\/platform.h\u6587\u4ef6\u4e2d\u5927\u7ea615\u884c\u7684\u4f4d\u7f6e\uff0c\u627e\u5230\u201c#define HAVE_IEEEFP_H 1\u201d\u8fd9\u53e5\u8bdd\uff0c\u5e76\u5728\u5176\u4e0b\u9762\u6dfb\u52a0\u4e00\u884c\u201c#undef HAVE_IEEEFP_H\u201d\uff0c\u53d6\u6d88\u5bf9HAVE_IEEEFP_H\u7684\u5b9a\u4e49\u3002\u4fdd\u5b58\u8be5\u6587\u4ef6\uff1b <\/p>\n<li>\u518d\u6b21ndk-build\uff0c\u8fd9\u56de\u53d1\u73b0\u4e0a\u9762\u7684\u9519\u8bef\u6d88\u5931\u4e86\u3002\u4f46\u53c8\u4ea7\u751f\u4e86\u65b0\u7684\u9519\u8bef\uff1a\n<div style=\"border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: 'Courier New', courier, monospace; direction: ltr; max-height: 200px; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px\" id=\"codeSnippetWrapper\">\n<div style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\" id=\"codeSnippet\">\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum1\">   1:<\/span> ...<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum2\">   2:<\/span> Compile++ thumb  : geos &lt;= InteriorPointLine.cpp<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum3\">   3:<\/span> Compile++ thumb  : geos &lt;= InteriorPointPoint.cpp<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum4\">   4:<\/span> Compile++ thumb  : geos &lt;= LineIntersector.cpp<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum5\">   5:<\/span> D:\/spatialite-android\/jni\/geos-3.2.2\/source\/algorithm\/LineIntersector.cpp: In st                                                                                                                atic member function <span style=\"color: #006080\">'static double geos::algorithm::LineIntersector::interpolat                                                                                                                eZ(const geos::geom::Coordinate&amp;, const geos::geom::Coordinate&amp;, const geos::geo                                                                                                                m::Coordinate&amp;)'<\/span>:<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum6\">   6:<\/span> D:\/spatialite-android\/jni\/geos-3.2.2\/source\/algorithm\/LineIntersector.cpp:224: e                                                                                                                rror: expected unqualified-id before <span style=\"color: #006080\">'('<\/span> token<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum7\">   7:<\/span> D:\/spatialite-android\/jni\/geos-3.2.2\/source\/algorithm\/LineIntersector.cpp:232: e                                                                                                                rror: expected unqualified-id before <span style=\"color: #006080\">'('<\/span> token<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum8\">   8:<\/span> D:\/spatialite-android\/jni\/geos-3.2.2\/source\/algorithm\/LineIntersector.cpp: In me                                                                                                                mber function <span style=\"color: #006080\">'void geos::algorithm::LineIntersector::computeIntersection(const                                                                                                                 geos::geom::Coordinate&amp;, const geos::geom::Coordinate&amp;, const geos::geom::Coordi                                                                                                                nate&amp;)'<\/span>:<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum9\">   9:<\/span> D:\/spatialite-android\/jni\/geos-3.2.2\/source\/algorithm\/LineIntersector.cpp:304: e                                                                                                                rror: expected unqualified-id before <span style=\"color: #006080\">'('<\/span> token<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum10\">  10:<\/span> D:\/spatialite-android\/jni\/geos-3.2.2\/source\/algorithm\/LineIntersector.cpp:306: e                                                                                                                rror: expected unqualified-id before <span style=\"color: #006080\">'('<\/span> token<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum11\">  11:<\/span> D:\/spatialite-android\/jni\/geos-3.2.2\/source\/algorithm\/LineIntersector.cpp: In me                                                                                                                mber function <span style=\"color: #006080\">'int geos::algorithm::LineIntersector::computeIntersect(const geos                                                                                                                ::geom::Coordinate&amp;, const geos::geom::Coordinate&amp;, const geos::geom::Coordinate                                                                                                                &amp;, const geos::geom::Coordinate&amp;)'<\/span>:<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum12\">  12:<\/span> D:\/spatialite-android\/jni\/geos-3.2.2\/source\/algorithm\/LineIntersector.cpp:426: e                                                                                                                rror: expected unqualified-id before <span style=\"color: #006080\">'('<\/span> token<\/pre>\n<p><!--CRLF--><\/div>\n<\/div>\n<p><a href=\"http:\/\/blog.newnaw.com\/wp-content\/uploads\/2012\/02\/image1.png\"><img decoding=\"async\" loading=\"lazy\" style=\"background-image: none; border-right-width: 0px; margin: 0px auto 5px; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"http:\/\/blog.newnaw.com\/wp-content\/uploads\/2012\/02\/image_thumb1.png\" width=\"441\" height=\"269\"><\/a>\u5728\u5f88\u591a\u4f4d\u7f6e\u90fd\u63d0\u793a error: expected unqualified-id before &#8216;(&#8216; token\uff0cgoogle\u4e00\u4e0b\u8fd9\u4e2a\u9519\u8bef\uff0c\u53d1\u73b0\u5927\u6982\u662f\u7531\u4e8e\u5728\u5934\u6587\u4ef6\u4e2d\u5bf9\u67d0\u4e2a\u51fd\u6570\u91cd\u590d\u58f0\u660e\u51b2\u7a81\u5f15\u8d77\u7684\u3002\u4e8e\u662f\u6253\u5f00spatialite-android\/jni\/geos-3.2.2\/source\/algorithm\/LineIntersector.cpp\u6587\u4ef6\u67e5\u770b\uff0c\u53d1\u73b0\u57fa\u672c\u90fd\u4e0e\u4e00\u4e2a\u540d\u4e3a\u201cISNAN\u201d\u7684\u51fd\u6570\u6709\u5173\u3002\u5728Windows\u4e0b\u641c\u7d22\u5305\u542b\u6b64\u5b57\u7b26\u4e32\u7684\u6587\u4ef6\uff0c\u53c8\u6765\u5230\u4e86\u521a\u624d\u4fee\u6539\u8fc7\u7684platform.h\u6587\u4ef6\u4e2d\uff0c\u53d1\u73b0\u8fd9\u4e2a\u6587\u4ef6\u4e2d\u6709\u4e0e\u6b64\u51fd\u6570\u76f8\u5173\u7684\u8bed\u53e5\u3002\u4e3a\u4e86\u89e3\u51b3\u6b64\u95ee\u9898\uff0c\u5c1d\u8bd5\u5bf9\u6b64\u6587\u4ef6\u8fdb\u884c\u518d\u6b21\u4fee\u6539\u3002\u5728\u5927\u7ea625\u884c\u7684\u4f4d\u7f6e\uff0c\u53ef\u4ee5\u627e\u5230\u201c\/* #undef HAVE_ISNAN *\/\u201d\u8fd9\u53e5\u8bdd\uff0c\u5728\u8fd9\u53e5\u8bdd\u4e0b\u9762\u6dfb\u52a0\u4e00\u53e5\u201c#define HAVE_ISNAN 1\u201d\u3002\u8fd9\u6837\u505a\u7684\u76ee\u7684\u662f\u6539\u53d8\u8be5\u6587\u4ef6\u540e\u7eed\u7684\u4e00\u4e9b\u7f16\u8bd1\u5904\u7406\u3002 <\/p>\n<li>\u6700\u540e\u518d\u6b21ndk-build\uff0c\u6210\u529f\u8f93\u51falibjsqlite.so\u5e93\u3002<br \/><a href=\"http:\/\/blog.newnaw.com\/wp-content\/uploads\/2012\/02\/image2.png\"><img decoding=\"async\" loading=\"lazy\" style=\"background-image: none; border-right-width: 0px; margin: 0px auto 5px; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"http:\/\/blog.newnaw.com\/wp-content\/uploads\/2012\/02\/image_thumb2.png\" width=\"356\" height=\"71\"><\/a><\/li>\n<\/ol>\n<p>\u3000\u3000\u73b0\u5728\u6211\u4eec\u5728eclipse\u4e2d\u8fd0\u884cspatialite-android\u8fd9\u4e2a\u5de5\u7a0b\uff08\u9700\u8981\u5c06test-2.3.sqlite\u6570\u636e\u5e93adb push\u5230\u6a21\u62df\u5668\u7684sd\u5361\u4e0a\uff09\uff0c\u5c31\u53ef\u4ee5\u770b\u5230\u9884\u671f\u7684\u7ed3\u679c\u4e86\u3002<br \/><a href=\"http:\/\/blog.newnaw.com\/wp-content\/uploads\/2012\/02\/image3.png\"><img decoding=\"async\" loading=\"lazy\" style=\"background-image: none; border-right-width: 0px; margin: 0px auto 5px; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"http:\/\/blog.newnaw.com\/wp-content\/uploads\/2012\/02\/image_thumb3.png\" width=\"493\" height=\"216\"><\/a>\u3000\u3000\u5173\u4e8e\u5982\u4f55\u5229\u7528java\u8bed\u8a00\u8c03\u7528spatialite\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u8be6\u7ec6\u53c2\u8003\u8fd9\u4e2a\u5de5\u7a0b\u4e2djsqlite\u5305\u4e0b\u7684\u5c01\u88c5\u4ee3\u7801\u3002\u81f3\u6b64\u6211\u4eec\u5c31\u5b8c\u6210\u4e86\u5728Android\u5e73\u53f0\u4e0a\u4f7f\u7528spatialite\u5e93\u7684\u51c6\u5907\u5de5\u4f5c\u3002<br \/>\u3000\u3000\u6b64\u6b21\u7f16\u8bd1\u4e2d\u9047\u5230\u7684\u95ee\u9898\u53ef\u53c2\u8003\uff1a<a href=\"http:\/\/code.google.com\/p\/spatialite-android\/issues\/detail?id=3\">http:\/\/code.google.com\/p\/spatialite-android\/issues\/detail?id=3<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000\u3000Sqlite\u6570\u636e\u5e93\u56e0\u5176\u4f53\u79ef\u4fbf\u643a\uff08\u57fa\u4e8e\u5355\u4e2a\u6587\u4ef6\uff0c\u8de8\u5e73\u53f0\uff09\uff0c\u529f\u80fd\u5b8c\u6574\uff08\u7c7b\u4f3cRDBMS\uff09\u53d7\u5230\u975e\u5e38\u5e7f\u6cdb\u7684\u6b22\u8fce\uff0c\u5728iOS\uff0cAndroid\u5e73\u53f0\u4e0a\u90fd\u63d0\u4f9b\u539f\u751f\u7684\u652f\u6301\u3002Spatialite\u662fSqlite\u7684\u4e00\u4e2a\u7a7a\u95f4\u6269\u5c55\uff0c\u6839\u636e\u5b98\u65b9\u4ecb\u7ecd\uff0cSpatialite\u4e4b\u4e8eSqlite\uff0c\u76f8\u5f53\u4e8ePostGIS\u4e4b\u4e8ePostgreSQL\u3002\u3000\u3000Spatialite\u6269\u5c55\u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217\u7528\u4e8e\u7a7a\u95f4\u64cd\u4f5c\u7684SQL\u51fd\u6570\uff0c\u4f8b\u5982\u57fa\u7840\u7684\u7a7a\u95f4\u67e5\u8be2\uff0c\u7f13\u51b2\u533a\u751f\u6210\u7b49\uff0c\u4e5f\u6709\u9ad8\u7ea7\u7684\u7c7b\u4f3cArcObjects\u4e2dITopologicalOperator\uff0cIRelationalOperator\u7b49\u63a5\u53e3\u7684\u529f\u80fd\u3002\u3000\u3000\u5728Android\u5e73\u53f0\u4e0a\u4f7f\u7528Spatialite\u8d44\u6599\u6bd4\u8f83\u5c11\uff0c\u4e3b\u8981\u662fgoogle\u4e0a\u7684Spatialite for Android\u548cgithub\u4e0a\u7684android-spatialite\u4e24\u4e2a\u5de5\u7a0b\u3002\u524d\u8005\u5e26\u6709\u5b8c\u6574\u7684\u7f16\u8bd1\u6b65\u9aa4\uff0c\u6211\u5c1d\u8bd5\u4e86\u8fd9\u4e2a\uff0c\u5176\u4e2d\u9047\u5230\u4e86\u4e9b\u95ee\u9898\uff0c\u8bb0\u5f55\u4e0b\u6765\uff0c\u65b9\u4fbf\u9700\u8981\u7528\u5230\u7684\u670b\u53cb\u3002\u540e\u8005\u5de5\u7a0b\u4f3c\u4e4e\u5e26\u6709\u7f16\u8bd1\u597d\u7684libjsqlite.so\u5e93\uff0c\u53ef\u76f4\u63a5\u4f7f\u7528\u3002\u3000\u3000\u6211\u673a\u5668\u7684\u73af\u5883\u662fWindows 7 64bit\uff0c\u5df2\u7ecf\u642d\u5efa\u597d\u4e86Android Eclipse\u5f00\u53d1\u73af\u5883\u3002\u7531\u4e8eSpatialite\u53caSqlite\u662fC\/C++\u7684native\u8bed\u8a00\u7f16\u5199\uff0c\u800cAndroid\u7684\u9ed8\u8ba4\u5f00\u53d1\u8bed\u8a00\u662fJava\uff0c\u6240\u4ee5\u5728Android\u4e0a\u7f16\u8bd1Spatialite\u5fc5\u987b\u7528\u5230google\u63d0\u4f9b\u7684NDK\uff08Native Development Kit\uff09\u73af\u5883\u3002NDK\u73af\u5883\u7684\u642d\u5efa\u6bd4\u8f83\u7b80\u5355\uff0c\u6309\u7167google\u7684\u6587\u6863\u8fdb\u884c\u5373\u53ef\uff1a \u4e0b\u8f7dNDK\u538b\u7f29\u5305\uff08android-ndk-r7b-windows.zip\uff09\u3002\u6211\u4e0b\u8f7d\u7684\u662f\u6700\u65b0\u7684android-ndk-r7b\u7248\u672c\u3002\u5c06\u5176\u89e3\u538b\u5230\u4efb\u610f\u76ee\u5f55\uff0c\u4e0b\u6587\u4ee5&lt;ndk&gt;\u6307\u4ee3\u3002\u6ce8\u610f\uff1a\u7531\u4e8e\u540e\u9762cygwin\u4e2d\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u65f6\u4e0d\u652f\u6301\u5e26\u7a7a\u683c\u7684\u8def\u5f84\uff0c\u6240\u4ee5\u5efa\u8bae\u5c06\u5176\u89e3\u538b\u5230\u67d0\u4e2a\u76d8\u7b26\u7684\u6839\u76ee\u5f55\u4e0b\uff0c\u6bd4\u5982d:android-ndk-r7b\uff1b \u8bbe\u7f6eWindows\u7684\u73af\u5883\u53d8\u91cf\u3002\u4e3b\u8981\u662f\u5c06NDK\u7684\u8def\u5f84\u6dfb\u52a0\u5230PATH\u4e2d\u53bb\uff0c\u65b9\u4fbf\u5728\u4efb\u4f55\u4f4d\u7f6e\u8c03\u7528ndk-build\u547d\u4ee4\u3002\u8be6\u7ec6\u64cd\u4f5c\u4e0d\u518d\u8d58\u8ff0\u3002\u6b64\u6b65\u9aa4\u53ea\u662f\u4e3acmd\u63d0\u4f9b\u4e86\u4fbf\u5229\uff1b \u7531\u4e8eNDK\u9700\u6c42\u4e2d\u8bf4\u660e\uff0c\u5fc5\u987b\u7528\u5230GNU Make\u547d\u4ee4\uff0c\u6240\u4ee5\u5728Windows\u73af\u5883\u4e0a\u8fd8\u9700\u8981\u63d0\u524d\u5b89\u88c5Cygwin\u3002\u8fd9\u662f\u5728Windows\u4e0a\u6a21\u62dfLinux\u73af\u5883\u7684\u5de5\u5177\u3002\u5b89\u88c5\u6b65\u9aa4\u53c2\u8003\u6b64\u8d34\uff1aWindows\u73af\u5883\u4e0bAndroid NDK\u73af\u5883\u642d\u5efa\u3002\u6ce8\u610f\u5728cygwin\u7684linux\u73af\u5883\u4e0b\uff0c\u914d\u7f6e$NDK\u73af\u5883\u53d8\u91cf\uff0c\u65b9\u4fbf\u5728\u4efb\u4f55\u5730\u65b9\u8c03\u7528ndk-build\u7f16\u8bd1\u547d\u4ee4\u3002\u6211\u5728\u5b89\u88c5Cygwin\u65f6\uff0c\u53ea\u989d\u5916\u52fe\u9009\u4e86Devel\u5e93\u3002 \u3000\u3000\u5b8c\u6210\u8fd9\u4e2a\u6b65\u9aa4\u540e\uff0c\u53ef\u5c1d\u8bd5\u7f16\u8bd1\u8fd0\u884cNDK\u4e2d\u81ea\u5e26\u7684hello-jni\u4f8b\u5b50\uff0c\u9a8c\u8bc1NDK\u7f16\u8bd1\u73af\u5883\u5df2\u7ecf\u642d\u597d\u3002\u5177\u4f53\u6b65\u9aa4\u53c2\u89c1google\u7684\u6587\u6863\u3002\u53ef\u4ee5\u53d1\u73b0\uff0cnative\u4ee3\u7801\u9700\u8981\u653e\u5728\u4e0esrc\u540c\u7ea7\u7684jni\u76ee\u5f55\u4e0b\uff0c\u8be5\u76ee\u5f55\u4e0b\u5fc5\u987b\u81f3\u5c11\u6709Android.mk\u6587\u4ef6\uff0c\u5411NDK\u7cfb\u7edf\u63cf\u8ff0\u6e90\u6587\u4ef6\uff1b\u7f16\u8bd1\u65f6\u9700\u8981\u5728\u5de5\u7a0b\u7684\u6839\u76ee\u5f55\u4e0b\u8fd0&lt;ndk&gt;\/ndk-build\u547d\u4ee4\uff1b\u5229\u7528NDK\u7f16\u8bd1\u540e\uff0cAndroid\u5de5\u7a0b\u6587\u4ef6\u5939\u4e2d\u4f1a\u591a\u51falibs\u76ee\u5f55\uff0c\u91cc\u9762\u4f1a\u751f\u6210lib&lt;something&gt;.so\u5171\u4eab\u5e93\uff0c\u8fd9\u5c31\u662f\u6211\u4eec\u8981\u7528\u5230\u7c7b\u5e93\uff0c\u8be5\u6587\u4ef6\u4e5f\u4f1a\u4e00\u5e76\u6253\u5305\u5230apk\u6587\u4ef6\u4e2d\u53bb\u3002\u66f4\u591a\u7684ndk\u77e5\u8bc6\u8bf7\u53c2\u8003&lt;ndk&gt;\/documentation.html\u6587\u4ef6\uff0c\u975e\u5e38\u8be6\u5c3d\u3002\u6ce8\uff1aJNI\u76f8\u5f53\u4e8e.net\u5e73\u53f0\u7684p\/invoke\u3002\u3000\u3000\u63a5\u4e0b\u6765\u5c31\u8981\u6309\u7167Spatialite for Android\u4e0a\u7684\u63d0\u793a\uff0c\u5728cygwin\u73af\u5883\u4e2d\u7f16\u8bd1spatialite\u5e93\u4e86\u3002 \u5728windows\u4e0b\u5229\u7528svn\u5de5\u5177\u5bf9\u6574\u4e2aproject checkout\uff08\u8fd9\u6b21\u4f5c\u8005\u7528\u7684\u662fSpatialite 3.0.1\uff0cPROJ 4.7.0\uff0cgeos 3.2.2\u51e0\u4e2a\u5e93\uff09\u3002\u4f1a\u53d1\u73b0\u6709\u4e24\u4e2a\u5de5\u7a0bspatialite-android\u548cspatialite-android-test\u3002\u6211\u4eec\u4e3b\u8981\u5bf9spatialite-android\u5de5\u7a0b\u8fdb\u884c\u7f16\u8bd1\uff1b \u7531\u4e8espatialite\u7528\u5230\u4e86geos\u548cproj\u4e24\u4e2a\u5e93\uff0c\u6240\u4ee5\u9996\u5148\u9700\u8981\u4e3a\u8be5\u5de5\u7a0b\u4e0b\u8f7d\uff0c\u914d\u7f6e\u4e24\u4e2a\u5e93\u3002\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff0c\u5728cygwin\u73af\u5883\u4e2d\u6267\u884c\uff1a 1: $ cd jni 2: $ wget http:\/\/download.osgeo.org\/geos\/geos-3.2.2.tar.bz2 3: $ tar xvjf geos-3.2.2.tar.bz2 4: $ cd geos-3.2.2 5: $ .\/configure &#8211;build=x86_64-pc-linux-gnu &#8211;host=arm-linux-eabi 6: $ cd .. 7: $ wget ftp:\/\/ftp.remotesensing.org\/proj\/proj-4.7.0.tar.gz 8: $ tar xvzf proj-4.7.0.tar.gz 9: $ cd proj-4.7.0 10: $ .\/configure &#8211;build=x86_64-pc-linux-gnu &hellip; <a href=\"https:\/\/blog.newnaw.com\/?p=1012\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">\u5728Android\u4e0a\u5229\u7528NDK\u7f16\u8bd1\u5e76\u4f7f\u7528Spatialite\u5e93\uff08Windows\u73af\u5883\uff09<\/span> <span class=\"meta-nav\">&raquo;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[18],"_links":{"self":[{"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=\/wp\/v2\/posts\/1012"}],"collection":[{"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1012"}],"version-history":[{"count":0,"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=\/wp\/v2\/posts\/1012\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1012"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1012"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1012"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}