<div dir="ltr"><div dir="ltr">I found the problem. In the QtGstreamer lib, some classes are pure virtual and not correctly exported to the lib. See also this thread here for an explanation: <a href="https://github.com/android-ndk/ndk/issues/519">https://github.com/android-ndk/ndk/issues/519</a></div><div dir="ltr"><br></div><div>I fixed the issue by moving the destructors of the culprits to a source file. I will consider creating a patch for QtGstreamer.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Mi., 16. Jan. 2019 um 20:14 Uhr schrieb Alexander Rössler <<a href="mailto:machinekoder@gmail.com">machinekoder@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">I have successfully built and run QtGstreamer on Android. However, I can't get <span style="color:rgb(128,0,128)">QGst</span>::<span style="color:rgb(128,0,128)">ElementFactory</span>::<span style="color:rgb(0,103,124)">make</span> to work correctly.<div><br></div><div>In particular, this dynamic_cast seems to fail: <a href="https://github.com/GStreamer/qt-gstreamer/blob/master/src/QGlib/refpointer.h#L332" target="_blank">https://github.com/GStreamer/qt-gstreamer/blob/master/src/QGlib/refpointer.h#L332</a></div><div><br></div><div>I verified that the problem is not in the installation itself, the call <span style="color:rgb(128,0,128)">GstElement</span><span style="color:rgb(192,192,192)"> </span>*<span style="color:rgb(9,46,100)">element</span><span style="color:rgb(192,192,192)"> </span>=<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,103,124)">gst_element_factory_make</span>(<span style="color:rgb(0,128,0)">"playbin"</span>,<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,128)">NULL</span>); works as expected.</div><div><br></div><div>I wonder if this problem has anything to do with me using static plugins on Android. To test my hypothesis I build one plugin statically on Linux, but the problem did not occur.</div><div><br></div><div>Does anybody know what could be the problem and how to debug it? I've pushed debug logging to TRACE level and I don't see any errors happening, so the failing dynamic_cast seems to be a problem.</div><div><br></div><div>Thank you for your help.</div><div><br></div><div>Alex</div></div></div>
</blockquote></div>