Windows 10 build error xray_electron\node_modules\napi\Cargo.toml can't be found #23
Comments
I was getting the same error on my linux machine, I installed cargo and it solved the problem. Try installing and see if it works. @Ben3eeE |
Hey, thanks for the tip 🙇 I do have cargo installed though:
Is there some step I need to perform with cargo to get it to build? |
check out #27 cargo and clang solved the above problem but getting new error |
Looks like the napi script wasn't run the correct working directory. For my installation on win 10, there is only xray (symlinked) in node_modues, and there is some Cargo.toml files in those places. However, the error message points to |
Yeah. I think it's supposed to be Two other things I found:
This is A lot of maybe and uncertainty from me because I haven't had time to dig into it. But hopefully this helps 🙂 |
Further down the road, the So my workaround for now is, go to |
LoL @Ben3eeE I just stumbled on the include path problem. Definitely this won't work as the README says it was only tested on Mac OS. I don't think cargo would use any external compiler unless there has been any specific setups. Right now I am trying to figure out how to plug the src of node correctly. |
After manually setting up headers for node@v8, I tried various setups (like stable-msvc, stable-gnu, mingw64, etc.), for some reason cc-rs would bind to use particular compiler, yet I couldn't find a way to specify usage of clang. As such, they kept complaining the flag
If there is any ways i can tell cc-rs to use clang, that would be very helpful. |
Maybe clang is not required on Windows? The The Which is part of platform specific arguments. Maybe these are incorrect on Windows? It seems possible that can be are incorrect since it's not been tested on Windows yet. Just guessing since I have no experience and haven't tested myself yet 😀 |
I'm going to close this out because we're going to make a pretty big shift in our architecture that will probably change the build situation. If after that change (some time next week) there are new issues building, feel free to reopen. Thanks again for your interest. |
@nathansobo Don't consider build on Windows anymore?:sob::cry::sweat::cold_sweat::disappointed::u7533: |
@canfeit If you still have issues building now that the architecture change is done I recommend you open a new issue with as much details as possible about the issue you are having. I haven't had the chance to test it myself yet. |
It’s probably because we’re using domain sockets to connect to the server. This is definitely solvable by switching to named pipes on windows, but their semantics are a bit different and so for now we decided to delay dealing with it. This is definitely an area where we wild accept a PR. Otherwise we will get to it once we make a bit more progress elsewhere. |
Following the instructions in the contribution guide:
npm install
npm install
exits saying thatI:\xray\xray\xray_electron\node_modules\napi\Cargo.toml
does not exist.I've checked inside that folder and it does not exist.
No rush for me to get anything up and running just mostly curious 🙂
Versions
Full output
The text was updated successfully, but these errors were encountered: