I’m quite new to compiling my own binaries but over the last few days I gave it a try. Viv was kind to help me out a bit over PM but as I run into some new trouble I wondered if anyone could help me out.
Here’s a link with instructions. The idea is to install Rust and use the GNU compiler instead of the MSVS (microsoft visual C) as that ones gives trouble. I’m on Win 10/64. I’ve installed both requested programs and afaik my paths are right:
One of the problems that shows up while compiling is the request for DLLs. I’ve found some more info in their repo about Cargo being broken for Win64. There’s talk about a DLL I’ve seen today as well.
I’ve tried to use the nightly build as well:
After this I proceed with installation.
This is what I get after I download the Vault repo from GH and try to build the thing locally:
Missing VCRuntime140 normally would just point to needing to install the Visual C++ Redistributable for Visual Studio 2015. Your env variables however seem a bit different to what I got for msys, just to try:
Open up command prompt
try gcc --version . I’m expecting this to maybe fail with something like gcc not found
run set PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin;%PATH%
run gcc --version this should give you something like:
gcc (Rev1, Built by MSYS2 project) 5.3.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.```
if it does, then try a `cargo clean && cargo build --release`
You are right, did run your path settings and afterwards it did respond with version info etc. here’s another bug I just got, I saw this one earlier as well.
Not sure I followed this, but yes after running set PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin;%PATH%, you’d expect gcc --version to return output like what I pasted above.
Do note setting PATH like this is not persistent. So once you close command prompt and open again or open new window, you’d have to set it again. You can either edit the env variables from UI or just use setx PATH "C:\msys64\mingw64\bin;C:\msys64\usr\bin;%PATH%" to have it persistent.
My guess is your rust installation is still msvc based. Once you get gcc --version to print the output than the error, I’d almost install rust for windows-gnu again for 1.14.0 and try a fresh build so cargo clean && cargo build --release and hopefully should be sorted.