[FFmpeg-user] Configure error for libfdk-aac

Sebastian Holmqvist sebastian.holmqvist at gmail.com
Sun Mar 17 22:15:13 CET 2013


Greetings!

I'm attempting to cross-compile FFmpeg for ARM on Mac OS X. I've installed a statically built libfkd-aac but can't get pass configure. The lib is situated in /usr/local/*.

This is my configure line:
./configure --enable-cross-compile --cross-prefix=/Volumes/CrosstoolCompile/x-tools/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi- arch=arm --target-os=linux --enable-armv5te  --enable-static --disable-shared --disable-ffplay --disable-ffserver --enable-pthreads --enable-libmp3lame --enable-librtmp --enable-libshine --enable-libfdk-aac --extra-cflags="-I/usr/local/include" --extra-ldflags="-L/usr/local/lib"

Here are the relevant parts of config.log from what I can see:

check_lib fdk-aac/aacenc_lib.h aacEncOpen -lfdk-aac
check_header fdk-aac/aacenc_lib.h
check_cpp
BEGIN /var/folders/l9/_dz0zwjd1_jd3hthyqwz__5m0000gp/T//ffconf.AdlQyALI.c
    1	#include <fdk-aac/aacenc_lib.h>
    2	int x;
END /var/folders/l9/_dz0zwjd1_jd3hthyqwz__5m0000gp/T//ffconf.AdlQyALI.c
/Volumes/CrosstoolCompile/x-tools/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -I/usr/local/include -march=armv5t -std=c99 -fomit-frame-pointer -marm -pthread -E -o /var/folders/l9/_dz0zwjd1_jd3hthyqwz__5m0000gp/T//ffconf.fF8PuIiY.o /var/folders/l9/_dz0zwjd1_jd3hthyqwz__5m0000gp/T//ffconf.AdlQyALI.c
check_func aacEncOpen -lfdk-aac
check_ld cc -lfdk-aac
check_cc
BEGIN /var/folders/l9/_dz0zwjd1_jd3hthyqwz__5m0000gp/T//ffconf.AdlQyALI.c
    1	extern int aacEncOpen();
    2	int main(void){ aacEncOpen(); }
END /var/folders/l9/_dz0zwjd1_jd3hthyqwz__5m0000gp/T//ffconf.AdlQyALI.c
/Volumes/CrosstoolCompile/x-tools/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -I/usr/local/include -march=armv5t -std=c99 -fomit-frame-pointer -marm -pthread -c -o /var/folders/l9/_dz0zwjd1_jd3hthyqwz__5m0000gp/T//ffconf.fF8PuIiY.o /var/folders/l9/_dz0zwjd1_jd3hthyqwz__5m0000gp/T//ffconf.AdlQyALI.c
/Volumes/CrosstoolCompile/x-tools/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-gcc -L/usr/local/lib -Wl,--as-needed -o /var/folders/l9/_dz0zwjd1_jd3hthyqwz__5m0000gp/T//ffconf.e3KllGk1 /var/folders/l9/_dz0zwjd1_jd3hthyqwz__5m0000gp/T//ffconf.fF8PuIiY.o -lfdk-aac -lm -pthread -lrt
/var/folders/l9/_dz0zwjd1_jd3hthyqwz__5m0000gp/T//ffconf.fF8PuIiY.o: In function `main':
ffconf.AdlQyALI.c:(.text+0x4): undefined reference to `aacEncOpen'
collect2: error: ld returned 1 exit status
ERROR: libfdk_aac not found

Any tips? Thanks!

--
Sebastian Holmqvist



More information about the ffmpeg-user mailing list