From d0c7d6263d5dc7df7e224302ce64b1403db20b1e Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Tue, 7 Oct 2025 22:24:17 +0800 Subject: A fix for the linking errors to CM's WebRTC 137 Somehow there would be undefined references to webrtc::RtpStreamConfig::Rtx::Rtx() and webrtc::LossBasedBweV2::Config::Config() Rtx definition is not found in "call/rtp_config.h", there's only the declarations there. And Config definition either in "modules/congestion_controller/goog_cc/loss_based_bwe_v2.h" So, for now, we define those somewhere in llwebrtc code, may not be ideal at all since they're empty, for now, but at least it builds now and WebRTC seems to be working (I tested in a WebRTC Voice region, but this needs to be really tested with microphones and at least 2 people). --- indra/llwebrtc/llwebrtc.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/indra/llwebrtc/llwebrtc.cpp b/indra/llwebrtc/llwebrtc.cpp index 993b20cc75..4f90abc616 100644 --- a/indra/llwebrtc/llwebrtc.cpp +++ b/indra/llwebrtc/llwebrtc.cpp @@ -39,6 +39,20 @@ #include "modules/audio_mixer/audio_mixer_impl.h" #include "api/environment/environment_factory.h" +#if CM_WEBRTC + +#include "modules/congestion_controller/goog_cc/loss_based_bwe_v2.h" + +webrtc::RtpStreamConfig::Rtx::Rtx() +{ +} + +webrtc::LossBasedBweV2::Config::Config() +{ +} + +#endif + namespace llwebrtc { #if WEBRTC_WIN -- cgit v1.2.3