librtcdcpp icon indicating copy to clipboard operation
librtcdcpp copied to clipboard

Working Windows build

Open chadnickbok opened this issue 8 years ago • 5 comments

This library works fine on Windows as part of my closed-source app, but there are some things i need to do to make it easy to build.

Initially I'll just check in a visual studio project to get things rolling.

chadnickbok avatar Aug 16 '16 21:08 chadnickbok

And what is the main file for webrtc datachannel api on a serverside?

Globik avatar Sep 05 '16 16:09 Globik

I meen main.cpp or so. I look at src directory and see 4 cpp files. Should I be dancing for main.exe from those all 4 files?

Globik avatar Sep 05 '16 16:09 Globik

I'm on windows 7 32bit too. Libnice, libusrsctp, glib 2.0 compiling on windows platform very good. By the way, about libnice. One need optionally to give the permission to libnice's ip interfaces also to gather 127.0.0.1. Or without the internet connection all stuff does not work at all. At least on windows. One need ca three lines of code to add. NiceAddress addr; and etc addr from string, nice_agent_add_ip_address... Also if one want to check webrtc snippet on a client side from the browser without internet connectivity, one should run chrome.exe with the flag - - allow-loopback-in-peer-connection. And on firefox there are in its configs the same flag. For me it is important, I'm on notebook and do not want every time to enable modem in order that to check any short webrtc code snippet.

Globik avatar Sep 05 '16 16:09 Globik

Something like this:

# ifdef ALLOW_LOOPBACK_WITH_NO_INTERNET_CONNECTIVITY

NiceAddress addr; nice_address_init (&addr); nice_address_set_from_string (&addr, "127.0.0.1");

endif

Optional! and then all stuff will work on a local machine without internet connectivity.

Globik avatar Sep 05 '16 17:09 Globik

Hey globik! Thanks for checking out the library.

I'm still working on the windows build - I'll let you know once I have a HOWTO on getting it up-and-running on windows.

I'll definitely make it easy to use without an internet connection, thanks for the advice.

chadnickbok avatar Sep 07 '16 02:09 chadnickbok