Alsa for Android

truthz03 thomas.tr at gmx.net
Sun Aug 17 14:00:45 PDT 2014


I'm now able to build gstreamer with cerbero.
I have downloaded the source from
"git://anongit.freedesktop.org/gstreamer-sdk/cerbero" and used compiled the
"gstreamer-1.0-sdk" package.
Than I enabled alsa which was disabled for android. To be able to build
successfully I copied the alsa libraries form the linux version.
With this modifications cerbero build successfully but I'm not able to build
my android app.
Here is the error I got while compiling with eclipse:

GStreamer      : [GEN] => gst-build/gstreamer_android.c
GStreamer      : [COMPILE] => gst-build/gstreamer_android.c
GStreamer      : [LINK] => gst-build/libgstreamer_android.so
/home/android/SDK/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.gold:
error: cannot find -lrt
/home/android/SDK/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.gold:
error: cannot find -lpthread
/home/android/SDK/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.gold:
error: cannot find -lasound
/home/android/SDK/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.gold:
gst-build/gstreamer_android.o: in function
gst_android_register_static_plugins:gstreamer_android.c(.text.gst_android_register_static_plugins+0x128):
error: undefined reference to 'gst_plugin_alsa_register'
collect2: ld returned 1 exit status
make: *** [buildsharedlibrary] Error 1

Can anybody tell my what the problem is. The alsa version on my smartphone
is 1.0.14 and I don't think that this is tinyalsa.

PS: Why does "git://anongit.freedesktop.org/gstreamer/sdk/cerbero" not
include the "gstreamer-1.0-sdk" package?



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Alsa-for-Android-tp4668311p4668324.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list