post 다음에 Android 용 x264
라이브러리를 컴파일하려고합니다.Mac에서 x264 컴파일 : "작동하는 C 컴파일러가 없습니다"및 "arm-linux-androideabi-gcc : 명령을 찾을 수 없습니다."
은 내가 x264 프로젝트 git clone git://git.videolan.org/x264.git
를 복제 다음과 같은 구성으로 컴파일하는 것을 시도했다 :
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
문제는 내가 No working C compiler found.
오류가 있다는 것입니다.
conftest.log
출력 :
$ cat conftest.log
./configure: line 153: arm-linux-androideabi-gcc: command not found
그러나 arm-linux-androideabi-gcc
는 툴체인의 bin 폴더입니다!
이 다른 파일은 question입니다. 파일이 존재하더라도 64 비트 Mac이므로 arm-linux-androideabi-gcc
파일을 실행하지 않으며 이상한 오류와 로그를 반환합니다.
나는 맥 OS X 10.10에서 오전과 내가 엑스 코드 명령 행 도구 설치 :
$ xcode-select -p
/Applications/Xcode.app/Contents/Developer
GCC 버전 :
$ 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
이
가
이 사람이 나를 어떻게 말할 수를 이걸 고쳐 주실 래요?
나는 당신이 제안한 것을 시도했지만 아무런 차이가 없다. –
아, OS X을 사용하는 동안'linux-x86_64'를 포함하는 툴체인 경로를 설정하기 때문에 $ TOOLCHAIN에 설정하고있는 경로가 실제로 존재하는지 확인하십시오 - 아마도 여러분은'linux-x86_64 '와'darwin-x86_64'를 사용합니다. – mstorsjo
이것은 나를 도왔습니다. 빌드 스크립트가 참조하는 아키텍처와 플랫폼을 실제로 확인해야했습니다. 작은 조정과 빌드가 성공적으로 완료되었습니다. – speedynomads