sourcey / libsourcey

C++14 evented IO libraries for high performance networking and media based applications
https://sourcey.com/libsourcey
GNU Lesser General Public License v2.1
1.31k stars 344 forks source link

Error building libSourcey with WebRTC (Errors in AddRef and Release) #275

Open Edgar-Alarcon opened 5 years ago

Edgar-Alarcon commented 5 years ago

Hi,

I am trying to compile libSourcey with the WebRtc binaries on Visual Studio (Windows) .

After generating the project correctly on Cmake choosing WITH_WEBRTC and setting the correct includes, I try to compile the solution but these errors were found :

'RefCountReleaseStatus': is not a member of 'rtc' 'Release': unknown override specifier

These are the conflictive lines

Peer.h

    virtual void AddRef() const override { return; }
    virtual rtc::RefCountReleaseStatus Release() const override { return rtc::RefCountReleaseStatus::kDroppedLastRef; }

audiopacketmodule.cpp

rtc::scoped_refptr<AudioPacketModule> AudioPacketModule::Create()
{
    rtc::scoped_refptr<AudioPacketModule> capture_module(
        new rtc::RefCountedObject<AudioPacketModule>());
    if (!capture_module->Initialize()) {
        return nullptr;
    }
    return capture_module;
}

I guess that is an issue related with libSourcey and WebRTC versions, but I don't know how to solve it.

Any one could help me ?