<html><head></head><body><div class="ydp444f227dyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div></div>
<div dir="ltr" data-setdir="false">check the dependencies of these plugins. I guess you use prebuilt gstreamer for Android.</div><div dir="ltr" data-setdir="false">cd path-to-gstreamer/arm64/lib/gstreamer-1.0/pkgconfig to figure out dependencies of each plugin lib.</div><div dir="ltr" data-setdir="false">Since all are static, there is order issue. <br></div><div dir="ltr" data-setdir="false">And you need to register all of them in your code as well.<br></div><div><br></div>
</div><div id="yahoo_quoted_9509956869" class="yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
On Wednesday, February 21, 2024, 12:15:27 p.m. EST, Ramil Galin via gstreamer-devel <gstreamer-devel@lists.freedesktop.org> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div id="yiv2752639728"><div dir="ltr"><div>Hello!</div><div><br></div><div>I am using gstreamer for Android and using cmake to build a project. But when I try to build gstreamer_android.so I have linkage issues kind of these:</div><div>```</div><div>...<br></div><div>ld: error: undefined symbol: gst_codec_utils_aac_get_sample_rate_from_index<br>>>> referenced by gsttypefindfunctions.c:1259</div><div>...<br></div><div>ld: error: undefined symbol: gst_video_dither_method_get_type<br>>>> referenced by gstvideoconvertscale.c:329</div><div>...<br></div><div>```</div><div><br></div><div>In my cmakelists the order is the following:<br>```</div><div><div style="color:rgb(204,204,204);background-color:rgb(31,31,31);font-family:Menlo, Monaco, monospace;font-weight:normal;font-size:12px;line-height:18px;white-space:pre;"><div><span style="color:rgb(86,156,214);">set</span><span style="color:rgb(204,204,204);">(</span></div><div><span style="color:rgb(204,204,204);"> GST_PLUGINS</span></div><div><span style="color:rgb(204,204,204);"> gstcoreelements</span></div><div><span style="color:rgb(204,204,204);"> gsttypefindfunctions</span></div><div><span style="color:rgb(204,204,204);"> gstvideorate</span></div><div><span style="color:rgb(204,204,204);"> gstvideofilter</span></div><div><span style="color:rgb(204,204,204);"> gstvideofiltersbad</span></div><div><span style="color:rgb(204,204,204);"> gstvideoconvertscale</span></div><div><span style="color:rgb(204,204,204);"> gstautodetect</span></div><div><span style="color:rgb(204,204,204);"> gstvideotestsrc</span></div><div><span style="color:rgb(204,204,204);"> gstplayback</span></div><div><span style="color:rgb(204,204,204);"> gstx264</span></div><div><span style="color:rgb(204,204,204);"> gstvideoparsersbad</span></div><div><span style="color:rgb(204,204,204);"> gstandroidmedia</span></div><div><span style="color:rgb(204,204,204);"> gstopengl</span></div><div><span style="color:rgb(204,204,204);"> gstapp</span></div><div><span style="color:rgb(204,204,204);"> gstisomp4</span></div><div><span style="color:rgb(204,204,204);"> gstalaw</span></div><div><span style="color:rgb(204,204,204);"> gstvpx</span></div><div><span style="color:rgb(204,204,204);">)</span></div><br><div><span style="color:rgb(86,156,214);">set</span><span style="color:rgb(204,204,204);">(</span></div><div><span style="color:rgb(204,204,204);"> GST_PlUGIN_LIBS</span></div><div><span style="color:rgb(204,204,204);"> orc-0.4</span></div><div><span style="color:rgb(204,204,204);"> gstgl-1.0</span></div><div><span style="color:rgb(204,204,204);"> graphene-1.0</span></div><div><span style="color:rgb(204,204,204);"> png16</span></div><div><span style="color:rgb(204,204,204);"> jpeg</span></div><div><span style="color:rgb(204,204,204);"> x264</span></div><div><span style="color:rgb(204,204,204);"> gstapp-1.0</span></div><div><span style="color:rgb(204,204,204);"> gstvideo-1.0</span></div><div><span style="color:rgb(204,204,204);"> gstaudio-1.0</span></div><div><span style="color:rgb(204,204,204);"> gstpbutils-1.0</span></div><div><span style="color:rgb(204,204,204);"> gsttag-1.0</span></div><div><span style="color:rgb(204,204,204);"> gstphotography-1.0</span></div><div><span style="color:rgb(204,204,204);"> gstcontroller-1.0</span></div><div><span style="color:rgb(204,204,204);"> gstcodecparsers-1.0</span></div><div><span style="color:rgb(204,204,204);"> gstplay-1.0</span></div><div><span style="color:rgb(204,204,204);"> gio-2.0</span></div><div><span style="color:rgb(204,204,204);"> glib-2.0</span></div><div><span style="color:rgb(204,204,204);"> gobject-2.0</span></div><div><span style="color:rgb(204,204,204);">)</span></div><br><div><span style="color:rgb(86,156,214);">set</span><span style="color:rgb(204,204,204);">(</span></div><div><span style="color:rgb(204,204,204);"> GST_LIBS</span></div><div><span style="color:rgb(204,204,204);"> gstbase-1.0</span></div><div><span style="color:rgb(204,204,204);"> gstreamer-1.0</span></div><div><span style="color:rgb(204,204,204);"> gmodule-2.0</span></div><div><span style="color:rgb(204,204,204);"> gobject-2.0</span></div><div><span style="color:rgb(204,204,204);"> glib-2.0</span></div><div><span style="color:rgb(204,204,204);"> ffi</span></div><div><span style="color:rgb(204,204,204);"> pcre2-8</span></div><div><span style="color:rgb(204,204,204);"> iconv</span></div><div><span style="color:rgb(204,204,204);"> intl</span></div><div><span style="color:rgb(204,204,204);"> z</span></div><div><span style="color:rgb(204,204,204);">)</span></div><div><span style="color:rgb(204,204,204);"><br></span></div><div><span style="color:rgb(86,156,214);">target_link_libraries</span><span style="color:rgb(204,204,204);">(</span></div><div><span style="color:rgb(204,204,204);"> </span><span style="color:rgb(86,156,214);">${PROJECT_NAME}</span><span style="color:rgb(204,204,204);"> PUBLIC</span></div><div><span style="color:rgb(204,204,204);"> </span><span style="color:rgb(86,156,214);">${loglib}</span></div><div><span style="color:rgb(204,204,204);"> ${GLESv2-lib}</span></div><div><span style="color:rgb(204,204,204);"> EGL</span></div><div><span style="color:rgb(204,204,204);"> </span><span style="color:rgb(86,156,214);">${GST_PLUGINS}</span></div><div><span style="color:rgb(204,204,204);"> </span><span style="color:rgb(86,156,214);">${GST_PLUGIN_LIBS}</span></div><div><span style="color:rgb(204,204,204);"> </span><span style="color:rgb(86,156,214);">${GST_LIBS}</span></div><div><span style="color:rgb(204,204,204);">)</span></div></div></div><div>```</div><div>What should be the correct order of linkage? Do I need to link smth else?</div><div>Any help is appreciated.<br></div></div>
</div></div>
</div>
</div></body></html>