Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build server peer connection #86

Open
moongj opened this issue May 24, 2018 · 1 comment
Open

Cannot build server peer connection #86

moongj opened this issue May 24, 2018 · 1 comment

Comments

@moongj
Copy link

moongj commented May 24, 2018

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_traits, std::allocator >)'
main.cc:(.text+0x83e): undefined reference to webrtc::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_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<char>, std::allocator<char> >)' main.cc:(.text+0xa2d): undefined reference to webrtc::test::CommandLineParser::GetFlag(std::__cxx11::basic_string<char, std::char_traits, std::allocator >)'
/tmp/ccj2g8Hf.o: In function rtc::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, std::allocator > const&, unsigned long ()(char, unsigned long, char const*, unsigned long))'
collect2: error: ld returned 1 exit status

Any suggest for this issue ?

Thanks.

@vsimon
Copy link
Owner

vsimon commented May 24, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants