{"id":685,"date":"2015-12-03T18:24:09","date_gmt":"2015-12-03T09:24:09","guid":{"rendered":"http:\/\/www.chihayafuru.jp\/tech\/?p=685"},"modified":"2017-02-13T14:23:15","modified_gmt":"2017-02-13T05:23:15","slug":"ndk%e3%81%a7%e3%83%87%e3%83%90%e3%83%83%e3%82%b0%e3%83%ad%e3%82%b0%e5%87%ba%e5%8a%9b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/685","title":{"rendered":"NDK\u3067\u30c7\u30d0\u30c3\u30b0\u30ed\u30b0\u51fa\u529b\u65b9\u6cd5"},"content":{"rendered":"<h3>\u30ea\u30f3\u30af\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u8ffd\u52a0<\/h3>\n<p>Android.mk\u306b\u4ee5\u4e0b\u306e\u884c\u3092\u8ffd\u52a0\u3059\u308b<\/p>\n<pre class=\"lang:default decode:true \" >LOCAL_LDLIBS := -llog<\/pre>\n<p>&nbsp;<\/p>\n<h3>\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u6587\u3092\u57cb\u3081\u8fbc\u3080<\/h3>\n<pre class=\"lang:default decode:true \" >#include <android\/log.h><\/pre>\n<p>&nbsp;<\/p>\n<h3>\u30ed\u30b0\u51fa\u529b\u95a2\u6570\u3092\u57cb\u3081\u8fbc\u3080<\/h3>\n<pre class=\"lang:default decode:true \" >__android_log_write(ANDROID_LOG_DEBUG, \"MY_APP\", \"DEBUG POINT 1\");<\/pre>\n<pre class=\"lang:default decode:true \" >__android_log_print(ANDROID_LOG_DEBUG, \"MY_APP\", \"DEBUG VALUE %d\", i);<\/pre>\n<p>&nbsp;<\/p>\n<h3>NDK\u306e\u518d\u30d3\u30eb\u30c9<\/h3>\n<pre class=\"lang:sh highlight:0 decode:false \" >$ ~\/ndk\/android-ndk-rxx\/ndk-build clean<\/pre>\n<pre class=\"lang:sh highlight:0 decode:false \" >$ ~\/ndk\/android-ndk-rxx\/ndk-build NDK_BUILD=1<\/pre>\n<p>&nbsp;<\/p>\n<h3>\u30ed\u30b0\u51fa\u529b\u306e\u78ba\u8a8d<\/h3>\n<p>&quot;logcat&quot; \u3067\u307f\u308b\u3002<\/p>\n<h4>Android Studio 2.2.3\u306e\u3068\u304d<\/h4>\n<p>View &#8658; Tool Windows &#8658; Android Monitor &#8984; + 6<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30ea\u30f3\u30af\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u8ffd\u52a0 Android.mk\u306b\u4ee5\u4e0b\u306e\u884c\u3092\u8ffd\u52a0\u3059\u308b LOCAL_LDLIBS := -llog &nbsp; \u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u6587\u3092\u57cb\u3081\u8fbc\u3080 #include &nbsp; \u30ed\u30b0\u51fa\u529b\u95a2\u6570\u3092\u57cb\u3081\u8fbc\u3080 __andro [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[17],"class_list":["post-685","post","type-post","status-publish","format-standard","hentry","category-memo","tag-android"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/685","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=685"}],"version-history":[{"count":9,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/685\/revisions"}],"predecessor-version":[{"id":1327,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/685\/revisions\/1327"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=685"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=685"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=685"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}