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

Build problems due to ABI macros #54

Open
CharlieHollow opened this issue Oct 10, 2017 · 0 comments
Open

Build problems due to ABI macros #54

CharlieHollow opened this issue Oct 10, 2017 · 0 comments

Comments

@CharlieHollow
Copy link

Hi,

I'm getting some issues when I try to build webrtc libraries and peer connection example with my code.

This is an example:

CMakeFiles/window_manager.dir/src/startingWindow.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > cricket::VectorToString<cricket::AudioCodec>(std::vector<cricket::AudioCodec, std::allocator<cricket::AudioCodec> > const&)':
startingWindow.cpp:(.text+0x1d41): undefined reference to `cricket::AudioCodec::ToString[abi:cxx11]() const'
CMakeFiles/window_manager.dir/src/startingWindow.cpp.o: In function`std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > cricket::VectorToString<webrtc::RtpExtension>(std::vector<webrtc::RtpExtension, std::allocator<webrtc::RtpExtension> > const&)':
startingWindow.cpp:(.text+0x1edb): undefined reference to `webrtc::RtpExtension::ToString[abi:cxx11]() const'
CMakeFiles/window_manager.dir/src/startingWindow.cpp.o: In function`std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > cricket::VectorToString<cricket::DataCodec>(std::vector<cricket::DataCodec, std::allocator<cricket::DataCodec> > const&)':
startingWindow.cpp:(.text+0x2075): undefined reference to `cricket::DataCodec::ToString[abi:cxx11]() const'
collect2: error: ld returned 1 exit status

I've google it and it is due to changes between different versions of c++ libraries.

Also, I've seen that libwebrtc defines ABI macro = 0 so, if I didn't missunderstand, it uses old version of ABI macros.

Is there any way to build this libraries with ABI = 1?

Thanks

@CharlieHollow CharlieHollow changed the title Build problems due to ABI macro Build problems due to ABI macros Oct 10, 2017
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

1 participant