microsoft / MixedReality-WebRTC

MixedReality-WebRTC is a collection of components to help mixed reality app developers integrate audio and video real-time communication into their application and improve their collaborative experience
https://microsoft.github.io/MixedReality-WebRTC/
MIT License
909 stars 283 forks source link

How to obtain mrwebrtc source code in MixedReality-WebRTC? #661

Open PureCoderPan opened 3 years ago

PureCoderPan commented 3 years ago

Describe the bug According issue number 181,have a brother mentioned a method need to change mrwebrtc source code peer_connecton.cpp and video_frame_observer.cpp. But i can't find this two files source code in MixedReality-WebRTC. Could you tell me where that mrwebrtc source code. I need to recompile a dll to replace now dll try resolve my encounter problem. Any suggestions weill be appreciated。

djee-ms commented 3 years ago

https://github.com/microsoft/MixedReality-WebRTC/blob/master/libs/mrwebrtc/src/peer_connection.cpp https://github.com/microsoft/MixedReality-WebRTC/blob/master/libs/mrwebrtc/src/video_frame_observer.cpp

PureCoderPan commented 3 years ago

@djee-ms thanks for your reply. I have a try right now.

PureCoderPan commented 3 years ago

Hello, djee-ms. Our C# developer tell me that he using changed files peer_connection.cpp and video_frame_observer.cpp
in mrwebrtc foder can't recompile mrwebrtc.dll.

compile error is :

Severity Code Description Project File Line Suppression State Error The webrtc.lib file was not found for configuration 'Debug' platform 'x86'. This generally indicates that libwebrtc was not built locally. Run "tools\build\build.ps1 -BuildConfig Debug -BuildArch x86 -BuildPlatform Win32" to build it. See https://microsoft.github.io/MixedReality-WebRTC/manual/building-windows.html for more details. Missing file: E:\WRTC\MixedReality-WebRTC-master\tools\build\mrwebrtc......\external\webrtc-uwp-sdk\webrtc\xplatform\webrtc\out\webrtc_win_x86_debug\obj\webrtc.lib mrwebrtc-win32 E:\WRTC\MixedReality-WebRTC-master\tools\build\mrwebrtc\win32\mrwebrtc-win32.vcxproj 224

How to compile mrwebrtc.dll ? mrwebrtc folder files is all waiting complile files? I’m very sorry, if you can, I kindly ask you to help us deal with this issue and upgrade the NuGet version. Thank you very much. Because we are still not sure whether the current problems can be dealt with through this modification, it is better not we still need to find new solutions.

williamXDB commented 3 years ago

Dear djee-ms, How could i dispatch the mrwebrtc.dll ,if i want to use it as static library. The source code downloaded from this website, we could not compile successfully. Could you kindly update the version ?

djee-ms commented 3 years ago

@PureCoderPan this is literally explained in the error message, I cannot do much more than that....

Error The webrtc.lib file was not found for configuration 'Debug' platform 'x86'. This generally indicates that libwebrtc was not built locally. Run "tools\build\build.ps1 -BuildConfig Debug -BuildArch x86 -BuildPlatform Win32" to build it. See https://microsoft.github.io/MixedReality-WebRTC/manual/building-windows.html for more details. Missing file: E:\WRTC\MixedReality-WebRTC-master\tools\build\mrwebrtc......\external\webrtc-uwp-sdk\webrtc\xplatform\webrtc\out\webrtc_win_x86_debug\obj\webrtc.lib


@williamXDB

if i want to use it as static library.

This is not supported.

williamXDB commented 3 years ago

@PureCoderPan this is literally explained in the error message, I cannot do much more than that....

Error The webrtc.lib file was not found for configuration 'Debug' platform 'x86'. This generally indicates that libwebrtc was not built locally. Run "tools\build\build.ps1 -BuildConfig Debug -BuildArch x86 -BuildPlatform Win32" to build it. See https://microsoft.github.io/MixedReality-WebRTC/manual/building-windows.html for more details. Missing file: E:\WRTC\MixedReality-WebRTC-master\tools\build\mrwebrtc......\external\webrtc-uwp-sdk\webrtc\xplatform\webrtc\out\webrtc_win_x86_debug\obj\webrtc.lib

@williamXDB

if i want to use it as static library.

This is not supported.

Dear djee-ms , could provide a simple demo for c++?

williamXDB commented 3 years ago

@PureCoderPan this is literally explained in the error message, I cannot do much more than that....

Error The webrtc.lib file was not found for configuration 'Debug' platform 'x86'. This generally indicates that libwebrtc was not built locally. Run "tools\build\build.ps1 -BuildConfig Debug -BuildArch x86 -BuildPlatform Win32" to build it. See https://microsoft.github.io/MixedReality-WebRTC/manual/building-windows.html for more details. Missing file: E:\WRTC\MixedReality-WebRTC-master\tools\build\mrwebrtc......\external\webrtc-uwp-sdk\webrtc\xplatform\webrtc\out\webrtc_win_x86_debug\obj\webrtc.lib

@williamXDB

if i want to use it as static library.

This is not supported.

Dear djee-ms , could provide a simple demo for c++?

williamXDB commented 3 years ago

Dear djee, When do you update the new version? Is there a schedule?

zhuisa commented 3 years ago

@PureCoderPan这是错误消息中的_字面_解释,我不能做的太多了。

错误找不到配置'Debug'平台'x86'的webrtc.lib文件。通常,这表明libwebrtc不是本地构建的。运行“ tools \ build \ build.ps1 -BuildConfig调试-BuildArch x86 -BuildPlatform Win32”以进行构建。有关更多详细信息,请参见https://microsoft.github.io/MixedReality-WebRTC/manual/building-windows.html。缺少文件:E:\ WRTC \ MixedReality-WebRTC-master \ tools \ build \ mrwebrtc ...... \ external \ webrtc-uwp-sdk \ webrtc \ xplatform \ webrtc \ out \ webrtc_win_x86_debug \ obj \ webrtc.lib

@williamXDB

如果我想将其用作静态库。

不支持此功能。

尊敬的djee-ms, 可以为c ++提供一个简单的演示吗?

hello! How are you? I am also find a simple demo for c++ , in order to connect HoloLens with PC. Can you help me ? Thank you very much!

williamXDB commented 3 years ago

what is the source ? or where is the addres ? It is my pleasure to help you if I could do anything.

At 2021-04-29 10:59:51, "zhuisa" @.***> wrote:

@PureCoderPan这是错误消息中的_字面_解释,我不能做的太多了。

错误找不到配置'Debug'平台'x86'的webrtc.lib文件。通常,这表明libwebrtc不是本地构建的。运行“ tools \ build \ build.ps1 -BuildConfig调试-BuildArch x86 -BuildPlatform Win32”以进行构建。有关更多详细信息,请参见https://microsoft.github.io/MixedReality-WebRTC/manual/building-windows.html。缺少文件:E:\ WRTC \ MixedReality-WebRTC-master \ tools \ build \ mrwebrtc ...... \ external \ webrtc-uwp-sdk \ webrtc \ xplatform \ webrtc \ out \ webrtc_win_x86_debug \ obj \ webrtc.lib

@williamXDB

如果我想将其用作静态库。

不支持此功能。

尊敬的djee-ms, 可以为c ++提供一个简单的演示吗?

hello! How are you? I am also find a simple demo for c++ , in order to connect HoloLens with PC. Can you help me ? Thank you very much!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

dgtvan commented 3 years ago

When you check out the source code, do not forget the recursive option.

image