mpromonet / webrtc-streamer

WebRTC streamer for V4L2 capture devices, RTSP sources and Screen Capture
https://webrtcstreamer.agreeabletree-365b9a90.canadacentral.azurecontainerapps.io/?layout=2x2
The Unlicense
2.94k stars 598 forks source link

build error on PeerConnectionManager.cpp - no 'Invoke' member #534

Closed jvanvorst closed 2 years ago

jvanvorst commented 2 years ago

Getting a build error under Ubuntu 18.04 under WSL2. This is following the build instructions in the repo.

/home/jim/source/webrtc-streamer/src/PeerConnectionManager.cpp: In constructor ‘PeerConnectionManager::PeerConnectionManager(const std::__cxx11::list<std::__cxx11::basic_string<char> >&, const Json::Value&, webrtc::AudioDeviceModule::AudioLayer, const string&, const string&, bool, bool, int)’: /home/jim/source/webrtc-streamer/src/PeerConnectionManager.cpp:209:18: error: ‘class rtc::Thread’ has no member named ‘Invoke’ m_workerThread->Invoke<void>(RTC_FROM_HERE, [this, audioLayer] { ^~~~~~ /home/jim/source/webrtc-streamer/src/PeerConnectionManager.cpp:209:25: error: expected primary-expression before ‘void’ m_workerThread->Invoke<void>(RTC_FROM_HERE, [this, audioLayer] { ^~~~ /home/jim/source/webrtc-streamer/src/PeerConnectionManager.cpp:211:6: error: expected primary-expression before ‘)’ token }); ^ /home/jim/source/webrtc-streamer/src/PeerConnectionManager.cpp: In destructor ‘virtual PeerConnectionManager::~PeerConnectionManager()’: /home/jim/source/webrtc-streamer/src/PeerConnectionManager.cpp:344:18: error: ‘class rtc::Thread’ has no member named ‘Invoke’ m_workerThread->Invoke<void>(RTC_FROM_HERE, [this] { ^~~~~~ /home/jim/source/webrtc-streamer/src/PeerConnectionManager.cpp:344:25: error: expected primary-expression before ‘void’ m_workerThread->Invoke<void>(RTC_FROM_HERE, [this] { ^~~~ /home/jim/source/webrtc-streamer/src/PeerConnectionManager.cpp:346:6: error: expected primary-expression before ‘)’ token });