Ijkplayer: Android NDK: ERROR

Created on 17 Nov 2016  ·  23Comments  ·  Source: bilibili/ijkplayer

/home/longtran/Desktop/ijkplayer-android/android
profiler build: NO
Android NDK: ERROR:/home/longtran/Desktop/ijkplayer-android/android/ijkplayer/ijkplayer-x86_64/src/main/jni/ffmpeg/Android.mk:ijkffmpeg: LOCAL_SRC_FILES points to a missing file
Android NDK: Check that /home/longtran/Desktop/ijkplayer-android/android/contrib/build/ffmpeg-x86_64/output/libijkffmpeg.so exists or that its path is correct
/home/longtran/working/tool/android-ndk-r10e/build/core/prebuilt-library.mk:45: * Android NDK: Aborting . Stop.
/home/longtran/Desktop/ijkplayer-android/android

need-more-information

All 23 comments

./init-android.sh

cd android/contrib
./compile-ffmpeg.sh clean
./compile-ffmpeg.sh all

cd ..
./compile-ijk.sh all

wzf@wzf-Aspire-4750:~/ijkplayer/android/contrib$ ./compile-ffmpeg.sh all

[*] 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/wzf/android-ndk-r11b
IJK_NDK_REL=
You need the NDKr10e or later

@SepBreUp You need the NDKr10e or later

@midoreigh I had used ndk,but without sdk ,I have to download sdk?

@SepBreUp Yes you will need sdk. If you can download and setup android studio, it will be great

Hi. I have 15.2 NDK but still see "You need the NDKr10e or later".

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

ok. now ERROR: Failed to create toolchain.


[*] make NDK standalone toolchain

build on Linux x86_64
ANDROID_NDK=/home/lsdsl/Android/Sdk/ndk-bundle/
IJK_NDK_REL=15.2.4203891
NDKr15.2.4203891 detected
HOST_OS=linux
HOST_EXE=
HOST_ARCH=x86_64
HOST_TAG=linux-x86_64
HOST_NUM_CPUS=1
BUILD_NUM_CPUS=2
Auto-config: --arch=arm
ERROR: Failed to create toolchain.

@LSDsl Try to use an older NDK for now.

You should modify do-detect-env.sh.
case "$IJK_NDK_REL" in
11|12|13|14|15|16|17*)
Like this

@LSDsl did you find any solution for your issue? I am also getting the error "failed to create toolchain"

+1 failed to create toolchain. It's seem that project does not maintained for long time

no one can solve this

I just used NDK r10e

@LSDsl it work. but i can not build openssl mode

@fukemy And what is problem?

Any solution for this? Without having to use NDK r10e?

@LSDsl thanks. I solved it, just used directly other implement library

@LSDsl can you help? I got this error
not working for me, mac-os 64:

build on Darwin x86_64
ANDROID_NDK=/Users/thehe/Library/Android/sdk/ndk-bundle
NDKr10e(64-bit) detected
# to continue to build ffmpeg, run script below,
sh compile-ffmpeg.sh 
# to continue to build ijkplayer, run script below,
sh compile-ijk.sh 
THG:contrib thehe$ cd ..
THG:android thehe$ ./compile-ijk.sh 
profiler build: NO
Android NDK: ERROR:/Users/thehe/ijkplayer-android/android/ijkplayer/ijkplayer-armv7a/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/thehe/Library/Android/sdk/ndk-bundle/build/core/prebuilt-library.mk:45: *** Android NDK: Aborting    .  Stop.

@fukemy first need build ffmpeg
./compile-ffmpeg.sh
and after this
./compile-ijk.sh

https://github.com/Bilibili/ijkplayer/issues/2290#issuecomment-261231369

tks. it' work, i just follow step in stackoverflow but it's do not have compile ffmpeg

You just need to add your ndk version to android/contrib/tools/do-detect-env.sh

case "$IJK_NDK_REL" in 11*|12*|13*|14*|**YOUR_NDK_VERSION***) if test -d ${ANDROID_NDK}/toolchains/arm-linux-androideabi-4.9 then echo "NDKr$IJK_NDK_REL detected" else echo "You need the NDKr10e or later" exit 1 fi ;; *) echo "You need the NDKr10e or later" exit 1 ;; esac

same issue I have, please help me,

profiler build: NO
Android NDK: ERROR:/home/khyati/ijkopenssl/ijkplayer/android/ijkplayer/ijkplayer-armv7a/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
/home/khyati/Toolchain/android-ndk-r10e/build/core/prebuilt-library.mk:45: * Android NDK: Aborting . Stop.
/home/khyati/ijkopenssl/ijkplayer/android

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aslgd picture aslgd  ·  4Comments

liwuking picture liwuking  ·  4Comments

ZINK-FU picture ZINK-FU  ·  3Comments

zhangkom picture zhangkom  ·  3Comments

lingchen52 picture lingchen52  ·  3Comments