Compiling x264 on Mac: "No working C compiler found" and "arm-linux-androideabi-gcc: command not found"
I am trying to compile an x264
android library , after post .
I cloned an x264 project git clone git://git.videolan.org/x264.git
and tried to compile the following config:
NDK=~/development/android-ndk-r10c
TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64
PLATFORM=$NDK/platforms/android-21/arch-arm
./configure \
--cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \
--sysroot=$PLATFORM \
--host=arm-linux \
--enable-pic \
--enable-static \
--disable-cli
The problem is I am getting the error No working C compiler found.
.
Output conftest.log
:
$ cat conftest.log
./configure: line 153: arm-linux-androideabi-gcc: command not found
But arm-linux-androideabi-gcc
- this is the bin toolchain folder !!
Looking at this other question , it looks for some reason, even though the file exists, since this is a 64 bit Mac, it won't execute arm-linux-androideabi-gcc
and will return this strange error and log.
I am on Mac OS X 10.10 and I have installed the Xcode command line tools:
$ xcode-select -p
/Applications/Xcode.app/Contents/Developer
GCC version:
$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix
Can anyone tell me how to fix this?
source to share