if (is_win || is_android) { | |
rtc_shared_library("webrtc_unity_plugin") { | |
testonly = true |
--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/46efe0db-c4eb-45ab-92f6-773721c0d302%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
on which platform did you try?you need to be on windows or cross-compiling for android on linux.also, it's a "testonly" target, so I don't think it's enable by default.
if (is_win || is_android) { rtc_shared_library("webrtc_unity_plugin") { testonly = true
On Mon, Nov 20, 2017 at 10:16 AM, Ben Benjamin <benmbe...@gmail.com> wrote:
To those reading -- thanks for your time and all your great work. I'm stuck in a hole here: having fetched the latest, having `gn gen`'d the entire src directory, and finally having run `ninja -C out/Default` (all per these instructions), I've been unable to produce anything beyond the initial `webrtc_unity_plugin.ninja` file created by `gn gen`. My shell shows no errors. Some 3700+ tasks are run by the `ninja -C` command, and many files are created in `src/out/Default`, but nothing pertaining to webrtc_unity_plugin.One thing I noticed inside of `src/out/Default/toolchain.ninja`, a block beginning at line 148:```build obj/examples/examples.stamp: stamp ./stun_prober.exe ./peerconnection_client.exe ./peerconnection_server.exe ./relayserver.exe ./stunserver.exe ./turnserver.exesubninja obj/examples/peerconnection_client.ninjasubninja obj/examples/peerconnection_server.ninjasubninja obj/examples/relayserver.ninjasubninja obj/examples/stun_prober.ninjasubninja obj/examples/stunserver.ninjasubninja obj/examples/turnserver.ninjasubninja obj/examples/webrtc_unity_plugin.ninja```Note how the first line of the above block excludes any mention of `webrtc_unity_plugin`. In a misguided attempt to patch this I appended ` ./webrtc_unity_plugin.dll` to the end of this line and received a myriad of interesting but probably unrelated errors (happy to post them in this thread if anyone thinks they might be relevant).Anyway, I'm desperate to implement the `SimplePeerConnectionM` namespace demonstrated in `src/examples/unityplugin/README` in a Unity app that communicates P2P with a standard web client via RTC. The methods implemented in the example plugin seem perfect, as they share so much with the browser javascript API, and every WebRTC plugin that currently exists for Unity offers little/zero documentation, rigid/unflexible signaling implementation, limited functionality, or all of the above. If ANYBODY has been able to implement the example webrtc_unity_plugin successfully, please let the world know how, I will be so extremely grateful!!
--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/46efe0db-c4eb-45ab-92f6-773721c0d302%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
code base. The demo is in C# and Unity specific stuff which cannot build in webrtc code base."
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/513baafe-333b-4a8f-90d9-e28e357a204b%40googlegroups.com.To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
$ ninja -C out/Default webrtc_unity_plugin
ninja: Entering directory `out/Default'
[3/5] CXX obj/examples/webrtc_unity_plugin/simple_peer_connection.obj
FAILED: obj/examples/webrtc_unity_plugin/simple_peer_connection.obj
../../third_party/llvm-build/Release+Asserts/bin/clang-cl.exe /nologo /showIncludes @obj/examples/webrtc_unity_plugin/simple_peer_connection.obj.rsp /c ../../examples/unityplugin/simple_peer_connection.cc /Foobj/examples/webrtc_unity_plugin/simple_peer_connection.obj /Fd"obj/examples/webrtc_unity_plugin_cc.pdb"
../../examples/unityplugin/simple_peer_connection.cc(92,33): error: no matching function for call to 'CreatePeerConnectionFactory'
g_peer_connection_factory = webrtc::CreatePeerConnectionFactory(
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../..\api/peerconnectioninterface.h(1281,1): note: candidate function not viable: requires 7 arguments, but 6 were provided
CreatePeerConnectionFactory(
^
../..\api/peerconnectioninterface.h(1219,52): note: candidate function not viable: requires 8 arguments, but 6 were provided
rtc::scoped_refptr<PeerConnectionFactoryInterface> CreatePeerConnectionFactory(
^
../..\api/peerconnectioninterface.h(1205,52): note: candidate function not viable: requires 2 arguments, but 6 were provided
rtc::scoped_refptr<PeerConnectionFactoryInterface> CreatePeerConnectionFactory(
^
../..\api/peerconnectioninterface.h(1235,52): note: candidate function not viable: requires 10 arguments, but 6 were provided
rtc::scoped_refptr<PeerConnectionFactoryInterface> CreatePeerConnectionFactory(
^
../..\api/peerconnectioninterface.h(1250,52): note: candidate function not viable: requires 10 arguments, but 6 were provided
rtc::scoped_refptr<PeerConnectionFactoryInterface> CreatePeerConnectionFactory(
^
1 error generated.
[4/5] CXX obj/examples/webrtc_unity_plugin/unity_plugin_apis.obj
ninja: build stopped: subcommand failed.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/513baafe-333b-4a8f-90d9-e28e357a204b%40googlegroups.com.