{"id":4529,"date":"2013-09-22T11:12:46","date_gmt":"2013-09-22T03:12:46","guid":{"rendered":"http:\/\/blog.dword1511.info\/?p=4529"},"modified":"2013-09-22T11:20:32","modified_gmt":"2013-09-22T03:20:32","slug":"%e5%85%b3%e4%ba%8e-jniandroid-mk-%e7%9a%84%e6%af%9b%e7%97%85","status":"publish","type":"post","link":"http:\/\/blog.dword1511.info\/?p=4529","title":{"rendered":"\u5173\u4e8e jni\/Android.mk \u7684\u6bdb\u75c5"},"content":{"rendered":"<p>\u540c\u5b66\u4eec\u5728\u5f80 Android \u624b\u673a\u91cc\u704c\u4e00\u4e9b\u539f\u751f ELF \u7a0b\u5e8f\uff08\u5982 netperf \u7b49\u7b49\uff09\u7684\u65f6\u5019\u4f1a\u4e0d\u4f1a\u9047\u5230\u8fd9\u6837\u7684\u7f16\u8bd1\u56f0\u96be\uff1a<\/p>\n<pre>Android NDK: Your APP_BUILD_SCRIPT points to an unknown file: $NDK_PROJECT_PATH\/jni\/Android.mk<\/pre>\n<p>\u800c\u540c\u65f6\u8fd9\u4e2a project \u7684 Android.mk \u5728\u6839\u76ee\u5f55\u4e0b\uff1f<\/p>\n<p><!--more--><\/p>\n<p>\u5176\u5b9e\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u7684\u6b63\u786e\u529e\u6cd5\u662f\u7f16\u8f91 NDK \u76ee\u5f55\u4e0b\u7684 build\/core\/default-application.mk \u6587\u4ef6\uff0c\u5982\u4e0b\uff1a<\/p>\n<pre># Copyright (C) 2010 The Android Open Source Project\r\n#\r\n# Licensed under the Apache License, Version 2.0 (the \"License\");\r\n# you may not use this file except in compliance with the License.\r\n# You may obtain a copy of the License at\r\n#\r\n#      http:\/\/www.apache.org\/licenses\/LICENSE-2.0\r\n#\r\n# Unless required by applicable law or agreed to in writing, software\r\n# distributed under the License is distributed on an \"AS IS\" BASIS,\r\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n# See the License for the specific language governing permissions and\r\n# limitations under the License.\r\n#\r\n\r\n# This is the default Application.mk that is being used for applications\r\n# that don't provide $PROJECT_PATH\/jni\/Application.mk\r\n#\r\nAPP_PROJECT_PATH := $(NDK_PROJECT_PATH)\r\n\r\n# We expect the build script to be located here\r\nAPP_BUILD_SCRIPT := $(APP_PROJECT_PATH)\/jni\/Android.mk<\/pre>\n<p>\u628a\u6700\u540e\u4e00\u884c\u8be5\u6b7b\u7684\u201c jni \u201d\u53bb\u6389\u5c31\u884c\u4e86\u3002<\/p>\n<p>P.S.:\u00a0<a href=\"https:\/\/android.googlesource.com\/\" target=\"_blank\">https:\/\/android.googlesource.com\/<\/a> \u91cc\u9762 platform\/external \u4e0b\u9762\u7684\u4e1c\u897f\u90fd\u8001\u6709\u7528\u4e86<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u540c\u5b66\u4eec\u5728\u5f80 Android \u624b\u673a\u91cc\u704c\u4e00\u4e9b\u539f\u751f ELF \u7a0b\u5e8f\uff08\u5982 netperf \u7b49\u7b49\uff09\u7684\u65f6\u5019\u4f1a\u4e0d\u4f1a\u9047\u5230\u8fd9\u6837\u7684\u7f16 &hellip; <a href=\"http:\/\/blog.dword1511.info\/?p=4529\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u5173\u4e8e jni\/Android.mk \u7684\u6bdb\u75c5<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[14,11],"tags":[],"_links":{"self":[{"href":"http:\/\/blog.dword1511.info\/index.php?rest_route=\/wp\/v2\/posts\/4529"}],"collection":[{"href":"http:\/\/blog.dword1511.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.dword1511.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.dword1511.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.dword1511.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4529"}],"version-history":[{"count":3,"href":"http:\/\/blog.dword1511.info\/index.php?rest_route=\/wp\/v2\/posts\/4529\/revisions"}],"predecessor-version":[{"id":4532,"href":"http:\/\/blog.dword1511.info\/index.php?rest_route=\/wp\/v2\/posts\/4529\/revisions\/4532"}],"wp:attachment":[{"href":"http:\/\/blog.dword1511.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4529"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.dword1511.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4529"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.dword1511.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}