bilibili / ijkplayer

Android/iOS video player based on FFmpeg n3.4, with MediaCodec, VideoToolbox support.
GNU General Public License v2.0
32.59k stars 8.14k forks source link

NDK can not be developed #2321

Closed blue1991 closed 7 years ago

blue1991 commented 8 years ago

I have three problem.

  1. I executed "sh android/patch-debugging-with-lldb.sh armv7a" , print : patch apply ==> armv7a error: 打补丁失败:android/ijkplayer/.gitignore:6 error: android/ijkplayer/.gitignore:补丁未应用 git apply ==> patches/0001-gitignore-ignore-.externalNativeBuild.patch error: 打补丁失败:android/ijkplayer/build.gradle:5 error: android/ijkplayer/build.gradle:补丁未应用 git apply ==> patches/0002-gradle-upgrade-build-tool-to-2.2.0-beta2.patch error: 打补丁失败:android/ijkplayer/ijkplayer-armv7a/build.gradle:10 error: android/ijkplayer/ijkplayer-armv7a/build.gradle:补丁未应用 error: 打补丁失败:android/ijkplayer/ijkplayer-example/build.gradle:44 error: android/ijkplayer/ijkplayer-example/build.gradle:补丁未应用 git apply ==> patches/0003-armv7a-enable-debugging-with-LLDB.patch error: 打补丁失败:ijkmedia/ijkplayer/Android.mk:59 error: ijkmedia/ijkplayer/Android.mk:补丁未应用 git apply ==> patches/0004-armv7a-link-prebuilt-staic-libraries-of-ffmepg.patch

  2. and android studio log: image

  3. I want to include https://github.com/g-truc/glm, but build failed.I created a android studio2.2's demo,it's successful.

ctiao commented 8 years ago

temporary workaround:

git checkout k0.6.2
patch sh android/patch-debugging-with-lldb.sh armv7a
git stash
git checkout master
git stash pop

i'll fix it asap

blue1991 commented 8 years ago

@ctiao I did that: git clone https://github.com/Bilibili/ijkplayer.git ijkplayer-android cd ijkplayer-android git checkout k0.6.2 ./init-android.sh cd android/contrib ./compile-ffmpeg.sh clean ./compile-ffmpeg.sh all

but,print that:

==================== [*] check archs

FF_ALL_ARCHS = armv5 armv7a arm64 x86 x86_64 FF_ACT_ARCHS = armv5 armv7a arm64 x86 x86_64

==================== [*] check env armv5

FF_ARCH=armv5 FF_BUILD_OPT=


[*] make NDK standalone toolchain

build on Linux x86_64 ANDROID_NDK=/home/chen/Android/Sdk/ndk-bundle IJK_NDK_REL=13.1.3345770 You need the NDKr10e or later

ctiao commented 8 years ago

You need the NDKr10e or later

blue1991 commented 8 years ago

@ctiao image

The NDK is latest version, when i git checkout -B latest k0.7.4, i can build. But,i checkout k0.6.2, build failed. Try a few times before, as well.

ctiao commented 8 years ago

temporary workaround:

git checkout k0.6.2
patch sh android/patch-debugging-with-lldb.sh armv7a
git stash

git checkout -B latest k0.7.4

git stash pop

NDK r13 was not supported on k0.6.2

blue1991 commented 8 years ago

@ctiao I did that, successful.How do I support C ++ compilation?I want to import https://github.com/g-truc/glm. After compilation,log is that: image Can you help me? This is my file structure: image and i add "LOCAL_C_INCLUDES += $(realpath $(LOCAL_PATH)/ijkmedia/ijkplayer/glm)" in jni/Android.mk.

blue1991 commented 7 years ago

I solved the problem,thanks!

marinat commented 7 years ago

@blue1991 How did you solve it?

fukemy commented 6 years ago

@blue1991 how did u solve it?