check_lib2 stdint.h faac.h faacEncGetVersion -lfaac
check_func_headers stdint.h faac.h faacEncGetVersion -lfaac
check_ld -lfaac
check_cc
BEGIN /usr/tmp/ffconf.x13UnZTJ.c
    1 #include <stdint.h>
    2 #include <faac.h>
    3 long check_faacEncGetVersion(void) { return (long) faacEncGetVersion; }
    4 int main(void) { return 0; }
END /usr/tmp/ffconf.x13UnZTJ.c
/home/abcd/android-ndk-r4-crystax/build/prebuilt/linux-x86/arm-eabi-4.4.0/bin/arm-eabi-gcc --sysroot=/home/abcd/android-ndk-r4-crystax/build/platforms/android-8/arch-arm -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -I/local/include -fPIC -DANDROID -std=c99 -fomit-frame-pointer -fPIC -marm -c -o /usr/tmp/ffconf.hafazAUv.o /usr/tmp/ffconf.x13UnZTJ.c
/usr/tmp/ffconf.x13UnZTJ.c:2:18: error: faac.h: No such file or directory
/usr/tmp/ffconf.x13UnZTJ.c: In function 'check_faacEncGetVersion':
/usr/tmp/ffconf.x13UnZTJ.c:3: error: 'faacEncGetVersion' undeclared (first use in this function)
/usr/tmp/ffconf.x13UnZTJ.c:3: error: (Each undeclared identifier is reported only once
/usr/tmp/ffconf.x13UnZTJ.c:3: error: for each function it appears in.)
ERROR: libfaac not found

 

http://ubuntuforums.org/showpost.php?p=9868359&postcount=1289 

위사이트와 같이 진행했는데

그냥 컴파일 했을때는 잘 되었는데 크로스 컴파일 -cc -cross를 주니깐 에러가 납니다 뭐가 문제인지 가르쳐주세요

 

#!/bin/bash
PREBUILT=/home/abcd/android-ndk-r4-crystax/build/prebuilt/linux-x86/arm-eabi-4.4.0
PLATFORM=/home/abcd/android-ndk-r4-crystax/build/platforms/android-8/arch-arm
./configure --arch=arm --enable-gpl --enable-memalign-hack --enable-version3 --enable-nonfree --enable-postproc --enable-libx264 --enable-libfaac --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libxvid --enable-x11grab --enable-libmp3lame --extra-cflags=-I/local/include --extra-ldflags=-L/local/lib --target-os=linux --cc=$PREBUILT/bin/arm-eabi-gcc --cross-prefix=$PREBUILT/bin/arm-eabi- --nm=$PREBUILT/bin/arm-eabi-nm --extra-cflags="-fPIC -DANDROID" --enable-neon --enable-armv5te --extra-ldflags="-Wl,-T,$PREBUILT/arm-eabi/lib/ldscripts/armelf.x -Wl,-rpath-link=$PLATFORM/usr/lib -L$PLATFORM/usr/lib -nostdlib $PREBUILT/lib/gcc/arm-eabi/4.4.0/crtbegin.o $PREBUILT/lib/gcc/arm-eabi/4.4.0/crtend.o -lc -lm -ldl" --enable-cross-compile --sysroot=$PLATFORM

configure 명령입니다.