Android Studio 1.4 support?

Diane Cordero dcordero at sbimagingsystems.com
Fri Oct 23 11:48:05 PDT 2015


Thanks Brian,

I’ve upgraded GStreamer to 1.5.91 and am now seeing UnsatisfiedLinkErrors. I’ve packed the libraries into a .jar file that gets placed in app/build/libs/. The .jar is being created fine and I can see the .so files in it, but do I still call loadLibrary() the same way? How does the program know where to look for the .so files? I’ve also tried placing it in app/libs/ and adding it as a dependency and still no luck.

Best,
Diane

From: gstreamer-android [mailto:gstreamer-android-bounces at lists.freedesktop.org] On Behalf Of Brian D
Sent: Thursday, October 22, 2015 12:41 PM
To: Discussions about GStreamer on Android <gstreamer-android at lists.freedesktop.org>
Subject: Re: Android Studio 1.4 support?

Hi Diane,

The compile error is the HOST_SED issue I mentioned to you. Those strings aren't getting replaced (@X_DEFINITION@) by sed due to changes in the latest NDK. You'll need to use at least 1.5.91<http://gstreamer.freedesktop.org/data/pkg/android/1.5.91/>, or apply a patch.

Here's the bug: https://bugzilla.gnome.org/show_bug.cgi?id=750162
-Brian


On Wed, Oct 21, 2015 at 11:24 AM, Diane Cordero <dcordero at sbimagingsystems.com<mailto:dcordero at sbimagingsystems.com>> wrote:
Hi everyone,

With the release of Android Studio 1.4, there is now NDK support! What is the proper way to add the GStreamer SDK to my project? I am migrating from Eclipse and there seems to be no documentation on this.

I am running

•         Ubuntu 14.04

•         Android Studio 1.4

•         GStreamer 1.4.3

•         Gradle 2.5 using experimental build 0.2.0

I’ve tried adding the GSTREAMER_ROOT_ANDROID as an environment variable, no luck. The .c code does not compile. I’ve tried adding Gradle tasks and I get make errors (unsure if related to GStreamer) as well as GStreamer compilation errors:

make: -n: Command not found
/bin/sh: 0: Illegal option -
Streamer      : [GEN] => gst-build-armeabi/gstreamer_android.c

/bin/sh: 1: i: not found
make: [genstatic_armeabi] Error 127 (ignored)
/bin/sh: 1: i: not found
make: [genstatic_armeabi] Error 127 (ignored)
/bin/sh: 1: i: not found
make: [genstatic_armeabi] Error 127 (ignored)
/bin/sh: 1: i: not found
make: [genstatic_armeabi] Error 127 (ignored)

GStreamer      : [COMPILE] => gst-build-armeabi/gstreamer_android.c

gst-build-armeabi/gstreamer_android.c:15:2: error: stray '@' in program
  @PLUGINS_DECLARATION@
  ^
gst-build-armeabi/gstreamer_android.c:15:22: error: stray '@' in program
  @PLUGINS_DECLARATION@
                      ^
gst-build-armeabi/gstreamer_android.c:18:2: error: stray '@' in program
  @G_IO_MODULES_DECLARE@

Any guidance is greatly appreciated!

Thanks for your time,
Diane


_______________________________________________
gstreamer-android mailing list
gstreamer-android at lists.freedesktop.org<mailto:gstreamer-android at lists.freedesktop.org>
http://lists.freedesktop.org/mailman/listinfo/gstreamer-android

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-android/attachments/20151023/13dba974/attachment.html>


More information about the gstreamer-android mailing list