Open moongj opened 6 years ago
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.
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, std::allocator >)'
main.cc:(.text+0x83e): undefined reference to `webrtc::test::CommandLineParser::SetFlag(std:: cxx11::basic_string<char, std::char_traits, std::allocator >, std::cxx11::basic_string<char, std::char_traits, std::allocator >)'
main.cc:(.text+0x8ee): undefined reference to `webrtc::test::CommandLineParser::SetFlag(std:: cxx11::basic_string<char, std::char_traits, std::allocator >, std::cxx11::basic_string<char, std::char_traits, std::allocator >)'
main.cc:(.text+0x983): undefined reference to `webrtc::test::CommandLineParser::GetFlag(std:: cxx11::basic_string<char, std::char_traits, std::allocator >)'
main.cc:(.text+0xa2d): undefined reference to , std::allocator > 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, std::allocator > const&, unsigned long ()(char, unsigned long, char const*, unsigned long))'
collect2: error: ld returned 1 exit status
main': main.cc:(.text+0x7bb): undefined reference to
webrtc::test::CommandLineParser::SetUsageMessage(std::cxx11::basic_string<char, std::char_traitswebrtc::test::CommandLineParser::GetFlag(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)' /tmp/ccj2g8Hf.o: In function
rtc::s_url_decode(std::cxx11::basic_string<char, std::char_traitsAny suggest for this issue ?
Thanks.