{"id":313,"date":"2012-02-09T01:28:04","date_gmt":"2012-02-08T16:28:04","guid":{"rendered":"http:\/\/www.typea.info\/blog\/index.php\/2012\/02\/09\/android_ndk\/"},"modified":"2012-02-09T01:28:04","modified_gmt":"2012-02-08T16:28:04","slug":"android_ndk","status":"publish","type":"post","link":"https:\/\/www.typea.info\/blog\/index.php\/2012\/02\/09\/android_ndk\/","title":{"rendered":"Android\u30a2\u30d7\u30ea\u3067\u30cd\u30a4\u30c6\u30a3\u30d6\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u5229\u7528\u3059\u308b\u305f\u3081 NDK \u3092\u8a2d\u5b9a\u3059\u308b"},"content":{"rendered":"<p>\u3061\u3087\u3063\u3068\u3084\u308a\u305f\u3044\u3053\u3068\u304c\u3042\u308b\u306e\u3067\u3001Android NDK \u74b0\u5883\u3092\u6e96\u5099\u3057\u3088\u3046\u3068\u601d\u3046\u3002<\/p>\n<p><a href=\"http:\/\/developer.android.com\/sdk\/ndk\/overview.html\">Android NDK \u3068\u306f<\/a>\u3001Andoroid \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u30cd\u30a4\u30c6\u30a3\u30d6\u30b3\u30fc\u30c9\u3092\u5229\u7528\u3057\u3066\u4f5c\u6210\u3055\u308c\u305f\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u57cb\u3081\u8fbc\u3080\u3053\u3068\u3092\u53ef\u80fd\u306b\u3059\u308b\u30c4\u30fc\u30eb\u30bb\u30c3\u30c8\u3002Android \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306fDalvik\u304b\u7dcf\u30de\u30b7\u30fc\u30f3\u3067\u5b9f\u884c\u3055\u308c\u308b\u3002NDK\u306f C \u3084 C++ \u306a\u3069\u306e\u30cd\u30a4\u30c6\u30a3\u30d6\u30b3\u30fc\u30c9\u3092\u4f7f\u3063\u305f\u4e00\u90e8\u3092\u5b9f\u88c5\u3059\u308b\u3053\u3068\u3092\u53ef\u80fd\u306b\u3059\u308b\u3002<\/p>\n<p>\u3044\u3064\u3082\u306e\u3088\u3046\u306b\u3001<a href=\"http:\/\/www.amazon.co.jp\/gp\/product\/487311456X\/ref=as_li_ss_tl?ie=UTF8&amp;tag=typea09-22&amp;linkCode=as2&amp;camp=247&amp;creative=7399&amp;creativeASIN=487311456X\">Android Hacks \u2015\u30d7\u30ed\u304c\u6559\u3048\u308b\u30c6\u30af\u30cb\u30c3\u30af &amp; \u30c4\u30fc\u30eb<\/a><img loading=\"lazy\" decoding=\"async\" style=\"border-bottom-style: none !important; border-right-style: none !important; margin: 0px; border-top-style: none !important; border-left-style: none !important\" border=\"0\" alt=\"\" src=\"http:\/\/www.assoc-amazon.jp\/e\/ir?t=typea09-22&amp;l=as2&amp;o=9&amp;a=487311456X\" width=\"1\" height=\"1\" \/> \u3092\u898b\u306a\u304c\u3089\u3001\u3061\u3087\u3061\u3087\u3044\u306e\u3061\u3087\u3044\u3068\u3002\u3002\u3002<\/p>\n<p> <a href=\"http:\/\/www.amazon.co.jp\/gp\/product\/487311456X\/ref=as_li_ss_il?ie=UTF8&amp;tag=typea09-22&amp;linkCode=as2&amp;camp=247&amp;creative=7399&amp;creativeASIN=487311456X\"><img decoding=\"async\" border=\"0\" src=\"http:\/\/ws.assoc-amazon.jp\/widgets\/q?_encoding=UTF8&amp;Format=_SL160_&amp;ASIN=487311456X&amp;MarketPlace=JP&amp;ID=AsinImage&amp;WS=1&amp;tag=typea09-22&amp;ServiceVersion=20070822\" \/><\/a><img loading=\"lazy\" decoding=\"async\" style=\"border-bottom-style: none !important; border-right-style: none !important; margin: 0px; border-top-style: none !important; border-left-style: none !important\" border=\"0\" alt=\"\" src=\"http:\/\/www.assoc-amazon.jp\/e\/ir?t=typea09-22&amp;l=as2&amp;o=9&amp;a=487311456X\" width=\"1\" height=\"1\" \/>   <\/p>\n<p>\u306f\u884c\u304b\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u306f\u307e\u3063\u305f\u70b9\u306a\u3069\u306e\u624b\u9806\u3092\u30e1\u30e2\u3057\u3066\u304a\u304f\u3002<\/p>\n<h2>1.Cygwin\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>Windows \u74b0\u5883\u3067NDK\u3092\u5229\u7528\u3059\u308b\u306b\u306f\u3001<a href=\"http:\/\/cygwin.com\/install.html\">Cygwin<\/a> \u304c\u5fc5\u8981\u3002<\/p>\n<p><a href=\"http:\/\/cygwin.com\/install.html\">http:\/\/cygwin.com\/install.html<\/a><\/p>\n<p>\u4e0a\u8a18\u30b5\u30a4\u30c8\u304b\u3089\u3001Setup.exe \u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304d\u3066\u3001\u30a6\u30a3\u30b6\u30fc\u30c9\u306b\u5f93\u3044\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u9014\u4e2d\u3067\u3001\u4ee5\u4e0b\u306e\u69d8\u306a\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u9078\u629e\u3059\u308b\u753b\u9762\u306b\u306a\u308b\u306e\u3067\u3001\u30ab\u30c6\u30b4\u30ea\u30fc\u304b\u3089\u3001Devel \u3092\u9078\u629e\u3057\u3066\u5c55\u958b\u3057\u3001<\/p>\n<ul>\n<li>gcc <\/li>\n<li>make <\/li>\n<\/ul>\n<p>\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidNDK_1495\/cygwin_inst01.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px\" title=\"cygwin_inst01\" border=\"0\" alt=\"cygwin_inst01\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidNDK_1495\/cygwin_inst01_thumb.jpg\" width=\"355\" height=\"261\" \/><\/a> <\/p>\n<p>\u8f9e\u66f8\u9806\u306b\u305a\u30fc\u3063\u3068\u307f\u3066\u3044\u304f\u3068\u3001gcc \u304c\u5b58\u5728\u3059\u308b\u306e\u3067\u3001Skip \u3068\u3044\u3046\u30a2\u30a4\u30b3\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5bfe\u8c61\u3068\u306a\u308b\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidNDK_1495\/cygwin_inst02.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px\" title=\"cygwin_inst02\" border=\"0\" alt=\"cygwin_inst02\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidNDK_1495\/cygwin_inst02_thumb.jpg\" width=\"352\" height=\"142\" \/><\/a> <\/p>\n<p>\u540c\u69d8\u306b\u3001make \u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidNDK_1495\/cygwin_inst03.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px\" title=\"cygwin_inst03\" border=\"0\" alt=\"cygwin_inst03\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidNDK_1495\/cygwin_inst03_thumb.jpg\" width=\"350\" height=\"59\" \/><\/a> <\/p>\n<h2>2.Android NDK \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u4ee5\u4e0b\u304b\u3089\u3001Wubdiws\u7248\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u89e3\u51cd\u3002<\/p>\n<p><a href=\"http:\/\/developer.android.com\/sdk\/ndk\/index.html\">http:\/\/developer.android.com\/sdk\/ndk\/index.html<\/a><\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidNDK_1495\/android_ndk01.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px\" title=\"android_ndk01\" border=\"0\" alt=\"android_ndk01\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidNDK_1495\/android_ndk01_thumb.jpg\" width=\"377\" height=\"226\" \/><\/a> <\/p>\n<p>\u7f6e\u304d\u5834\u6240\u306f\u3001\u3069\u3053\u3067\u3082\u826f\u3044\u3088\u3046\u3060\u304c\u3001<a href=\"http:\/\/www.amazon.co.jp\/gp\/product\/487311456X\/ref=as_li_ss_tl?ie=UTF8&amp;tag=typea09-22&amp;linkCode=as2&amp;camp=247&amp;creative=7399&amp;creativeASIN=487311456X\">Android Hacks \u2015\u30d7\u30ed\u304c\u6559\u3048\u308b\u30c6\u30af\u30cb\u30c3\u30af &amp; \u30c4\u30fc\u30eb<\/a> \u306b\u306a\u3089\u3044\u3001C:\\cygwin\\home\\{\u30e6\u30fc\u30b6\u30fc\u540d}\\android-ndk-r7 \u306b\u914d\u7f6e\u3059\u308b<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidNDK_1495\/android_ndk02.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px\" title=\"android_ndk02\" border=\"0\" alt=\"android_ndk02\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidNDK_1495\/android_ndk02_thumb.jpg\" width=\"377\" height=\"178\" \/><\/a> <\/p>\n<h2>3.\u30b5\u30f3\u30d7\u30eb\u306e\u5b9f\u884c<\/h2>\n<p><a href=\"http:\/\/developer.android.com\/sdk\/ndk\/overview.html#samples\">http:\/\/developer.android.com\/sdk\/ndk\/overview.html#samples<\/a><\/p>\n<p>\u89e3\u51cd\u3001\u914d\u7f6e\u3057\u305fNDK\u30d5\u30a9\u30eb\u30c0\u76f4\u4e0b\u306e\u3001samples \u30d5\u30a9\u30eb\u30c0\u306e\u4e0b\u306b\u3001\u3044\u304f\u3064\u304b\u306e\u30b5\u30f3\u30d7\u30eb\u304c\u3042\u308b\u304c\u3001\u305d\u308c\u305e\u308c\u3001Android\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u69cb\u9020\u3092\u6301\u3063\u3066\u3044\u308b\u3002<\/p>\n<ul>\n<li>jni \u30c7\u30a3\u30ec\u30af\u30c8\u30ea \uff1a Android.mk \u30d5\u30a1\u30a4\u30eb\u3068\u30cd\u30a4\u30c6\u30a3\u30d6\u30b3\u30fc\u30c9\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u542b\u3093\u3067\u3044\u308b <\/li>\n<li>tests \u30c7\u30a3\u30ec\u30af\u30c8\u30ea : \u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u542b\u3093\u3067\u3044\u308b <\/li>\n<\/ul>\n<h3>3.1 \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4f5c\u6210<\/h3>\n<p>\u4e00\u756a\u521d\u6b69\u7684\u305d\u3046\u306a\u3001helo-jni \u3092\u9078\u3076\u3002<\/p>\n<ul>\n<li>Eclipse \u3092\u7acb\u3061\u4e0a\u3052\u3066(<a href=\"http:\/\/typea.info\/blg\/glob\/2010\/12\/android-2-1.html\">\u3082\u3061\u308d\u3093Android\u74b0\u5883\u69cb\u7bc9\u6e08\u307f<\/a>)\u3001\u65b0\u898f Android \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304b\u3089\u3001Create project from existing source \u306b\u30c1\u30a7\u30c3\u30af\u3092ON\u306b\u3059\u308b\u3002 <\/li>\n<li>Location \u306b\u3001\u4e0a\u8a18 samples\/helo-jni \u306e\u4f4d\u7f6e\u3092\u6307\u5b9a\u3002 <\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidNDK_1495\/ndk_eclipse01.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px\" title=\"ndk_eclipse01\" border=\"0\" alt=\"ndk_eclipse01\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidNDK_1495\/ndk_eclipse01_thumb.jpg\" width=\"329\" height=\"238\" \/><\/a> <\/p>\n<h3>3.2 \u30d3\u30eb\u30c9\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210<\/h3>\n<p>\u5bfe\u8c61\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u307e\u3067\u3044\u3063\u3066\u3001<\/p>\n<pre>android update project -p . \u2013s<\/pre>\n<pre>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c<\/pre>\n<pre>\u81ea\u5206\u306e\u74b0\u5883\u3060\u3068\u3001\u4ee5\u4e0b\u3002<\/pre>\n<pre class=\"prettyprint linenums\">C:\\&gt;cd \r\nC:\\cygwin\\home\\piroto\\android-ndk-r7\\samples\\hello-jni\r\n\r\nC:\\cygwin\\home\\piroto\\android-ndk-r7\\samples\\hello-jni&gt;android update project -p . -s\r\nUpdated local.properties\r\nAdded file C:\\cygwin\\home\\piroto\\android-ndk-r7\\samples\\hello-jni\\build.xml\r\nAdded file C:\\cygwin\\home\\piroto\\android-ndk-r7\\samples\\hello-jni\\proguard.cfg\r\nError: The project either has no target set or the target is invalid.\r\nPlease provide a --target to the 'android.bat update' command.<\/pre>\n<p>Error\uff1f\uff1f\uff1f \u4e00\u3064\u76ee\u306e\u306f\u307e\u308a\u30dd\u30a4\u30f3\u30c8\u3002<\/p>\n<p>\u78ba\u304b\u306b build.xml \u306f\u751f\u6210\u3055\u308c\u308b\u306e\u3060\u304c\u3001<a href=\"http:\/\/www.jajakarta.org\/ant\/ant-1.5\/docs\/ant-1.5\/j\/docs\/manual\/using.html\">Ant \u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u30bf\u30fc\u30b2\u30c3\u30c8<\/a> \u304c\u5b58\u5728\u3057\u3066\u3044\u306a\u3044\uff1f<\/p>\n<p>\u3053\u3053\u306f\u3001\u751f\u6210\u3055\u308c\u305f build.xml \u306e<\/p>\n<pre class=\"prettyprint linenums\">&lt;project name=&quot;HelloJni&quot; default=&quot;help&quot;&gt;<\/pre>\n<p>\u3053\u308c\u3092<\/p>\n<pre class=\"prettyprint linenums\">&lt;project name=&quot;HelloJni&quot;&gt;<\/pre>\n<p>\u3053\u3046\u4fee\u6b63(default=&quot;help&quot;\u3092\u524a\u9664)\u3002<\/p>\n<p>&#160;<\/p>\n<h3>3.3 \u74b0\u5883\u5909\u6570\u306e\u8a2d\u5b9a<\/h3>\n<p>.bash_profile&#160; \u3092\u7de8\u96c6\u3059\u308b\u3002cygwin \u3067\u30a8\u30c7\u30a3\u30bf\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u306a\u3051\u308c\u3070\u3001C:\\cygwin\\home\\[\u30e6\u30fc\u30b6\u30fc\u540d]\\.bash_profile \u306b\u4ee5\u4e0b\u306e2\u884c\u3092\u8ffd\u8a18\u3002<\/p>\n<pre class=\"prettyprint linenums\">$ vim ~\/.bash_profile\r\n\r\nexport NDK_ROOT=\/cygdrive\/c\/cygwin\/home\/piroto\/android-ndk-r7\r\nPATH=$PATH:$NDK_ROOT<\/pre>\n<p>\u3067\u3001\u306f\u307e\u308a\u30dd\u30a4\u30f3\u30c82<\/p>\n<p>\u6700\u521d\u3001\u4f55\u3082\u8003\u3048\u305a\u306b\u3001NDK_HOME \u3068\u304b\u3057\u3066\u3044\u305f\u304c\u3001NDK_ROOT \u74b0\u5883\u5909\u6570\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u3068\u3001<\/p>\n<p>\u4ee5\u4e0b\u306e\u69d8\u306b\u3001awk \u304c\u898b\u3064\u304b\u3089\u306a\u3044\u3068\u3044\u3046\u30a8\u30e9\u30fc\u306b\u306a\u308b\u3002\u307e\u305f\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u672b\u5c3e\u306e \/ \u3082\u4e0d\u8981\u3002<\/p>\n<pre class=\"prettyprint linenums\">$ cd  \/cygdrive\/c\/cygwin\/home\/piroto\/android-ndk-r7\/samples\/hello-jni\r\n\r\npiroto@eisai \/cygdrive\/c\/cygwin\/home\/piroto\/android-ndk-r7\/samples\/hello-jni\r\n$ ndk-build\r\nC:\\cygwin\\home\\piroto\\android-ndk-r7\\prebuilt\\windows\\bin\\awk.exe: can't open file \/cygdrive\/c\/cygwi\r\nn\/home\/piroto\/android-ndk-r7\/build\/awk\/check-awk.awk\r\n source line number 1 source file \/cygdrive\/c\/cygwin\/home\/piroto\/android-ndk-r7\/build\/awk\/check-awk.\r\nawk\r\n context is\r\n         &gt;&gt;&gt;  &lt;&lt;&lt;\r\nAndroid NDK: Host 'awk' tool is outdated. Please define HOST_AWK to point to Gawk or Nawk !\r\n\/cygdrive\/c\/cygwin\/home\/piroto\/android-ndk-r7\/build\/core\/init.mk:258: *** Android NDK: Aborting.\r\n.  Stop.<\/pre>\n<p>&#160;<\/p>\n<h3>3.4 AWK \u3092\u5dee\u3057\u66ff\u3048\u308b<\/h3>\n<p>\u3053\u3053\u307e\u3067\u3067\u3001ndk-build \u3092\u884c\u3046\u3082\u3001check-awk.awk \u3067\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u3066\u3044\u308b\u3088\u3046\u3060\u3002\u306f\u307e\u308a\u30dd\u30a4\u30f3\u30c83\u3002<\/p>\n<pre class=\"prettyprint linenums\">$ pwd\r\n\/cygdrive\/c\/cygwin\/home\/piroto\/android-ndk-r7\/build\/awk\r\n\r\npiroto@eisai \/cygdrive\/c\/cygwin\/home\/piroto\/android-ndk-r7\/build\/awk\r\n$ awk check-awk.awk\r\nawk: cmd. line:1: check-awk.awk\r\nawk: cmd. line:1:          ^ syntax error<\/pre>\n<p>&#160;<\/p>\n<p><a href=\"http:\/\/d.hatena.ne.jp\/yohpapa\/20111113\/1321198570\">\u5148\u4eba\u306e\u77e5\u6075<\/a>\u3092\u53c2\u8003\u306b\u3059\u308b\u3068\u3001\u3069\u3046\u3082\u3001AndroidNDK\u306b\u542b\u307e\u308c\u3066\u3044\u308b awk \u3067\u306f\u554f\u984c\u3042\u308a\uff1f\u3068\u308a\u3042\u3048\u305a\u3001AndroidNDK\u306b\u542b\u307e\u308c\u3066\u3044\u308b awk \u3092 _awk \u306b\u30ea\u30cd\u30fc\u30e0\u3057\u3001\/usr\/bin\/gawk \u306e\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3068\u3057\u3066 awk \u3092\u4f5c\u6210\u3002<\/p>\n<pre class=\"prettyprint linenums\">piroto@eisai \/cygdrive\/c\/cygwin\/home\/piroto\/android-ndk-r7\/prebuilt\/windows\/bin\r\n$ mv awk.exe _awk.exe\r\n\r\npiroto@eisai \/cygdrive\/c\/cygwin\/home\/piroto\/android-ndk-r7\/prebuilt\/windows\/bin\r\n$ ln -s \/usr\/bin\/gawk .\/awk.exe<\/pre>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidNDK_1495\/ndk_eclipse02.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px\" title=\"ndk_eclipse02\" border=\"0\" alt=\"ndk_eclipse02\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidNDK_1495\/ndk_eclipse02_thumb.jpg\" width=\"343\" height=\"182\" \/><\/a> <\/p>\n<p>check-awk.awk \u3092\u307f\u308b\u3068\u3001<\/p>\n<pre class=\"prettyprint linenums\"># This script is used to check that a given awk executable\r\n# implements the match() and substr() functions appropriately.\r\n#\r\n# These were introduced in nawk\/gawk, but the original awk\r\n# does not have them.<\/pre>\n<p>nawk\/gawk \u3067\u5c0e\u5165\u3055\u308c\u305f\u3001match(),substr() \u304c\u5b9f\u88c5\u3055\u308c\u3066\u3044\u308b\u304b\u30c1\u30a7\u30c3\u30af\u3057\u3066\u3044\u308b\u3063\u307d\u3044\u3002<\/p>\n<p>\u30aa\u30ea\u30b8\u30ca\u30eb\u306e awk \u306b\u306f\u542b\u307e\u308c\u3066\u307e\u305b\u3093\u3088\u3068\u3002<\/p>\n<p>\u306a\u3093\u3058\u3083\u305d\u308a\u3083\u3002<\/p>\n<h3>3.5 \u3088\u3046\u3084\u304f\u30d3\u30eb\u30c9<\/h3>\n<p>\u6c17\u3092\u53d6\u308a\u76f4\u3057\u3066\u3001ndk-build \u3092 cygwin \u304b\u3089\u5b9f\u884c\u3002<\/p>\n<pre class=\"prettyprint linenums\">piroto@eisai \/cygdrive\/c\/cygwin\/home\/piroto\/android-ndk-r7\/samples\/hello-jni\r\n$ ndk-build\r\nGdbserver      : [arm-linux-androideabi-4.4.3] libs\/armeabi\/gdbserver\r\nGdbsetup       : libs\/armeabi\/gdb.setup\r\nCompile thumb  : hello-jni &lt;= hello-jni.c\r\nSharedLibrary  : libhello-jni.so\r\nInstall        : libhello-jni.so =&gt; libs\/armeabi\/libhello-jni.so<\/pre>\n<p>\u6210\u529f\u3057\u305f!<\/p>\n<h3>3.6 \u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u3067\u5b9f\u884c<\/h3>\n<p>\u304a\u30fc Hello \u306a\u3093\u3061\u3083\u3089\u3068\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002\u6210\u529f\u3067\u3057\u3087\u3046\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidNDK_1495\/ndk_eclipse03.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px\" title=\"ndk_eclipse03\" border=\"0\" alt=\"ndk_eclipse03\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidNDK_1495\/ndk_eclipse03_thumb.jpg\" width=\"515\" height=\"395\" \/><\/a> <\/p>\n<p>\u3075\u3045\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3061\u3087\u3063\u3068\u3084\u308a\u305f\u3044\u3053\u3068\u304c\u3042\u308b\u306e\u3067\u3001Android NDK \u74b0\u5883\u3092\u6e96\u5099\u3057\u3088\u3046\u3068\u601d\u3046\u3002 Android NDK \u3068\u306f\u3001Andoroid \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u30cd\u30a4\u30c6\u30a3\u30d6\u30b3\u30fc\u30c9\u3092\u5229\u7528\u3057\u3066\u4f5c\u6210\u3055\u308c\u305f\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u57cb\u3081\u8fbc\u3080\u3053\u3068\u3092\u53ef\u80fd\u306b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","footnotes":""},"categories":[39],"tags":[],"class_list":["post-313","post","type-post","status-publish","format-standard","hentry","category-android"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/313","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=313"}],"version-history":[{"count":0,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/313\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=313"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=313"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}