This repository has been archived by the owner on Jan 6, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 722
android.sh fails with NDK r26 or above #1076
Comments
My ffmpeg build works fine with latest NDK r27 and ffmpeg-kit development branch:
Makefile is available here: https://github.com/juha-h/libbaresip-android (video branch). |
You probably don't see the second problem as you are using --skip-ffmpeg-kit |
srcejon writes:
You probably don't see the second problem as you are using
--skip-ffmpeg-kit
Correct, I skip it, since I only use the libs.
|
I enabled ffmpeg-kit and then the build failed:
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
android.sh fails with NDK r26 or above.
Error in build.log is:
It seems to be caused by the following lines in android/jni/Android.mk:
If I comment that out, then it builds OK. (That may break builds with older NDKs - r25 seems ok without it)
Next problem is:
Presumably this can be fixed with:
+++ b/android/ffmpeg-kit-android-lib/src/main/cpp/fftools_ffmpeg_mux_init.c
@@ -284,9 +284,9 @@ static int enc_stats_init(OutputStream *ost, EncStats *es, int pre,
static const struct {
enum EncStatsType type;
const char *str;
- int pre_only:1;
- int post_only:1;
- int need_input_data:1;
+ unsigned int pre_only:1;
+ unsigned int post_only:1;
+ unsigned int need_input_data:1;
Environment
Android
arm64-v8a
,main
,r26d
or28.0.12674087
The text was updated successfully, but these errors were encountered: