./compile-ijk.sh all? ?后报错:Check that /libijkffmpeg.so exists? or that its path is correct?
Android NDK: ERROR:/Users/hins/tools/ijkplayer/android/ijkplayer/ijkplayer-arm64/src/main/jni/ffmpeg/Android.mk:ijkffmpeg: LOCAL_SRC_FILES points to a missing file ? ?
Android NDK: Check that /libijkffmpeg.so exists? or that its path is correct? ?
/Users/hins/Library/Android/sdk/ndk/21.4.7075529/build/core/prebuilt-library.mk:45: *** Android NDK: Aborting? ? .? Stop.
解决方法:原因是没有编译ffmpeg,cd到contrib那个目录下 ./compile-ffmpeg.sh all, 然后就开始编译ffmpeg了,这个比较耗时,编译完成后再回退到android目录,编译ijkplayer的so文件就可以了。
./compile-ffmpeg.sh all报错:You need the NDKr10e or later
build on Darwin arm64
ANDROID_NDK=/Users/hins/Library/Android/sdk/ndk/21.4.7075529
IJK_NDK_REL=21.4.7075529
You need the NDKr10e or later
解决方法:采用r10e的,下载地址:https://developer.android.google.cn/ndk/downloads/older_releases
|