Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdding Documentation for MSVC #13206
Comments
|
Thanks! I'm trying this out right now, and here's what I've got for some initial steps. I've only tried it on one non-clean Virtual Machine so far, though... Windows MSVC pre-setup
If this does not work, you may need to reboot for the changed PATH settings to take effect. Clone servo
Build servo
|
|
I'm trying this right now, but it's failing to compile
Edit: I've forgotten to mention that I'm doing a release build ( |
|
Note that it is not enough to simply have Also I am disappointed that there is no |
|
Selecting the "Add to PATH" option in the Python installer added both the Python installation's root directory and the |
|
I guess it worked, sorta. Attempting to actually run the result...
|
|
@retep998 You need to specify a URL. |
|
@Coder206 I did |
|
@retep998 That should do it. I stand corrected mine is outputting like yours. Win 10 Anniversary? |
|
@retep998 I suspect this is because of dummy font settings in gfx. |
AMD Radeon R9 380 with up to date drivers with full OpenGL 4.5 support. |
|
@retep998 Thanks, this seems to be a general Windows or perhaps just Windows 10 issue. |
|
By looking at
which is unfortunately never shown when building, because it ends up in stdout instead of stderr, so it won't be forwarded by cargo. Setting |
|
Thanks, everybody! It looks like the instructions are correct (though need a fix for @Boddlnagg's issue, potentially) enough to put on the website. That said, as @retep998 and @Coder206 have noticed and I can confirm, the MSVC build currently does not complete loading and is blank. We'll have to look into that :-) |
|
@larsbergstrom I think I had issues with storage space on my VM. What are your thoughts (or anyone's) about adding a recommended disk space? |
|
@retep998 Thanks for doing this. I think this is why I had issues compiling (ie compiling "script" failed). |
|
Yeah, I think that a "low disk space warning" (as a separate issue) might be worthwhile. Right now, when we run out of space, the script build fails in a way that is both opaque and non-trivial to recover from - you typically have to do a clean build. |
|
@larsbergstrom Success on clean Windows 10 machine |
|
You don't need Visual Studio. |
|
@Jayflux I like that much better, it saves lots of space |
|
Build failing for me
When using Vlad's fork i get this Testing on cmd
|
|
Can you do
|
|
|
|
|
The instructions worked for me as well. @Coder206 Is there an open issue for the problem of seeing a white screen instead of the contents of the website? I am experiencing the same problem on Windows 10 Educational (Version 10.0.10586) with an Intel HD Graphics 4000. |
|
@aochagavia No there is no issue for it |
|
Should I create a new one? |
|
I would think it would be a good idea. Thanks for doing this @aochagavia! |
|
in mozjs makefile.cargo, there's a line: For me |
|
@vlad are there any steps to working out what pwd is giving me? Do i need to set the moztools paths env variable? |
|
@vvuk here are the results (my host machine, not VM)
CMD
Also... However, my installation of python is: |
@Boddlnagg I did the same thing but its still failling for me |
|
@Jayflux Did you set it to the path containing |
|
@Boddlnagg i pointed directly to the python.exe itself and i still get the same error |
|
So if #13272 is anything to go by.. Visual C++ build tools is giving different results to the full Visual Studio build I'm going to try doing this again, uninstalling the Visual C++ build tools and instead using the Visual Studio full install, to see if that has anything to do with it |
|
@larsbergstrom @vvuk I now get the white screen like everyone else |
Instructions for building with the MSVC toolchain <!-- Please describe your changes on the following line: --> Adding instructions to build using the MSVC toolchain. r? @vvuk --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x ] `./mach build -d` does not report any errors - [x ] `./mach test-tidy` does not report any errors - [x ] These changes fix #13206 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [x ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13621) <!-- Reviewable:end -->




In the light of #12916's completion, it's important to let the contributors know how to setup their Windows environments for Servo.
Files to modify: Anything with documentation (ie, README.md)
cc @larsbergstrom