# Cannot compile v3 of libmediasoupclient

**URL:** <https://mediasoup.discourse.group/t/cannot-compile-v3-of-libmediasoupclient/4239>\
**Category:** mediasoup libraries\
**Created:** [June 3, 2022, 12:41pm UTC](https://mediasoup.discourse.group/t/cannot-compile-v3-of-libmediasoupclient/4239 "2022-06-03T12:41:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dev.ivan.h](https://avatars.discourse-cdn.com/v4/letter/d/e9bcb4/32.png) [@dev.ivan.h](https://mediasoup.discourse.group/u/dev.ivan.h)\
**Post date:** [June 3, 2022, 12:41pm UTC](https://mediasoup.discourse.group/t/cannot-compile-v3-of-libmediasoupclient/4239/1 "2022-06-03T12:41:30Z")

</div>

When I try to build the v3 (or 3.3.0) version of libmediasoupclient I get plenty errors like these:

```auto
error: ‘is_same_v’ is not a member of ‘std’
...
error: ‘is_convertible_v’ is not a member of ‘std’

```

etc.

When I modify CMakeLists.txt in order to use C++ 17 instead of 14 I have different errors:

```auto
/home/ivan/source/libmediasoupclient/src/Handler.cpp:212:97: error: no matching function for call to ‘mediasoupclient::PeerConnection::AddTransceiver(webrtc::MediaStreamTrackInterface*&, webrtc::RtpTransceiverInit&)’
   webrtc::RtpTransceiverInterface* transceiver = this->pc->AddTransceiver(track, transceiverInit);

```

…

```auto
/home/ivan/source/libmediasoupclient/src/Handler.cpp:359:50: error: cannot convert ‘rtc::scoped_refptr<webrtc::RtpSenderInterface>’ to ‘webrtc::RtpSenderInterface*’ in assignment
   sendResult.rtpSender = transceiver->sender();

```

…

```auto
/home/ivan/source/libmediasoupclient/src/Handler.cpp:464:46: error: no matching function for call to ‘mediasoupclient::PeerConnection::RemoveTrack(rtc::scoped_refptr<webrtc::RtpSenderInterface>)’
   this->pc->RemoveTrack(transceiver->sender());

```

These errors look like internal - not related to libwebtrc.  
Could you please advise if there’s any secret how to fix the build process?

---

<div class="post-metadata">

**Author:** ![dev.ivan.h](https://avatars.discourse-cdn.com/v4/letter/d/e9bcb4/32.png) [@dev.ivan.h](https://mediasoup.discourse.group/u/dev.ivan.h)\
**Post date:** [June 7, 2022, 12:49pm UTC](https://mediasoup.discourse.group/t/cannot-compile-v3-of-libmediasoupclient/4239/2 "2022-06-07T12:49:27Z")

</div>

OK, I resolved the issue, looks like I had unresolved dependencies.

---

<div class="post-metadata">

**Author:** ![Bigcat](https://avatars.discourse-cdn.com/v4/letter/b/9fc348/32.png) [@Bigcat](https://mediasoup.discourse.group/u/Bigcat)\
**Post date:** [March 11, 2023, 5:14pm UTC](https://mediasoup.discourse.group/t/cannot-compile-v3-of-libmediasoupclient/4239/3 "2023-03-11T17:14:06Z")

</div>

@dev.ivan.h I have the same issue. Could you please let me know what you did to fix it?

---

<div class="post-metadata">

**Author:** ![dev.ivan.h](https://avatars.discourse-cdn.com/v4/letter/d/e9bcb4/32.png) [@dev.ivan.h](https://mediasoup.discourse.group/u/dev.ivan.h)\
**Post date:** [March 13, 2023, 7:19am UTC](https://mediasoup.discourse.group/t/cannot-compile-v3-of-libmediasoupclient/4239/4 "2023-03-13T07:19:21Z")

</div>

TBH, I already don’t remember exactly, didn’t visit that project since that time.  
As I recap, I needed to build WebRTC from sources.  
And update `depot_tools`

---

<div class="post-metadata">

**Author:** ![lets-swapcode](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/lets-swapcode/32/2271_2.png) [@lets-swapcode](https://mediasoup.discourse.group/u/lets-swapcode)\
**Post date:** [July 17, 2023, 1:36pm UTC](https://mediasoup.discourse.group/t/cannot-compile-v3-of-libmediasoupclient/4239/5 "2023-07-17T13:36:41Z")

</div>

did anyone able to solve this issue? Looks like old version. need some help to know what exactly needs to be updated.
