./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
在尝试编译ijkplayer时遇到了错误提示'Check that libijkffmpeg.so exists or that its path is correct'。问题根源在于未编译ffmpeg。解决方案包括:进入contrib目录运行'./compile-ffmpeg.sh all'进行ffmpeg编译,这可能需要较长时间。完成编译后返回android目录继续编译ijkplayer的so文件。若'./compile-ffmpeg.sh all'报错'You need the NDK r10e or later',则需要下载并使用NDK r10e版本进行编译。
696

被折叠的 条评论
为什么被折叠?



