GStreamer NDK build undefined reference to MACROS
Denis Green
zagre.torez at gmail.com
Sun Nov 25 11:20:05 PST 2012
Hi,
The problem is exactly as in the previous post:
http://lists.freedesktop.org/archives/gstreamer-bugs/2007-June/032520.html
Configuration:
Fedora 17 x64
All i686 are installed.
But neaacdec.h contains required definitions.
gstreamer-0.10_ndk_bundle/faad/include/neaacdec.h
Lines from neaacdec.h:
#if 1
/* MACROS FOR BACKWARDS COMPATIBILITY */
/* structs */
#define faacDecHandle NeAACDecHandle
#define faacDecConfiguration NeAACDecConfiguration
#define faacDecConfigurationPtr NeAACDecConfigurationPtr
#define faacDecFrameInfo NeAACDecFrameInfo
/* functions */
#define faacDecGetErrorMessage NeAACDecGetErrorMessage
#define faacDecSetConfiguration NeAACDecSetConfiguration
#define faacDecGetCurrentConfiguration NeAACDecGetCurrentConfiguration
#define faacDecInit NeAACDecInit
#define faacDecInit2 NeAACDecInit2
#define faacDecInitDRM NeAACDecInitDRM
#define faacDecPostSeekReset NeAACDecPostSeekReset
#define faacDecOpen NeAACDecOpen
#define faacDecClose NeAACDecClose
#define faacDecDecode NeAACDecDecode
#define AudioSpecificConfig NeAACDecAudioSpecificConfig
#endif
I still get error about undefined reference to MACROS.
Configuration:
Fedora 17 x64
All i686 are installed.
/home/sam/android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs-debug/gstfaad/gstfaad.o: in function
gst_faad_reset_stream_state:/home/sam/work/gstreamer-0.10_ndk_bundle/jni/../gst-plugins-bad/ext/faad/gstfaad.c:203:
error: undefined reference to 'NeAACDecPostSeekReset'
/home/sam/android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs-debug/gstfaad/gstfaad.o: in function
gst_faad_set_format:/home/sam/work/gstreamer-0.10_ndk_bundle/jni/../gst-plugins-bad/ext/faad/gstfaad.c:322:
error: undefined reference to 'faacDecInit2'
/home/sam/android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs-debug/gstfaad/gstfaad.o: in function
gst_faad_handle_frame:/home/sam/work/gstreamer-0.10_ndk_bundle/jni/../gst-plugins-bad/ext/faad/gstfaad.c:709:
error: undefined reference to 'faacDecInit'
/home/sam/android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs-debug/gstfaad/gstfaad.o: in function
gst_faad_handle_frame:/home/sam/work/gstreamer-0.10_ndk_bundle/jni/../gst-plugins-bad/ext/faad/gstfaad.c:715:
error: undefined reference to 'faacDecInit2'
/home/sam/android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs-debug/gstfaad/gstfaad.o: in function
gst_faad_handle_frame:/home/sam/work/gstreamer-0.10_ndk_bundle/jni/../gst-plugins-bad/ext/faad/gstfaad.c:748:
error: undefined reference to 'NeAACDecDecode'
/home/sam/android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs-debug/gstfaad/gstfaad.o: in function
gst_faad_handle_frame:/home/sam/work/gstreamer-0.10_ndk_bundle/jni/../gst-plugins-bad/ext/faad/gstfaad.c:808:
error: undefined reference to 'NeAACDecGetErrorMessage'
/home/sam/android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs-debug/gstfaad/gstfaad.o: in function
gst_faad_open_decoder:/home/sam/work/gstreamer-0.10_ndk_bundle/jni/../gst-plugins-bad/ext/faad/gstfaad.c:841:
error: undefined reference to 'NeAACDecOpen'
/home/sam/android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs-debug/gstfaad/gstfaad.o: in function
gst_faad_open_decoder:/home/sam/work/gstreamer-0.10_ndk_bundle/jni/../gst-plugins-bad/ext/faad/gstfaad.c:848:
error: undefined reference to 'NeAACDecGetCurrentConfiguration'
/home/sam/android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs-debug/gstfaad/gstfaad.o: in function
gst_faad_open_decoder:/home/sam/work/gstreamer-0.10_ndk_bundle/jni/../gst-plugins-bad/ext/faad/gstfaad.c:853:
error: undefined reference to 'NeAACDecSetConfiguration'
/home/sam/android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs-debug/gstfaad/gstfaad.o: in function
gst_faad_close_decoder:/home/sam/work/gstreamer-0.10_ndk_bundle/jni/../gst-plugins-bad/ext/faad/gstfaad.c:865:
error: undefined reference to 'NeAACDecClose'
collect2: ld returned 1 exit status
I need some help or direction.
Thanks, Denis
More information about the gstreamer-android
mailing list