Open DavidBarishev opened 8 years ago
would be great if someone could help on this I need the newest version but I can't build the project
I had to update my NDK ABI version to 4.9
(the default is 4.8
). I also had to update my android version to something other than the default(which is 9
). I updated my version to 23
. All of this can be done from within the settings.sh bash file. I am running into other issues but this got me past the C compiler and toolchain errors.
My issue is within x264. Whenever I run the bash script to compile x264, I get the following in the logs:
checking for pthread_create(0,0,0,0); in pthread.h... no
Failed command line was:
---------------------------------------------------------
/home/john/repos/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi-gcc conftest.c -Wall -I. -
I$(SRCPATH) --sysroot=/home/john/repos/ffmpeg-android/toolchain-android/sysroot -std=gnu99 -
lpthread --sysroot=/home/john/repos/ffmpeg-android/toolchain-android/sysroot -lm -o conftest
androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lpthread
collect2: error: ld returned 1 exit status
There are several more of these similar errors surrounding swscale.h
, lpostproc
, lavcodec
and more
Same issue on ubuntu 14.04
Same in Ubuntu 16.04.
I am facing the same issue the log file content is as below:
x264 configure script Command line options: "--cross-prefix=/home/test/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi-" "--sysroot=/home/test/ffmpeg-android/toolchain-android/sysroot" "--host=arm-linux" "--enable-pic" "--disable-asm" "--enable-static" "--disable-shared" "--prefix=/home/test/ffmpeg-android/toolchain-android" "--disable-cli"
DIED: No working C compiler found.
Same in Ubuntu 18.
Hello! I have followed all the instructions, and i can't seem to build the library. I'm running ubuntu 16.04 in a VM, with android-ndk-r12b installed. I followed all the steps including setting ANDROID_NDK, and the build failes at ./android_build.sh , here is the log:
Any ideas ?