Coder Social home page Coder Social logo

Building in Visual Studio 14 fails about uvgrtp HOT 6 CLOSED

ingura avatar ingura commented on September 26, 2024
Building in Visual Studio 14 fails

from uvgrtp.

Comments (6)

jrsnen avatar jrsnen commented on September 26, 2024

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

from uvgrtp.

ingura avatar ingura commented on September 26, 2024

Thank you

from uvgrtp.

ingura avatar ingura commented on September 26, 2024

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);

from uvgrtp.

jrsnen avatar jrsnen commented on September 26, 2024

Thanks! I also added these fixes to the master. Can you verify that ce3aa62 compiles?

from uvgrtp.

ingura avatar ingura commented on September 26, 2024

Yes, thank you!

from uvgrtp.

jrsnen avatar jrsnen commented on September 26, 2024

Thanks!

from uvgrtp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.