-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libwebrtc-magic.a equivalent file for windows machine #57
Comments
Hi Shashi, Great to see your progress here. I do recall missing symbols just like You're missing some part of the archive, whichever contains Best, |
Thanks for you reply Serene. I followed steps mentioned on webrtc official website https://webrtc.org/native-code/development/ I checked my repos for webrtc and found all header files available there, so logically it should be part of static library that i am using. I saw in build.sh for go-webrtc, it checkouts specific webrtc version (f33698296719f956497d2dbff81b5080864a8804) , Is there any dependency or need for this version ? I'm working on latest webrtc repo because I was not able to compile this specific version on windows machine. I will try to make this work as long time allows me and keep you updated. If you have any suggestion for me on this please let me know. Regards, |
@sbhushan87 the master branch is now up-to-date with branch-heads/58, so you should be good with gn now. |
@sbhushan87 Hi, have you succeed with running webrtc on windows? If so can you please share build.bat and .pc files? |
You can build the WebRTC source code using the same build.sh file with minor modifications. You need to make sure that you have Golang and Python in your PATH. The headers are extracted the same way. The only difference is that the library is linked as .lib file. There are webrtc.lib and webrtc_common.lib under out/Release/obj/webrtc. The only problem is that CGO in Windows currently uses Mingw and can't compile against libraries build with MSVC. There are a couple of possible solutions in progress. Using Clang in CGO Windows or support MSVC object files in CGO. |
Here is blizzardplus's patch that allows building webrtc.lib and webrtc_common.lib (using the recommended MSVC 2015 build procedure for Chromium on Windows): build.sh.diff.txt. But yeah, unfortunately we couldn't make the MSVC-compiled libraries work with go-webrtc and Cgo, despite trying many things. It comes down to an incompatibility between MSVC and MinGW (currently Cgo on Windows can only use MinGW). Here's a sample of a linker error that you'll get.
|
Hi,
I am trying to use this library on windows machine. I followed steps mentioned in another issue to create build.sh (build.bat) for windows. I was able to complete all steps except
"mv libwebrtc-magic.a $LIB_DIR/libwebrtc-$OS-$ARCH-magic.a"
After compiling webrtc on windows, I couldn't find any file with name "libwebrtc-magic" in out folder. Can you please help me to find equivalent dll file for windows machine.
Thank you.
Regards,
Shashi
The text was updated successfully, but these errors were encountered: