Building/using the binary distribution of Gstreamer for android in a way you can step through debug

I’d like to know how to build gstreamer for android, if possible in my build.gradle.kts, in a way I can debug stepping through gst’s source. Right now using the binary only distribution I can only step through my C/C++ code but not gstreamer code.

Otherwise, I’d like to know where I could place gst’s source and what do I need to change in the ndk *.mk files so lldb finds them and hooks them up to the binary build

Thanks a lot in advance :pray:

You can build the same the same code that the binaries are distributed with by using cerbero: GStreamer / cerbero · GitLab.

You can then point your gradle file to the binary distribution that you have built and you should be able to step through GStreamer code.

I did try building with cerbero unfortunately it dies compiling libxml with the likes of

ld.lld: error: version script assignment of 'LIBXML2_2.4.30' to symbol 'docbCreateFileParserCtxt' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBXML2_2.4.30' to symbol 'docbCreatePushParserCtxt' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBXML2_2.4.30' to symbol 'docbEncodeEntities' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBXML2_2.4.30' to symbol 'docbFreeParserCtxt' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBXML2_2.4.30' to symbol 'docbParseChunk' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBXML2_2.4.30' to symbol 'docbParseDoc' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBXML2_2.4.30' to symbol 'docbParseDocument' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBXML2_2.4.30' to symbol 'docbParseFile' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBXML2_2.4.30' to symbol 'docbSAXParseDoc' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBXML2_2.4.30' to symbol 'docbSAXParseFile' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBXML2_2.6.29' to symbol 'xmlDllMain' failed: symbol not defined