glib issue when building NDK

Christopher Ladden chris.ladden at liquidware.com
Wed Aug 15 21:33:45 PDT 2012


Hello gstreamer-android, this is my first time posting here.

Has anyone seen the following glib include error when compiling the ndk?

In file included from /Users/chris/gstreamer_ndk_bundle/jni/../gstreamer/tests/examples/controller/audio-example.c:10:0:
/Users/chris/gstreamer_ndk_bundle/gstreamer/gst/gst.h:28:2: warning: #warning "The GStreamer 0.11 API is still unstable and will change in future." [-Wcpp]
/Users/chris/gstreamer_ndk_bundle/gstreamer/gst/gst.h:29:2: warning: #warning "Define GST_USE_UNSTABLE_API to avoid this warning." [-Wcpp]
/Users/chris/gstreamer_ndk_bundle/gstreamer/gst/gst.h:32:18: fatal error: glib.h: No such file or directory

Looking at the full androgenizer command, I can see glib is included, but for some reason it's failing on the gstreamer/tests folder:

androgenizer \
	-:PROJECT libgstx264 -:SHARED libgstx264 \
	 -:TAGS eng debug \
         -:REL_TOP ../.. -:ABS_TOP /Users/chris/gstreamer_ndk_bundle/gst-plugins-ugly \
	 -:SOURCES gstx264enc.c \
	 -:CPPFLAGS -I/include -I/Users/chris/Desktop/Software/android-ndk-r8b/platforms/android-14/arch-arm/usr/include -I/Users/chris/gstreamer_ndk_bundle/jni/../libid3tag -I/Users/chris/gstreamer_ndk_bundle/jni/../libmad \
	 -:CFLAGS -DHAVE_CONFIG_H -I. -I../.. -pthread -I///Users/chris/gstreamer_ndk_bundle/jni/../glib -I///Users/chris/gstreamer_ndk_bundle/jni/../glib/. -I///Users/chris/gstreamer_ndk_bundle/jni/../glib/./glib -I///Users/chris/gstreamer_ndk_bundle/jni/../glib/./gmodule -I/Users/chris/gstreamer_ndk_bundle/gstreamer -I/Users/chris/gstreamer_ndk_bundle/gstreamer/libs -I/Users/chris/gstreamer_ndk_bundle/gst-plugins-base/gst-libs   -I../../gst-libs -I../../gst-libs -pthread -I///Users/chris/gstreamer_ndk_bundle/jni/../glib -I///Users/chris/gstreamer_ndk_bundle/jni/../glib/. -I///Users/chris/gstreamer_ndk_bundle/jni/../glib/./glib -I///Users/chris/gstreamer_ndk_bundle/jni/../glib/./gmodule -I/Users/chris/gstreamer_ndk_bundle/gstreamer -I/Users/chris/gstreamer_ndk_bundle/gstreamer/libs   -DGST_USE_UNSTABLE_API  -DG_THREADS_MANDATORY -DG_DISABLE_DEPRECATED -Wall -Wdeclaration-after-statement -Wvla -Wpointer-arith -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wwrite-strings -Wformat-nonliteral -Wformat-security -Wold-style-definition -Winit-self -Wmissing-include-dirs -Waddress -Waggregate-return -Wno-multichar -Wnested-externs -Werror  -g   -DGST_DISABLE_DEPRECATED -I/system/include   -I'$(GSTREAMER_AGGREGATE_TOP)/x264' \
	 -:LDFLAGS -module -avoid-version -export-symbols-regex '^_*gst_plugin_desc.*' -no-undefined \
	           ///Users/chris/gstreamer_ndk_bundle/jni/../glib/glib/libglib-2.0.la ///Users/chris/gstreamer_ndk_bundle/jni/../glib/gobject/libgobject-2.0.la ///Users/chris/gstreamer_ndk_bundle/jni/../glib/gmodule/libgmodule-2.0.la -pthread ///Users/chris/gstreamer_ndk_bundle/jni/../glib/gthread/libgthread-2.0.la /Users/chris/gstreamer_ndk_bundle/gstreamer/gst/libgstreamer-1.0.la -L/Users/chris/gstreamer_ndk_bundle/gst-plugins-base/gst-libs/gst/audio -L/Users/chris/gstreamer_ndk_bundle/gst-plugins-base/gst-libs/gst/fft -L/Users/chris/gstreamer_ndk_bundle/gst-plugins-base/gst-libs/gst/interfaces -L/Users/chris/gstreamer_ndk_bundle/gst-plugins-base/gst-libs/gst/riff -L/Users/chris/gstreamer_ndk_bundle/gst-plugins-base/gst-libs/gst/rtp -L/Users/chris/gstreamer_ndk_bundle/gst-plugins-base/gst-libs/gst/rtsp -L/Users/chris/gstreamer_ndk_bundle/gst-plugins-base/gst-libs/gst/sdp -L/Users/chris/gstreamer_ndk_bundle/gst-plugins-base/gst-libs/gst/tag -L/Users/chris/gstreamer_ndk_bundle/gst-plugins-base/gst-libs/gst/pbutils -L/Users/chris/gstreamer_ndk_bundle/gst-plugins-base/gst-libs/gst/video -L/Users/chris/gstreamer_ndk_bundle/gst-plugins-base/gst-libs/gst/app   -lgstvideo-1.0 -lgstpbutils-1.0 ///Users/chris/gstreamer_ndk_bundle/jni/../glib/glib/libglib-2.0.la ///Users/chris/gstreamer_ndk_bundle/jni/../glib/gobject/libgobject-2.0.la ///Users/chris/gstreamer_ndk_bundle/jni/../glib/gmodule/libgmodule-2.0.la -pthread ///Users/chris/gstreamer_ndk_bundle/jni/../glib/gthread/libgthread-2.0.la /Users/chris/gstreamer_ndk_bundle/gstreamer/gst/libgstreamer-1.0.la   -L/system/lib -lx264   \
	           -ldl \
	 -:PASSTHROUGH LOCAL_ARM_MODE:=arm \
		       LOCAL_MODULE_PATH:='$(TARGET_OUT)/lib/gstreamer-0.10' \
	> Android.mk
Package gstreamer-plugins-bad-0.10 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gstreamer-plugins-bad-0.10.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gstreamer-plugins-bad-0.10' found
Package gstreamer-audio-0.10 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gstreamer-audio-0.10.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gstreamer-audio-0.10' found
Android NDK: WARNING: Unsupported source file extensions in /Users/chris/gstreamer_ndk_bundle/jni/../libid3tag/libid3tag-Android.mk for module id3tag    
Android NDK:   genre.dat frametype.gperf compat.gperf genre.dat.in    
Android NDK: WARNING: Unsupported source file extensions in /Users/chris/gstreamer_ndk_bundle/jni/../libmad/libmad-Android.mk for module mad    
Android NDK:   D.dat imdct_s.dat qc_table.dat rq_table.dat sf_table.dat    
Gdbserver      : [arm-linux-androideabi-4.6] libs/armeabi/gdbserver
Gdbsetup       : libs/armeabi/gdb.setup
Compile arm    : audio-example <= audio-example.c
In file included from /Users/chris/gstreamer_ndk_bundle/jni/../gstreamer/tests/examples/controller/audio-example.c:10:0:
/Users/chris/gstreamer_ndk_bundle/gstreamer/gst/gst.h:28:2: warning: #warning "The GStreamer 0.11 API is still unstable and will change in future." [-Wcpp]
/Users/chris/gstreamer_ndk_bundle/gstreamer/gst/gst.h:29:2: warning: #warning "Define GST_USE_UNSTABLE_API to avoid this warning." [-Wcpp]
/Users/chris/gstreamer_ndk_bundle/gstreamer/gst/gst.h:32:18: fatal error: glib.h: No such file or directory


More information about the gstreamer-android mailing list