Closed jvanvorst closed 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 });
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 });