Open DaAlx opened 3 years ago
git clone https://github.com/rockcarry/soundtouch.git soundtouch-lib.h and soundtouch-lib.cpp is in directoy soundtouch/source/Android-lib/jni please check the build script build_fanplayer_jni.sh.
This unfortunately does not fix the error. The file soundtouch/source/Android-lib/jni/soundtouch-lib.cpp
includes on line 39 the header file soundtouch.h
. In this directory (https://github.com/rockcarry/soundtouch/tree/master/source/Android-lib/jni) there is no file with this name.
During the script execution the copy command on line 99 is never reached, because the error appears on line 80 (execution of ${CROSS_PREFIX}gcc
command, in this case it is arm-linux-androideabi-gcc
).
Do I missing some configuration?
check PATH environment variable: export PATH=$PATH:$ANDROID_NDK_HOME/toolchains/$TOOLCHAIN_PATH/prebuilt/windows-x86_64/bin on ubuntu it is differernt, not windows-x86_64, but you should use the correct value of you ndk path
I changed the line 54 of the script (see my first post). So my PATH
variable has the following value $PATH:$ANDROID_NDK_HOME/toolchains/$TOOLCHAIN_PATH/prebuilt/linux-x86_64/bin
.
try command: $ANDROID_NDK_HOME/toolchains/$TOOLCHAIN_PATH/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -v
I tried it with -v
parameter but I'm not able to see what the error could be. Maybe you can figure out what is going wrong!
build.log
During the script execution the copy command on line 99 is never reached, because the error appears on line 80 (execution of
${CROSS_PREFIX}gcc
command, in this case it isarm-linux-androideabi-gcc
).Do I missing some configuration?
soundtouch.h, the issue is file name lowercase.
modify soundtouch-lib.cpp line 39
Hello,
first of all thank you for this awesome project. I tested the demo android application and I'm suprised with the excellent performance of the player.
Now I'm trying to build the ffmpeg library for the android application. My environment is an
Ubuntu 20.04.3 (kernel: 5.11.0-37-generic)
. The build process results to the following error:I have followed the steps from the readme (https://github.com/rockcarry/fanplayer/wiki/build-ffmpeg-for-android):
git clone https://github.com/rockcarry/fanplayer.git
cd player-android/jni
export ANDROID_NDK_HOME=/Downloads/android-ndk-r13b/
./build_fanplayer_jni.sh
--> this results to the errorno NDK arm-linux-androideabi-gcc on $PATH at (eval 10) line 124.
build_fanplayer_jni.sh
script fromexport PATH=$PATH:$ANDROID_NDK_HOME/toolchains/$TOOLCHAIN_PATH/prebuilt/windows-x86_64/bin
toexport PATH=$PATH:$ANDROID_NDK_HOME/toolchains/$TOOLCHAIN_PATH/prebuilt/linux-x86_64/bin
--> Now the the scripts continues but after a few seconds it results to the error./fanplayer/player-android/jni/soundtouch/source/Android-lib/jni/soundtouch-lib.cpp:39:24: fatal error: soundtouch.h: No such file or directory'
I have looked in the directory
./fanplayer/player-android/jni/soundtouch/source/Android-lib/jni
. There is no file namedsoundtouch.h
.Do I missing something?
Best Regards, DaAlx