ortclib / ortclib-sdk

C# / C++ ORTC Lib SDK for UWP, iOS, and Android
BSD 2-Clause "Simplified" License
100 stars 36 forks source link

PeerCC Unity #9

Closed fcagnetta closed 6 years ago

fcagnetta commented 6 years ago

Hi there, this is my situation:

I would like to have a Unity PeerCC Client for Hololens and a Unity PeerCC Client for PC (both UWP) talking each other.

I have this working in Debug mode only, because in release mode the compiler can't find MediaEngineUWP.dll and I can't find out how to fix this.

Are you guys able to build in release mode?

jamescadd commented 6 years ago

I'm able to build in release mode - could you try with the latest and provide an update? The PeerCC-Sample repo now has the latest Unity code and references the NuGet package so it's much quicker to build: https://github.com/webrtc-uwp/PeerCC-Sample

fcagnetta commented 6 years ago

@jamescadd Hi James, I tried with the new PeerCC-Sample repo, but honestly, I am not able to follow the instructions. There are broken links in Samples chapter and so I don't have the stuff to build the following: "Unity 3D Peer Connection Client application - build PeerConnectionClientUnity project in webrtc\windows\solutions\WebRtcUnityD3D.sln"

Am I blind and don't get something simple to do?

jamescadd commented 6 years ago

If the Unity project is causing issues can you check that version 4.1f is installed, and that you chose to install the .NET Scripting Backend during Unity install (or something similar)? Sorry about the broken links, I'll have to take a look at the documentation.

Actually this branch fixes the issue that Unity 4.0 is no longer available which is likely the broken link you mentioned, see if it helps: https://github.com/ortclib/ortclib-sdk/tree/Mosa/20180320-peercc-unity


From: Francesco Cagnetta notifications@github.com Sent: Wednesday, July 11, 2018 6:42:56 AM To: ortclib/ortclib-sdk Cc: James Cadd; Mention Subject: Re: [ortclib/ortclib-sdk] PeerCC Unity (#9)

@jamescaddhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjamescadd&data=02%7C01%7Cjacadd%40microsoft.com%7Ceea33dfa0378478ef84908d5e71b10c4%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636669025787840991&sdata=S6xB%2B3s%2BkqSTgrIumD26VvMXJdhtk4%2F0H3nClzIviU0%3D&reserved=0 Hi James, I tried with the new PeerCC-Sample repo, but honestly, I am not able to follow the instructions. There are broken links in Samples chapter and so I don't have the stuff to build the following: "Unity 3D Peer Connection Client application - build PeerConnectionClientUnity project in webrtc\windows\solutions\WebRtcUnityD3D.sln"

Am I blind and don't get something simple to do?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fortclib%2Fortclib-sdk%2Fissues%2F9%23issuecomment-404125433&data=02%7C01%7Cjacadd%40microsoft.com%7Ceea33dfa0378478ef84908d5e71b10c4%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636669025787840991&sdata=gneF6DOrW3YFsQ5UoXo39V3DOIfL7tkON0dHuEG13pI%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACmlAt8P2KkW1Ic_sNb-xIR613Qstd8zks5uFdawgaJpZM4Uc8zd&data=02%7C01%7Cjacadd%40microsoft.com%7Ceea33dfa0378478ef84908d5e71b10c4%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636669025787851001&sdata=oHaK%2F8SktmT%2F8d31ikdi%2FAdxiAyzvREksRP43%2FTFylw%3D&reserved=0.

fcagnetta commented 6 years ago

Yes, I just tried that branch on a clean machine, but still, the prepare.bat is not working :/

CRITICAL ERROR: Could not generate WebRTC projects for winuwp_10 platform, x64 CPU

FAILURE:Preparing WebRTC development environment has failed. ======= WebRTC prepare script summary ======= ======= platform ========= result ======= arm not run x64 failed x86 not run win32 not run

jamescadd commented 6 years ago

Please run bin\prepare.bat -logLevel 4 and post the output


From: Francesco Cagnetta notifications@github.com Sent: Wednesday, July 11, 2018 9:37:23 AM To: ortclib/ortclib-sdk Cc: James Cadd; Mention Subject: Re: [ortclib/ortclib-sdk] PeerCC Unity (#9)

Yes, I just tried that branch on a clean machine, but still, the prepare.bat is not working :/

CRITICAL ERROR: Could not generate WebRTC projects for winuwp_10 platform, x64 CPU

FAILURE:Preparing WebRTC development environment has failed. ======= WebRTC prepare script summary ======= ======= platform ========= result ======= arm not run x64 failed x86 not run win32 not run

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fortclib%2Fortclib-sdk%2Fissues%2F9%23issuecomment-404172142&data=02%7C01%7Cjacadd%40microsoft.com%7Cafc11d16c2054bccc7f608d5e7336f18%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636669130448768007&sdata=cI%2FdP6lXkZPD%2F3ysuRpTyGr4zbS%2FUnoOIqA2K4m7wrM%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACmlAt2bIFhyjWkNYx5lyxAjn1muloOUks5uFf-TgaJpZM4Uc8zd&data=02%7C01%7Cjacadd%40microsoft.com%7Cafc11d16c2054bccc7f608d5e7336f18%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636669130448778021&sdata=YPsOlKZ9ohZiV0Wu%2BvjX4y%2BXU97SOTL%2FLtIvF8l0wxI%3D&reserved=0.

fcagnetta commented 6 years ago

Here it is: https://pastebin.com/hmxbd7Lk

robin-raymond commented 6 years ago

I see in logs:

You must install the "Debugging Tools for Windows" feature from the Windows 10 SDK.

fcagnetta commented 6 years ago

Thanks Robin, missed that x.x I'll try again

jamescadd commented 6 years ago

Assume this was resolved by installing the debugging tools, reopen if not.