From 720edd050e43e029ee01afc50beee897a0dbc87b Mon Sep 17 00:00:00 2001 From: "Sue N. Cooper" Date: Sun, 3 Sep 2023 00:05:17 +0300 Subject: [PATCH] link agains libandroid, fixes #809 --- scripts/function-android.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/function-android.sh b/scripts/function-android.sh index 36415b4..5e87b04 100755 --- a/scripts/function-android.sh +++ b/scripts/function-android.sh @@ -404,9 +404,9 @@ get_common_linked_libraries() { # SUPPORTED ON API LEVEL 24 AND LATER if [[ ${API} -ge 24 ]]; then - echo "-lc -lm -ldl -llog -lcamera2ndk -lmediandk ${COMMON_LIBRARY_PATHS}" + echo "-lc -lm -ldl -llog -landroid -lcamera2ndk -lmediandk ${COMMON_LIBRARY_PATHS}" else - echo "-lc -lm -ldl -llog ${COMMON_LIBRARY_PATHS}" + echo "-lc -lm -ldl -llog -landroid ${COMMON_LIBRARY_PATHS}" echo -e "INFO: Building ffmpeg without native camera API which is not supported on Android API Level ${API}\n" 1>>"${BASEDIR}"/build.log 2>&1 fi ;;