webrtcbuilds
webrtcbuilds copied to clipboard
Cannot build server peer connection
Hi,
When I try to build example that guide in https://github.com/vsimon/webrtcbuilds/wiki/Building-the-peerconnection-example I get a failed message.
hq@hq:~/buildwebrtc/webrtcbuilds/out/src/examples/peerconnection/server$ g++ -o peerconnection_server main.cc data_socket.cc peer_channel.cc utils.cc -I/home/hq/buildwebrtc/webrtcbuilds/out/webrtcbuilds-23375-cefc465-linux-x64/include -I/home/hq/buildwebrtc/webrtcbuilds/out/src -DWEBRTC_POSIX -DWEBRTC_LINUX $(pkg-config --cflags --libs --define-variable=prefix=$WEBRTCBUILDS_FOLDER libwebrtc_full) -L/home/hq/buildwebrtc/webrtcbuilds/out/webrtcbuilds-23375-cefc465-linux-x64/lib/Release -std=c++11 -lwebrtc_full -lpthread
Variable 'WEBRTC_LOCAL' not defined in '/home/hq/buildwebrtc/webrtcbuilds/out/webrtcbuilds-23375-cefc465-linux-x64/lib/Release/pkgconfig/libwebrtc_full.pc'
/tmp/ccX18aQA.o: In function main': main.cc:(.text+0x7bb): undefined reference to
webrtc::test::CommandLineParser::SetUsageMessage(std::__cxx11::basic_string<char, std::char_traitswebrtc::test::CommandLineParser::SetFlag(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)' main.cc:(.text+0x8ee): undefined reference to
webrtc::test::CommandLineParser::SetFlag(std::__cxx11::basic_string<char, std::char_traitswebrtc::test::CommandLineParser::GetFlag(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)' main.cc:(.text+0xa2d): undefined reference to
webrtc::test::CommandLineParser::GetFlag(std::__cxx11::basic_string<char, std::char_traitsrtc::s_url_decode(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': peer_channel.cc:(.text._ZN3rtc12s_url_decodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN3rtc12s_url_decodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x33): undefined reference to
rtc::s_transform(std::__cxx11::basic_string<char, std::char_traits
Any suggest for this issue ?
Thanks.
At first glance, it might be that the wiki guide instructions may have gotten out of date, I'm seeing a message about Variable 'WEBRTC_LOCAL' not defined in '.../libwebrtc_full.pc'
instead of:
$(pkg-config --cflags --libs --define-variable=prefix=$WEBRTCBUILDS_FOLDER libwebrtc_full)
can we try:
$(pkg-config --cflags --libs --define-variable=WEBRTC_LOCAL=$WEBRTCBUILDS_FOLDER libwebrtc_full)
to see if that gets any further.