vsimon / webrtcbuilds

Getting started with WebRTC natively is no easy picnic. The goal of webrtcbuilds is to provide a single standalone WebRTC static library and package.
BSD 3-Clause "New" or "Revised" License
202 stars 164 forks source link

Linux errors when running test #91

Open BenHamrick opened 5 years ago

BenHamrick commented 5 years ago

Currently I am getting this output when trying to run the test on Ubuntu 16.04

ben@ben-ubuntu16:~/src/webrtcbuilds/test$ ./run_tests.sh /home/ben/src/webrtcbuilds/out/webrtcbuilds-25370-359d60a-linux-x64 /home/ben/src/webrtcbuilds/test/simple_app.cc: In function ‘int main(int, char**)’: /home/ben/src/webrtcbuilds/test/simple_app.cc:38:11: error: too few arguments to function ‘rtc::scoped_refptr<webrtc::PeerConnectionFactoryInterface> webrtc::CreatePeerConnectionFactory(rtc::Thread*, rtc::Thread*, rtc::Thread*, rtc::scoped_refptr<webrtc::AudioDeviceModule>, rtc::scoped_refptr<webrtc::AudioEncoderFactory>, rtc::scoped_refptr<webrtc::AudioDecoderFactory>, std::unique_ptr<webrtc::VideoEncoderFactory>, std::unique_ptr<webrtc::VideoDecoderFactory>, rtc::scoped_refptr<webrtc::AudioMixer>, rtc::scoped_refptr<webrtc::AudioProcessing>)’ NULL); ^ In file included from /home/ben/src/webrtcbuilds/test/simple_app.cc:6:0: /home/ben/src/webrtcbuilds/out/webrtcbuilds-25370-359d60a-linux-x64/include/api/peerconnectioninterface.h:1424:1: note: declared here CreatePeerConnectionFactory( ^ In file included from /usr/include/c++/5/memory:81:0, from /home/ben/src/webrtcbuilds/out/webrtcbuilds-25370-359d60a-linux-x64/include/rtc_base/thread.h:16, from /home/ben/src/webrtcbuilds/test/simple_app.cc:4: /usr/include/c++/5/bits/unique_ptr.h: In instantiation of ‘void std::default_delete<_Tp>::operator()(_Tp*) const [with _Tp = webrtc::VideoEncoderFactory]’: /usr/include/c++/5/bits/unique_ptr.h:236:17: required from ‘std::unique_ptr<_Tp, _Dp>::~unique_ptr() [with _Tp = webrtc::VideoEncoderFactory; _Dp = std::default_delete<webrtc::VideoEncoderFactory>]’ /usr/include/c++/5/bits/unique_ptr.h:200:61: required from ‘constexpr std::unique_ptr<_Tp, _Dp>::unique_ptr(std::nullptr_t) [with _Tp = webrtc::VideoEncoderFactory; _Dp = std::default_delete<webrtc::VideoEncoderFactory>; std::nullptr_t = std::nullptr_t]’ /home/ben/src/webrtcbuilds/test/simple_app.cc:38:11: required from here /usr/include/c++/5/bits/unique_ptr.h:74:22: error: invalid application of ‘sizeof’ to incomplete type ‘webrtc::VideoEncoderFactory’ static_assert(sizeof(_Tp)>0, ^ /usr/include/c++/5/bits/unique_ptr.h: In instantiation of ‘void std::default_delete<_Tp>::operator()(_Tp*) const [with _Tp = webrtc::VideoDecoderFactory]’: /usr/include/c++/5/bits/unique_ptr.h:236:17: required from ‘std::unique_ptr<_Tp, _Dp>::~unique_ptr() [with _Tp = webrtc::VideoDecoderFactory; _Dp = std::default_delete<webrtc::VideoDecoderFactory>]’ /usr/include/c++/5/bits/unique_ptr.h:200:61: required from ‘constexpr std::unique_ptr<_Tp, _Dp>::unique_ptr(std::nullptr_t) [with _Tp = webrtc::VideoDecoderFactory; _Dp = std::default_delete<webrtc::VideoDecoderFactory>; std::nullptr_t = std::nullptr_t]’ /home/ben/src/webrtcbuilds/test/simple_app.cc:38:11: required from here /usr/include/c++/5/bits/unique_ptr.h:74:22: error: invalid application of ‘sizeof’ to incomplete type ‘webrtc::VideoDecoderFactory’