<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi,<br></div><div>I again cross compiled gstreamer, gst-plugins-base, gst-plugins-good, gst-plugins-bad, gst-libav using yocto (for ARM itself) and files (mentioned in <b>gstreamer_files.txt</b>) generated after successful cross compilation have been transferred onto board.</div><div><br></div><div>On running <b>gst-inspect-1.0</b> I get below output:</div><div>staticelements:  bin: Generic bin<br>staticelements:  pipeline: Pipeline object<br><br>Total count: 1 plugin, 2 features<br></div><div>Error observed on running my SampleApp is still :</div><div>1970-01-08 22:29:08.610 [  1] 0 ConfigurationNode:initializeSuccess<br>1970-01-08 22:29:08.612 [  1] 9 MediaPlayer:createCalled<br>1970-01-08 22:29:08.617 [  1] <b>E MediaPlayer:setupPipelineFailed:reason=createQueueElementFailed</b><br>1970-01-08 22:29:08.617 [  1] <b>E MediaPlayer:initPlayerFailed:reason=setupPipelineFailed</b><br>1970-01-08 22:29:08.617 [  1] 9 MediaPlayer:~MediaPlayerCalled<br><br>(SampleApp:3044): GStreamer-CRITICAL **: 22:29:08.618: gst_object_unref: assertion 'object != NULL' failed<br>1970-01-08 22:29:08.618 [  1] 9 MediaPlayer:resetPipeline<br><br>(SampleApp:3044): GLib-CRITICAL **: 22:29:08.618: g_main_context_find_source_by_id: assertion 'source_id > 0' failed<br>1970-01-08 22:29:08.618 [  1] <b>E RequiresShutdown:~RequiresShutdownFailed:reason=notShutdown,name=SpeakMediaPlayer</b><br>1970-01-08 22:29:08.618 [  1] C SampleApplication:Failed to create media player for speech!<br>1970-01-08 22:29:08.618 [  1] C SampleApplication:Failed to initialize SampleApplication</div><div><br></div><div>Please help.<br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Oct 3, 2018 at 2:25 AM Nicolas Dufresne <<a href="mailto:nicolas@ndufresne.ca">nicolas@ndufresne.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le mardi 02 octobre 2018 à 23:32 +0530, Arjav Parikh a écrit :<br>
> Hi,<br>
> I am cross compiling AVS SDK (Alexa Voice Service) for ARM platform.<br>
> As per AVS SDK dependencies Gstreamer & its plugins of 1.8.3 or later<br>
> version is required. So I have cross compiled Gstreamer & its plugins<br>
> of version 1.14.2 through source code in Ubuntu 16.04.<br>
> Please find attached document (gstreamer_compilation.txt) which lists<br>
> the configuration & compilation steps for gstreamer & its plugins.<br>
> <br>
> Now, I compile AVS SDK using gstreamer & its plugins and is<br>
> successfully built. I have Copied all the binaries & libraries<br>
> generated from cross compiling gstreamer & its plugins on the ARM<br>
> Platform board<br>
> Please find attached document (gstreamer_build.txt) which lists the<br>
> binaries & libraries of gstreamer copied on board.<br>
> <br>
> On Executing AVS SampleApp on Board I get below mentioned error.<br>
> Maybe something is missing or something wrong has been configured.<br>
> Can anyone please guide me how to properly cross compile Gstreamer &<br>
> its plugins for ARM. Also which files are required to be ported on<br>
> Board.<br>
> <br>
> Please let me know in case of any additional information required<br>
> from my end.<br>
<br>
To continue what was discussed ont he bug, you seem to have forgot to<br>
set your run-time env. Adding symlink to some random place won't make<br>
it work. Best is to setup a prefix env, please fix for your needs, this<br>
is just pure guessing from the dump you gave.<br>
<br>
  export LD_LIBRARY_PATH=<prefix1>/lib:<prefix2>/lib:...<br>
  export GST_PLUGINS_PATH=<gstprefix1>/lib/gstreamer-1.0:<gstprefix2>/lib/gstreamer-1.0:...<br>
<br>
Verify you setup using gst-inspect-1.0. In general, using as many<br>
prefix as there is component generates a lot of setup and is<br>
complicated. So if you want to keep it this way, then I guess you'll<br>
have to work harder.<br>
<br>
> <br>
> Error:<br>
> ./SampleApp ../Integration/AlexaClientSDKConfig.json<br>
> /data/alexa/KittAiModels/ DEBUG9<br>
> 2018-10-01 08:57:22.652 [ 1] I sdkVersion: 1.9.0<br>
> configFile ../Integration/AlexaClientSDKConfig.json<br>
> Running app with log level: DEBUG9<br>
> 2018-10-01 08:57:22.662 [ 1] 0 ConfigurationNode:initializeSuccess<br>
> 2018-10-01 08:57:22.664 [ 1] 9 MediaPlayer:createCalled<br>
> 2018-10-01 08:57:22.669 [ 1] E<br>
> MediaPlayer:setupPipelineFailed:reason=createQueueElementFailed<br>
> 2018-10-01 08:57:22.669 [ 1] E<br>
> MediaPlayer:initPlayerFailed:reason=setupPipelineFailed<br>
> 2018-10-01 08:57:22.669 [ 1] 9 MediaPlayer:~MediaPlayerCalled<br>
> (SampleApp:9986): GStreamer-CRITICAL **: 08:57:22.670:<br>
> gst_object_unref: assertion 'object != NULL' failed<br>
> 2018-10-01 08:57:22.670 [ 1] 9 MediaPlayer:resetPipeline<br>
> (SampleApp:9986): GLib-CRITICAL **: 08:57:22.670:<br>
> g_main_context_find_source_by_id: assertion 'source_id > 0' failed<br>
> 2018-10-01 08:57:22.670 [ 1] E<br>
> RequiresShutdown:~RequiresShutdownFailed:reason=notShutdown,name=Spea<br>
> kMediaPlayer<br>
> 2018-10-01 08:57:22.670 [ 1] C SampleApplication:Failed to create<br>
> media player for speech!<br>
> 2018-10-01 08:57:22.670 [ 1] C SampleApplication:Failed to initialize<br>
> SampleApplication<br>
> Failed to create to SampleApplication!<br>
> -- <br>
> Thanks & Regards,<br>
> Arjav Parikh<br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Thanks & Regards,<div>Arjav Parikh</div></div></div>