-
Notifications
You must be signed in to change notification settings - Fork 38
Building from source on windows #269
Comments
This is the cause of the failure:
Neither |
I am running windows 10, within PowerShell. |
@vitiral I have created a workaround in the build script which allows successful compilation. See master...Josh-Thompson:master . Would you like me to submit a PR? It seems like a workaround is needed because std::process::Command.current_dir() dies if you give it a path in extended length path syntax... which is the syntax std::path::Path provides 🤦♂. I plan to do some further testing on that issue tonight, ensure it really is broken the way I think it is, and then submit an issue with the Rust language team, but for now this workaround enables compilation on Windows. I am now stuck on linking artifact-frontend. I have cargo-web installed, do I need to modify anything else? I am getting several occurences of |
Hey Josh, thanks for looking into this. It is really helpful to have someone with windows who can triage issues. I would love a PR. I'm not totally sure what the code around The build phase is in https://github.com/vitiral/artifact/blob/master/ci/script.sh I think you need to do the following:
Sorry if that wasn't completely clear. I used to do this within |
Hi again! Happy to help. To give some insight into why that regex is there - Windows paths usually look like My regex workaround is to grab the string starting only from the first alphabetical character, i.e. the drive letter. This ensures that rust doesn't break trying to pass that to std::process::Command. Hope that makes sense. |
Using cargo-web deploy before doing cargo-build like that worked successfully! I was able to fully compile the project :) |
PR #270 opened for this 😄 |
Hello,
I'm interested in using Artifact for a project, but I'm developing on Windows. I downloaded the source and have attempted to compile - both mdbook and cargo-web are installed, but even with both of them in place, any post-2.0 release of artifact fails to build with the following error:
The backtrace seemed pretty long and unhelpful. The most prominent note in it was several occurences of
unresolved external symbol emscripten_asm_const_int
. If someone is willing to point me in the right direction, I'd love to do what needs to get done to get this working.The text was updated successfully, but these errors were encountered: