最近要将FFMPEG v2.1.1移植到我的安卓程序当中去。在NDK编译的过程中遇到了以下的问题:
$ $NDK/ndk-build NDK_PROJECT_PATH=$NDK/samples/FFMPEG
Android NDK: WARNING:/cygdrive/d/ndk/samples/FFMPEG/jni/ffmpeg/libavcodec/Android.mk:avcodec: LOCAL_LDLIBS is always ignored for static libraries
Android NDK: WARNING:/cygdrive/d/ndk/samples/FFMPEG/jni/ffmpeg/libavformat/Android.mk:avformat: LOCAL_LDLIBS is always ignored for static libraries
[armeabi] SharedLibrary : libffmpeg.so
D:/ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: D:/ndk/samples/FFMPEG/obj/local/armeabi/libavcodec.a(dsputil.o): in function ff_dsputil_init:D:/ndk/samples/FFMPEG/jni/ffmpeg/libavcodec/dsputil.c:2926: error: undefined reference to 'ff_dsputil_init_arm'
D:/ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androi