I have followed the build instructions defined in the android example app (AppRTCDemo) README (
https://chromium.googlesource.com/external/webrtc/+/master/talk/examples/android/README), including setting the build flag "build_with_libjingle=1". When I run either "ninja -C out_android/Debug AppRTCDemo" (or the Release version), it compiles everything associated with libjingle. However, when it compiles libjingle_peerconnection_so.so, it seems to forget to include various libjingle static libraries. I can tell this, because when I include the libjingle_peerconnection_so.so file in my own project (that uses things like buzz::QN_MESSAGE and XmlElement objects) the build complains that those (and other things) are not defined. BUT every WebRTC object I have in my code IS defined, and the compiler does not complain.
I have used nm -C and grep on the libjingle_peerconnection_so.so file, looking for the symbols, and there are NO results returned. However, the libjingle_peerconnection_so.ninja file clearly has the necessary libraries included (librtc_xmpp, etc.).
For my project, I am using the ndk-build system with .mk files. I have tried ditching the .so file, and instead using EVERY static library in my .mk file, but that then introduces a bunch of other not defined errors that make less sense than using the .so file.
What the heck am I doing wrong? Or is there something wrong with the build system?
Let me know if you need any more information.
Thanks