-
Notifications
You must be signed in to change notification settings - Fork 35
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
Build failure with some MSBuild versions #4
Comments
Please follow the build instruction at https://webrtc.googlesource.com/src/+/refs/heads/master/docs/native-code/development/index.md. You can checkout this repository after that. |
i've done all of that. The main webrtc repo is building fine. The command to build the project also fails using msbuild, what's the magic sauce to get the build working? It's encoding quotes all over the place and generating garbled commands. Is there a switch to pass to msbuild? What's the command line? |
This repository is a fork of the main webrtc repo. You can run:
at the
Read the |
"Source is cloned to a ubuntu instance and webrtc depot tools are installed and added to path. Modified the unity.msbuildproj file for Release and Targets is LinuxX64;WinX64." How are you building the unity.msbuildproj project? could you share your command line? msbuild is changing every \ to a /, not escaping the quotes and the build is failling immediately. |
I'm sorry, it is not your fault. I reproduced the bug with:
However, I cannot reproduce the bug with:
I'll reopen this issue. |
are there any other dependencies? I called dotnet msbuild and it's now failing with: |
/sdk/c_headers_test.c is referencing multiple files that don't exist in the repo.. need to remove #include "sdk/c/api/task_queue/queued_task.h" from the file |
Looks like crosscompiling for Windows on Linux is not supported without manually setting up the windows SDK. Can't find any info about how to do that. Would be good to have some in the instructions. So I setup a build environment on windows but it's erroring out with lots of code errors. If you have any pointers on how to get the cross compile for windows working i'd love to hear them. It's looking for GYP_MSVS_OVERRIDE_PATH and WINDOWSSDKDIR. |
I actually cross-compile for Windows on Linux. Follow the instructions of Chrome/win. The procedure is basically same with one of WebRTC. |
should link to that page in the instructions. Also note that |
where you have [MarshalAs(UnmanagedType.SysUInt)] - that isn't working on dotnet, should just be able to pass these in as IntPtr or U4. |
It seems that for this ms build version, the problem persists, at least on Mac Os:
` ` |
I'm sorry for replying comments in this issue late, too.
This project aims to minimize differences from the upstream while providing key features, namely .NET bindings and improved iOS support. Therefore, it will not contain any instructions which are not present in the upstream documentation.
Use .NET Core. An issue of MSBuild indicates the bug (or the intentional behavior) is in its Mono support. |
…nnects. This fixes a bug where transport_overhead_bytes_per_packet_ is sometimes not set and therefore not included in the BWE. (cherry picked from commit b4cdd62) Bug: webrtc:11359, chromium:1053421 Change-Id: Id3593299c6bcd7ce3c44a7b148c202240b3f1981 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/168525 Reviewed-by: Christoffer Rodbro <crodbro@webrtc.org> Reviewed-by: Sebastian Jansson <srte@webrtc.org> Commit-Queue: Jakob Ivarsson <jakobi@webrtc.org> Cr-Original-Commit-Position: refs/heads/master@{#30522} Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/168723 Cr-Commit-Position: refs/branch-heads/4044@{#4} Cr-Branched-From: be99ee8-refs/heads/master@{#30432}
New params have recently been added, but ToString() was not updated. (cherry picked from commit ab4a492) Bug: chromium:1135177 Change-Id: I2115ccb08d29e860a658284d096e48da17daaedd Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/186267 Commit-Queue: Alessio Bazzica <alessiob@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Cr-Original-Commit-Position: refs/heads/master@{#32283} Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/187480 Reviewed-by: Per Åhgren <peah@webrtc.org> Reviewed-by: Minyue Li <minyue@webrtc.org> Cr-Commit-Position: refs/branch-heads/4280@{#4} Cr-Branched-From: 75b9ab6-refs/heads/master@{#32272}
Since we are not going to fix this issue anytime soon, I explicitly noted that Mono shouldn't be used for building with commit 91aeeca and thereby I'm closing this issue. Use .NET Core if you run into a problem when building with Mono. Open another issue otherwise. |
Source is cloned to a ubuntu instance and webrtc depot tools are installed and added to path. Modified the unity.msbuildproj file for Release and Targets is LinuxX64;WinX64.
Calling msbuild unity.msbuildproj is returning:
gn.py: Could not find checkout in any parent of the current path. This must be run inside a checkout.
I copied the buildtools and build directory over from the webrtc directory (which is all building fine) and it passed this step and is now failing saying the gn gen command is malformed (error is "I have no idea what this is", pointing at:
target_os=/linux/
-----------^
what am i missing here? Was I supposed to copy the directories over?
removing the " and just calling target_os=linux then results in the output in the console
showing
--root="/home/user/pixiv/webrtc/sdk/dotnet/unity/"../../..
which is obviously returning "error: Unterminated quoted string"
The text was updated successfully, but these errors were encountered: