<div dir="ltr"><div>Hi Tim</div><div>Thanks a lot. </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 19, 2022 at 4:39 PM Tim-Philipp Müller via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Javad,<br>
<br>
> Isn't there anyone in this group who knows how to compile an<br>
> application with Gstreamer with static mode? Even its developers?<br>
<br>
It's not really possible to diagnose build issues remotely without<br>
detailed information what you're doing and have done.<br></blockquote><div>I followed the instruction provided on the official page: <a href="https://gitlab.freedesktop.org/gstreamer/gstreamer#static-build">https://gitlab.freedesktop.org/gstreamer/gstreamer#static-build</a> </div><div>I build statically with:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><code><span lang="plaintext" class="gmail-line" id="gmail-LC1">meson --default-library=static -Dgst-full-libraries=app,video builddir</span></code></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><code><span lang="plaintext" class="gmail-line" id="gmail-LC2">ninja -C builddir</span></code><br></blockquote><div>Then I  tried to build the demo code with:</div><div><a href="https://gstreamer.freedesktop.org/documentation/tutorials/basic/hello-world.html?gi-language=c">https://gstreamer.freedesktop.org/documentation/tutorials/basic/hello-world.html?gi-language=c</a><br></div><div>With the following instructions:</div><div><br></div><p style="box-sizing:border-box;margin:0px 0px 10px;font-family:"Source Sans Pro","Source Sans",sans-serif;font-size:17.5px;font-style:italic;background-color:rgb(238,238,238)"><code class="gmail-language-javascript" style="box-sizing:border-box;font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;font-size:15.75px;padding:0.1em;color:black;background:rgb(245,242,240);border-radius:0.3em;word-spacing:normal;word-break:normal;line-height:1.5">gcc basic<span class="gmail-token gmail-operator" style="box-sizing:border-box;color:rgb(166,127,89);background:rgba(255,255,255,0.5)">-</span>tutorial<span class="gmail-token gmail-number" style="box-sizing:border-box;color:rgb(153,0,85)">-1</span><span class="gmail-token gmail-punctuation" style="box-sizing:border-box;color:rgb(153,153,153)">.</span>c <span class="gmail-token gmail-operator" style="box-sizing:border-box;color:rgb(166,127,89);background:rgba(255,255,255,0.5)">-</span>o basic<span class="gmail-token gmail-operator" style="box-sizing:border-box;color:rgb(166,127,89);background:rgba(255,255,255,0.5)">-</span>tutorial<span class="gmail-token gmail-number" style="box-sizing:border-box;color:rgb(153,0,85)">-1</span> <span class="gmail-token gmail-template-string" style="box-sizing:border-box"><span class="gmail-token gmail-string" style="box-sizing:border-box;color:rgb(102,153,0)">`pkg-config --cflags --libs gstreamer-1.0`</span></span></code></p>I also tried:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">gcc basic-tutorial-1.c -o basic-tutorial-1 `pkg-config --cflags --libs gstreamer-1.0` -Bstatic -L./-l:libgstreamer-full-1.0.a </blockquote><div><br></div><div>But nothing changed.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Perhaps you could provide the exact steps you have taken to build<br>
GStreamer and your application, and which branch, then someone might<br>
spot the problem.<br>
<br>
It sounds like you may not have included any plugins or at least not<br>
the playbin plugin, or they're not getting initialised automatically.<br>
<br>
Best regards<br>
 Tim<br></blockquote><div><br></div><div>Kind regards,</div><div>Javad </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
> > > I have followed the instruction in Gstreamer GitHub page to<br>
> > > compile it in static mode. The "libgstreamer-full-1.0.a" is made<br>
> > > and the demo code<br>
> > > in <a href="https://gstreamer.freedesktop.org/documentation/tutorials/basi" rel="noreferrer" target="_blank">https://gstreamer.freedesktop.org/documentation/tutorials/basi</a><br>
> > > c/hello-world.html?gi-language=c is also compiled and linked<br>
> > > successfully. However when trying to run it. It show following<br>
> > > error. But when Compiling in shared library mode, it works<br>
> > > perfectly. <br>
> > > > 0:00:00.034195340  7699 0x56525f9e8500 ERROR          <br>
> > > > GST_PIPELINE<br>
> > > > subprojects/gstreamer/gst/parse/grammar.y:851:priv_gst_parse_yy<br>
> > > > parse: no element "playbin"<br>
> > > > <br>
<br>
</blockquote></div></div>