Open pengfalin opened 4 years ago
This project isn't buildable as such directly with the android NDK. If you really want to, it should be fairly straightforward to comment out a few android specific ifdef blocks (they contain code that only build in the android platform codebase, not with the NDK).
There's a couple reasons for not actively supporting building for android:
Thanks, I want to use ffmpeg cross compilation, and link fdk-aac and x264. I hope to use JNI development to write my own C + + code. I finally used version 2.0.0 and successfully linked to ffmpeg. I will try to compile version 2.0.1 when I have time.
I got one step further while experimenting with the mobile-ffmpeg project:
This fixed the error message above.
Now it fails on following:
lib/libfdk-aac.a(lpp_tran.o):lpp_tran.cpp:function lppTransposer(SBR_LPP_TRANS*, QMF_SCALE_FACTOR*, long**, long*, long**, int, int, int, int, int, int, int, INVF_MODE*, INVF_MODE*): error: undefined reference to '__android_log_error_write'
The missing file is here, download and patch it:
curl "https://android.googlesource.com/platform/system/bt/+/master/linux_include/log/log.h?format=TEXT" | base64 --decode | sed 's/OS_GENERIC/__ANDROID__/' >libSBRdec/include/log/log.h
patch this script fix it.
dumy missing log.h, ignore function impl.
mkdir -p libSBRdec/include/log/
echo "void android_errorWriteLog(int i, const char *string){}" > libSBRdec/include/log/log.h
您好,你的邮件我已收到,谢谢你对我工作的支持
该项目不能直接使用 android NDK 构建。如果你真的想要,注释掉一些 android 特定的 ifdef 块应该相当简单(它们包含仅在 android 平台代码库中构建的代码,而不是 NDK)。
2.0.1 fail
您好,你的邮件我已收到,谢谢你对我工作的支持
您好,你的邮件我已收到,谢谢你对我工作的支持
patch this script fix it.
dumy missing log.h, ignore function impl.
mkdir -p libSBRdec/include/log/ echo "void android_errorWriteLog(int i, const char *string){}" > libSBRdec/include/log/log.h
This is the right solution!
NDK version:14 lib-aac version:2.0.1
libSBRdec/src/lpp_tran.cpp:122:21: fatal error: log/log.h: No such file or directory
include "log/log.h"