Skip to content

Commit

Permalink
update NDK version to r21.4.7075529 LTS, validated on arm64 target only!
Browse files Browse the repository at this point in the history
  • Loading branch information
xionxiao committed Jul 3, 2021
1 parent 0e30bd2 commit b67fff3
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 12 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ autocmd InsertEnter * match ForbiddenWhitespace /\t\|\s\+\%#\@<!$/
```


- [Android NDK-r14b](https://developer.android.com/ndk/downloads/older_releases)
- [Android NDK-r21e(LTS)](https://developer.android.com/ndk/downloads)
- [Android Studio 4.2.1](https://developer.android.google.cn/studio)
- [Gradle 6.6.1](https://gradle.org/releases)

Expand All @@ -108,13 +108,12 @@ git checkout kantv
# add these lines to your ~/.bash_profile or ~/.profile
# export ANDROID_SDK=<your sdk path>
# ndk-r14b was used in this project
# export ANDROID_NDK=<your ndk path>/android-ndk-r14b
# ndk-r21e was used in this project, if you intall from SDK Manager
# export ANDROID_NDK=<your sdk path>/sdk/ndk/21.4.7075529
# add these line to ./android/ijkplayer/local.properties
sdk.dir=<your sdk path>
ndk.dir=<your ndk path>/android-ndk-r14b
```

Expand Down
7 changes: 4 additions & 3 deletions android/ijkplayer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ allprojects {
}

ext {
compileSdkVersion = 25
buildToolsVersion = "25.0.3"
compileSdkVersion = 28
buildToolsVersion = "28.0.3"

targetSdkVersion = 25
targetSdkVersion = 28
minSdkVersion = 21

versionCode = 000400
versionName = "0.0.4"
Expand Down
2 changes: 1 addition & 1 deletion android/ijkplayer/kantv/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ android {
}
defaultConfig {
applicationId "tv.danmaku.ijk.kantv"
minSdkVersion 9
minSdkVersion 21
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode rootProject.ext.versionCode
versionName rootProject.ext.versionName
Expand Down
4 changes: 2 additions & 2 deletions build-all-native-libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ function setup_env()
export HOME_PATH=$(env | grep ^HOME= | cut -c 6-)
export PROJECT_NAME=ijkplayer
export PROJECT_ROOT_PATH=$(pwd)
#ndk-r14b must be used in this project but I guess clang mightbe ok
export ANDROID_NDK=${ANDROID_NDK:-/opt/android-ndk-r14b}
# ndk must be used in this project
export ANDROID_NDK=${ANDROID_NDK:-/opt/android-ndk-r21.4.7075529}
export XCODE_SELECT=/usr/bin/xcode-select
#TODO:better idea to get real cpu counts in macOS
export HOST_CPU_COUNTS=4
Expand Down
1 change: 0 additions & 1 deletion ijkmedia/ijkplayer/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ include $(CLEAR_VARS)
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
LOCAL_CFLAGS += -mfloat-abi=soft
endif
LOCAL_CFLAGS += -std=c99
LOCAL_LDLIBS += -lz -lm -llog -landroid

LOCAL_C_INCLUDES += $(LOCAL_PATH)
Expand Down
1 change: 0 additions & 1 deletion ijkmedia/ijksdl/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_CFLAGS += -std=c99
LOCAL_LDLIBS += -llog -landroid -lOpenSLES -lEGL -lGLESv2

LOCAL_C_INCLUDES += $(LOCAL_PATH)
Expand Down

0 comments on commit b67fff3

Please sign in to comment.