Closed ingura closed 1 year ago
Hi,
The problems seem to be caused by the old VS version that doesn't support all features used in uvgRTP. I guess these could be fixed since there are not too many of them. The first two are just initializer lists that have to be written open, but I'm not immediately sure what the solution for the last two, some sort cast I guess. Could you test how to fix the last two since I don't have vs 2015 immediately available? You can also do a PR.
BR, Joni
Thank you
Yes VS 14 needs a little bit of hand holding. For anyone else having the same issue replace:
list { ssrc, ourItems } with chunk as follows:
uvgrtp::frame::rtcp_sdes_chunk chunk = uvgrtp::frame::rtcp_sdes_chunk();
chunk.ssrc = ssrc_;
chunk.items = ourItems_;
...
!construct_sdes_chunk(frame, write_ptr, chunk)
The later 2 issues are const void * casting issues that get resolved by replacing
inet_ntop(AF_INET, &addr.sin_addr, c_string, INET_ADDRSTRLEN)
with
const void* voidPinAddr;
voidPinAddr = &addr.sin_addr;
PVOID pvoidInAddr = const_cast<PVOID>(voidPinAddr);
inet_ntop(AF_INET, pvoidInAddr, c_string, INET_ADDRSTRLEN);
Thanks! I also added these fixes to the master. Can you verify that ce3aa62b3f4c79181b67234cd74b195f9fff2a3f compiles?
Yes, thank you!
Thanks!
Hi ,
I have an issue: Cmake generates the x64 project files without a complaint. When moving to build on VS 14 here is the result:
Specifically there are 4 error preventing uvgrtp project from building:![image](https://user-images.githubusercontent.com/103531218/205202511-f5fe8503-7a8b-4aa6-8ec4-b03a58f23868.png)
What could be the issue here? Thank you