libwebrtc.a issues on android

19 views
Skip to first unread message

Anurag

unread,
Oct 17, 2025, 10:56:51 AM (3 days ago) Oct 17
to discuss-webrtc
I m using M140 branch tag, and able to generate the libwebrtc.a static file for android arm64 target. Now when I m using it in my project I'm getting a lot of linking errors.
This is the build command I used
gn gen out/arm64 --args='
target_os="android"
target_cpu="arm64"
is_debug=false
is_component_build=false
rtc_include_tests=false
rtc_build_examples=false
rtc_build_tools=false
rtc_enable_protobuf=true
symbol_level=0
optimize_for_size=true
default_min_sdk_version=26
default_target_sdk_version=36
use_rtti=true
'

1. ld.lld: error: undefined symbol: webrtc::InitializeSSL()

I m simply trying to link libwebrtc.a in my aandroid project.

I researched a lot and still no luck.
What I m suspecting is this libwebrtc.a doesn't contain all the symbols and I need to further additional linking with generated .o files. 
If this is true why this is not documented.
Is there any gn argument which does linking to all .o generated files.

Any help is appriciated.

Vitaly Ivanov

unread,
Oct 17, 2025, 10:24:55 PM (2 days ago) Oct 17
to discuss...@googlegroups.com

--
This list falls under the WebRTC Code of Conduct - https://webrtc.org/support/code-of-conduct.
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/discuss-webrtc/91df4b37-8b3a-4a7e-ad37-eea8c650301cn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages