faad2를 ARM용으로 크로스컴파일을 하려고 하는데요..
파일은 http://www.audiocoding.com/downloads.html에서 받았구..
압축을 해제하면 configure 파일에 crossscompile 하려면 --host=HOST 이렇게 하라길래 여기다가 제 툴체인이 있는 디렉토리 경로를 써줬습니다.
--host=/opt/android-8-toolchain//bin/arm-linux-androideabi-g++ 로 실행했더니..
--host 대신 --build를 쓰라고 나와서 다시
--build=/opt/android-8-toolchain//bin/arm-linux-androideabi-g++ 로 실행했더니..
아래와 같은 에러가 나면서 컴파일되지 않습니다.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... Invalid configuration `/opt/android-8-toolchain//bin/arm-linux-androideabi-g++': machine `/opt/android-8-toolchain//bin/arm-linux-androideabi' not recognized
configure: error: /bin/bash ./config.sub /opt/android-8-toolchain//bin/arm-linux-androideabi-g++ failed
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
make: *** No rule to make target `distclean'. Stop.
툴체인 지정안해줄 시에는 컴파일 되어서 libfaad.a 같은 파일이 생성되고 있는 상황이구요..
조언 좀 얻고자 이렇게 글 올립니다. 답변 부탁드려요~~
컴파일러 디렉토리는 PATH 환경변수에 있어야
컴파일러 디렉토리는 PATH 환경변수에 있어야 하구요.
auto tool의 configure script에
매개변수로 --host=arm-linux-androideabi
까지만 하세요.
다른 사람 참고
https://gist.github.com/nddrylliog/4688209
댓글 달기