aisouard / libwebrtc

:package: Google's WebRTC implementation in a single static library.
https://axel.isouard.fr/libwebrtc
Apache License 2.0
638 stars 190 forks source link

Issue with building peerconnectionclient using libwebrtc #56

Open sampathkumar81293 opened 6 years ago

sampathkumar81293 commented 6 years ago

Hi ,

I am building peerconnectionclient that is created in the folder libwebrtc/out/webrtc/src/webrtc/examples/peerconnection/client .

I get these errors whenever I try to build it using cmake.Trace is

Trace.txt

Here is My CmakeLists.txt is :

CMakeLists.txt

demobin8 commented 6 years ago

seems like issue#51

coreTechie007 commented 5 years ago

Hi @sampathkumar81293

We are facing the same linker issues:

undefined reference to typeinfo for rtc::PhysicalSocketServe
undefined reference to rtc::GetStringFromJsonObject
undefined reference to rtc::GetIntFromJsonObject
undefined reference to typeinfo for webrtc::SetSessionDescriptionObserver
undefined reference to typeinfo for webrtc::CreateSessionDescriptionObserver
undefined reference to typeinfo for rtc::AdaptedVideoTrackSource
undefined reference to typeinfo for rtc::MessageHandler

so for this we have added following source files to resolve these linker issue:

  1. physical_socket_server.cc + async_socket.cc
  2. json.cc
  3. jsep.cc
  4. adapted_video_track_source.cc
  5. message_handler.cc

After this project gets build successfully but when we try to run it it gives us an error:

Fatal error in: ../src/physical_socket_server.cc, line 1423
last system error: 11
Check failed: !processing_dispatchers_

Is this because of the mismatch sources ? but we used the sources from same webrtc cloned sources.

What is the stable latest webrtc source directory from where we can download ? and build webrtc library, so that we dont have to add above sources additionally.

Thanks in advance !