<div dir="ltr"><div dir="ltr">Hi Stephene, <div>Thanks a lot for your response,</div><div>I have solved the problem. However, Even though I have followed the instructions in the manual, it seems that the application is still linked against the shared library ("<a href="http://libgstreamer-full-1.0.so">libgstreamer-full-1.0.so</a>"). While I want to link it with "libgstreamer-full-1.0.a" static library.</div><div>From the output of the `ldd` it is clear that the shared lib is still used:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">$ ldd ./example<br>   linux-vdso.so.1 (0x00007ffe05d0a000)<br>  libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007fd716002000)<br>    <a href="http://libgstreamer-full-1.0.so">libgstreamer-full-1.0.so</a> => /home/javad/ssd-workspace/IMP/gst/gstreamer/builddir/<a href="http://libgstreamer-full-1.0.so">libgstreamer-full-1.0.so</a> (0x00007fd712df8000)<br>     libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fd712bd0000)<br></blockquote><div> </div><div>I have attached the meson.build configuration for your reference. </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">project('example', 'cpp')<br><br># Set the minimum required Meson version<br>meson_version = '>=0.54.0'<br>#meson_version_required = meson.version().version_compare(meson_version)<br>#if not meson_version_required<br>#  error('Meson version is too old. Please update to at least ' + meson_version)<br>libdir = '/home/javad/ssd-workspace/IMP/gst/gstreamer/builddir/'<br>incdirs = include_directories('/home/javad/ssd-workspace/IMP/gst/gstreamer/subprojects/gstreamer/')<br>incdir2 = include_directories('/home/javad/ssd-workspace/IMP/gst/gstreamer/builddir/subprojects/gstreamer/')<br>precompiledA_dep = meson.get_compiler('cpp').find_library('libgstreamer-full-1.0', dirs : '/home/javad/ssd-workspace/IMP/gst/gstreamer/builddir/')<br><br># Find and use the required external library using pkg-config<br>#pkg_dep = dependency('gstreamer-full-1.0', <br>#                     version : '>=1.0.0',  # Replace with the required version of the library<br>#                     required : true,<br>#                     fallback : ['fallback-library', 'fallback-library-version'],  # Add fallback library info if needed<br>#                     default_options: ['defauly_library=static']<br>#)<br>pkg_dep = dependency('glib-2.0', <br>                     version : '>=1.0.0',  # Replace with the required version of the library<br>                     required : true,<br>                     fallback : ['fallback-library', 'fallback-library-version'],  # Add fallback library info if needed<br>                     default_options: ['defauly_library=static']<br>)<br><br># Define the source files for your program<br>src_files = ['example.cpp']<br><br># Build the executable<br>executable('example', sources : src_files,  dependencies : [pkg_dep,precompiledA_dep],include_directories : [incdirs,incdir2])<br><br># Optionally, you can specify other build targets (e.g., libraries) here<br><br># Print a message indicating the successful configuration<br>message('Meson build configured successfully!')<br></blockquote><div><br></div><div>Kind regards,</div><div>Javad </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 24, 2023 at 1:34 PM Stephane Cerveau 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">Dear Javad,<br>
<br>
Could you give more insights about your configure options and the <br>
Gstreamer version your are using?<br>
<br>
This is a cutting edge feature in 1.23 where the plugins/elements are <br>
automatically registered in static mode.<br>
<br>
Otherwise you would need to call manually gst_init_static_plugins () <br>
manually in your application.<br>
<br>
Regards.<br>
<br>
Stéphane<br>
<br>
On 20/7/23 5:23, Javad Rahimipetroudi via gstreamer-devel wrote:<br>
> Hello,<br>
> I have built Gstreamer in static mode and the build appeared to be <br>
> successful. However, upon attempting to run the codes, the plugins <br>
> cannot be located.<br>
> Is there any solution to this problem?<br>
> <br>
>     Streamer-CRITICAL **: 17:26:10.276: gst_plugin_register_static:<br>
>     assertion '_gst_plugin_inited != FALSE' failed<br>
>     ..<br>
>     ..<br>
>     ..<br>
>     [rcvstream_exe-2] [INFO] [1687796770.284694489] [rcv_stream]: Using<br>
>     avdec_h265<br>
>     [rcvstream_exe-2] [ERROR] [1687796770.284703906] [rcv_stream]:<br>
>     GStreamer: Could not create rtpbin.<br>
>     [rcvstream_exe-2] [ERROR] [1687796770.284711150] [rcv_stream]:<br>
>     GStreamer: Could not create rtpsrc.<br>
>     ...<br>
> <br>
> <br>
> Best regards,<br>
> Javad<br>
</blockquote></div></div>