{"id":2176,"date":"2023-05-01T10:36:51","date_gmt":"2023-05-01T02:36:51","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=2176"},"modified":"2024-01-23T21:49:18","modified_gmt":"2024-01-23T13:49:18","slug":"android-ndk-compilation-lame-issues-summary","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/05\/01\/android-ndk-compilation-lame-issues-summary\/","title":{"rendered":"Android NDK\u7f16\u8bd1lame\u95ee\u9898\u6c47\u603b"},"content":{"rendered":"<p>LAME is a high quality MPEG Audio Layer III (MP3) encoder<\/p>\n<p>Lame\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"http:\/\/lame.sourceforge.net\/\">http:\/\/lame.sourceforge.net\/<\/a><\/p>\n<p><!-- more --><\/p>\n<h3>ieee754_float32_t \u95ee\u9898<\/h3>\n<pre><code>lame-3.100\/libmp3lame\/util.h:570:12: error: unknown type name &#039;ieee754_float32_t&#039;\n    extern ieee754_float32_t fast_log2(ieee754_float32_t x);\n           ^<\/code><\/pre>\n<p>util.h\u4e2d570\u884c\u5c06 <code>extern ieee754_float32_t fast_log2(ieee754_float32_t x);<\/code> \u6539\u4e3a <code>extern float fast_log2(float x);<\/code> \u56e0\u4e3aAndroid\u4e0b\u5e76\u4e0d\u652f\u6301\u8be5\u7c7b\u578b<\/p>\n<pre><code>\/\/extern ieee754_float32_t fast_log2(ieee754_float32_t x);\nextern float fast_log2(float x);<\/code><\/pre>\n<h3>undefined reference to &#8216;index&#8217; \u95ee\u9898<\/h3>\n<pre><code>lame-3.100\/libmp3lame\/bitstream.c:141: error: undefined reference to &#039;bcopy&#039;\nlame-3.100\/libmp3lame\/id3tag.c:1205: error: undefined reference to &#039;index&#039;<\/code><\/pre>\n<p>\u53c2\u8003\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/stackoverflow.com\/questions\/27893149\/android-ndk-for-x86-64-has-no-reference-for-bcopy-and-index\">https:\/\/stackoverflow.com\/questions\/27893149\/android-ndk-for-x86-64-has-no-reference-for-bcopy-and-index<\/a><\/p>\n<p>\u5728Android.mk\u4e2d\u6dfb\u52a0<\/p>\n<pre><code>APP_CFLAGS += -DSTDC_HEADERS<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>LAME is a high quality MPEG Audio Layer III (MP3) encod [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[346],"tags":[557],"class_list":["post-2176","post","type-post","status-publish","format-standard","hentry","category-open-source-compile","tag-lame"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/2176","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=2176"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/2176\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=2176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=2176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=2176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}