<div dir="auto"><div dir="auto">Regarding environment setup I thought if you could provide little more information it would be really helpful.</div><div dir="auto"><br></div><div>Previously I was manually configuring Gstreamer and I was getting errors. So I tried with yocto as it resolves dependencies automatically but in that case also same error.<br><br><div data-smartmail="gmail_signature">Thanks & Regards,<br>Arjav Parikh</div><br><div class="gmail_quote"><div dir="ltr">On Thu, Oct 4, 2018, 12:22 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 mercredi 03 octobre 2018 à 22:39 +0530, Arjav Parikh a écrit :<br>
> Hi Nicolas,<br>
> Thank you for your response.<br>
> <br>
> Can you please elaborate more on environment setup.<br>
<br>
It's all in my previous email.<br>
<br>
> <br>
> In case of yocto I am using default bb file from openembedded branch<br>
> in GitHub.<br>
<br>
Somehow you're installation does not match the configuration given to<br>
GStreamer at build time. What's also odd, is that even though you say<br>
you used yocto, you provided a build script earlier.<br>
<br>
> <br>
> Thanks & Regards,<br>
> Arjav Parikh<br>
> <br>
> On Wed, Oct 3, 2018, 10:10 PM Nicolas Dufresne <<a href="mailto:nicolas@ndufresne.ca" target="_blank" rel="noreferrer">nicolas@ndufresne.ca</a>><br>
> wrote:<br>
> > Le mercredi 03 octobre 2018 à 20:24 +0530, Arjav Parikh a écrit :<br>
> > > Hi,<br>
> > > I again cross compiled gstreamer, gst-plugins-base, gst-plugins-<br>
> > good, <br>
> > > gst-plugins-bad, gst-libav using yocto (for ARM itself) and files<br>
> > > (mentioned in gstreamer_files.txt) generated after successful<br>
> > cross<br>
> > > compilation have been transferred onto board.<br>
> > > <br>
> > > On running gst-inspect-1.0 I get below output:<br>
> > > staticelements:  bin: Generic bin<br>
> > > staticelements:  pipeline: Pipeline object<br>
> > <br>
> > Did you forgot to setup the environment as per my instructions ?<br>
> > Why<br>
> > does your Yocto setup not use the final install prefix ?<br>
> > <br>
> > Short answer, you still have a broken installation. You should have<br>
> > over 100 elements in there.<br>
> > <br>
> > > <br>
> > > Total count: 1 plugin, 2 features<br>
> > > Error observed on running my SampleApp is still :<br>
> > > 1970-01-08 22:29:08.610 [  1] 0<br>
> > ConfigurationNode:initializeSuccess<br>
> > > 1970-01-08 22:29:08.612 [  1] 9 MediaPlayer:createCalled<br>
> > > 1970-01-08 22:29:08.617 [  1] E<br>
> > > MediaPlayer:setupPipelineFailed:reason=createQueueElementFailed<br>
> > > 1970-01-08 22:29:08.617 [  1] E<br>
> > > MediaPlayer:initPlayerFailed:reason=setupPipelineFailed<br>
> > > 1970-01-08 22:29:08.617 [  1] 9 MediaPlayer:~MediaPlayerCalled<br>
> > > <br>
> > > (SampleApp:3044): GStreamer-CRITICAL **: 22:29:08.618:<br>
> > > 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:<br>
> > > g_main_context_find_source_by_id: assertion 'source_id > 0'<br>
> > failed<br>
> > > 1970-01-08 22:29:08.618 [  1] E<br>
> > ><br>
> > RequiresShutdown:~RequiresShutdownFailed:reason=notShutdown,name=Sp<br>
> > ea<br>
> > > kMediaPlayer<br>
> > > 1970-01-08 22:29:08.618 [  1] C SampleApplication:Failed to<br>
> > create<br>
> > > media player for speech!<br>
> > > 1970-01-08 22:29:08.618 [  1] C SampleApplication:Failed to<br>
> > > initialize SampleApplication<br>
> > > <br>
> > > Please help.<br>
> > > <br>
> > > On Wed, Oct 3, 2018 at 2:25 AM Nicolas Dufresne <<br>
> > <a href="mailto:nicolas@ndufresne.ca" target="_blank" rel="noreferrer">nicolas@ndufresne.ca</a><br>
> > > > wrote:<br>
> > > > 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<br>
> > > > platform.<br>
> > > > > As per AVS SDK dependencies Gstreamer & its plugins of 1.8.3<br>
> > or<br>
> > > > later<br>
> > > > > version is required. So I have cross compiled Gstreamer & its<br>
> > > > plugins<br>
> > > > > of version 1.14.2 through source code in Ubuntu 16.04.<br>
> > > > > Please find attached document (gstreamer_compilation.txt)<br>
> > which<br>
> > > > lists<br>
> > > > > the configuration & compilation steps for gstreamer & its<br>
> > > > plugins.<br>
> > > > > <br>
> > > > > Now, I compile AVS SDK using gstreamer & its plugins and is<br>
> > > > > successfully built. I have Copied all the binaries &<br>
> > libraries<br>
> > > > > generated from cross compiling gstreamer & its plugins on the<br>
> > ARM<br>
> > > > > Platform board<br>
> > > > > Please find attached document (gstreamer_build.txt) which<br>
> > lists<br>
> > > > the<br>
> > > > > binaries & libraries of gstreamer copied on board.<br>
> > > > > <br>
> > > > > On Executing AVS SampleApp on Board I get below mentioned<br>
> > error.<br>
> > > > > Maybe something is missing or something wrong has been<br>
> > > > configured.<br>
> > > > > Can anyone please guide me how to properly cross compile<br>
> > > > Gstreamer &<br>
> > > > > its plugins for ARM. Also which files are required to be<br>
> > ported<br>
> > > > on<br>
> > > > > Board.<br>
> > > > > <br>
> > > > > Please let me know in case of any additional information<br>
> > required<br>
> > > > > from my end.<br>
> > > > <br>
> > > > To continue what was discussed ont he bug, you seem to have<br>
> > forgot<br>
> > > > to<br>
> > > > set your run-time env. Adding symlink to some random place<br>
> > won't<br>
> > > > make<br>
> > > > it work. Best is to setup a prefix env, please fix for your<br>
> > needs,<br>
> > > > 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-<br>
> > > > 1.0:<gstprefix2>/lib/gstreamer-1.0:...<br>
> > > > <br>
> > > > Verify you setup using gst-inspect-1.0. In general, using as<br>
> > 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<br>
> > > > 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<br>
> > > > 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>
> > > > ><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'<br>
> > > > failed<br>
> > > > > 2018-10-01 08:57:22.670 [ 1] E<br>
> > > > ><br>
> > > ><br>
> > RequiresShutdown:~RequiresShutdownFailed:reason=notShutdown,name=Sp<br>
> > > > ea<br>
> > > > > kMediaPlayer<br>
> > > > > 2018-10-01 08:57:22.670 [ 1] C SampleApplication:Failed to<br>
> > create<br>
> > > > > media player for speech!<br>
> > > > > 2018-10-01 08:57:22.670 [ 1] C SampleApplication:Failed to<br>
> > > > 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" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
> > > > > <br>
> > <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer 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" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
> > > > <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
> > > <br>
> > > <br>
> > > _______________________________________________<br>
> > > gstreamer-devel mailing list<br>
> > > <a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
> > > <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
> > <br>
> > _______________________________________________<br>
> > gstreamer-devel mailing list<br>
> > <a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
> > <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
> <br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div></div></div>