bilibili / ijkplayer

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

Android NDK: ERROR #2290

Open ghost opened 7 years ago

ghost commented 7 years ago

/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

migueltarga commented 7 years ago
./init-android.sh

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

cd ..
./compile-ijk.sh all
SepBreUp commented 7 years ago

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

migueltarga commented 7 years ago

@SepBreUp You need the NDKr10e or later

SepBreUp commented 7 years ago

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

midoreigh commented 7 years ago

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

LSDsl commented 7 years ago

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

migueltarga commented 7 years ago

@LSDsl add 15 to this line: https://github.com/Bilibili/ijkplayer/blob/master/android/contrib/tools/do-detect-env.sh#L71 and make a PR

LSDsl commented 7 years ago

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.

migueltarga commented 7 years ago

@LSDsl Try to use an older NDK for now.

diguagege commented 6 years ago

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

paramvir88 commented 6 years ago

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

fukemy commented 6 years ago

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

fukemy commented 6 years ago

no one can solve this

LSDsl commented 6 years ago

I just used NDK r10e

fukemy commented 6 years ago

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

LSDsl commented 6 years ago

@fukemy And what is problem?

JaioSkura commented 6 years ago

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

fukemy commented 6 years ago

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

fukemy commented 5 years ago

@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.
LSDsl commented 5 years ago

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

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

fukemy commented 5 years ago

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

ins1der1211 commented 4 years ago

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

khyatiChitroda commented 4 years ago

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

865394064 commented 2 years ago

you not ndk-r14e/. to build or ./compile-ffmpeg.sh all not success

sachinklocham commented 7 months ago

i was trying to use => android-ndk-r14b-linux-x86_64 but getting error "Failed to create toolchain."

my current python version on my system was Python 3.10.12 then i changed it to Python 2.7.18 and my problem was solved.