garyttierney / me3

A framework for modding and instrumenting games.
90 stars 6 forks source link

Build fails on windows saying link.exe not found despite C++ buildtools being installed #21

Closed Column01 closed 3 months ago

Column01 commented 3 months ago

Following the instructions in the README, I was unable to get the project to build as it gave me the following error:

error: linker `lld` not found
  |
  = note: program not found

note: the msvc targets depend on the msvc linker but `link.exe` was not found

note: please ensure that Visual Studio 2017 or later, or Build Tools for Visual Studio were installed with the Visual C++ option.

note: VS Code is a different product, and is not sufficient.

The note says to install the C++ build tools, but the problem is they are already installed as per your instructions. Attached is a screenshot showing the error in full, the build tools being installed and also my Rust version. I tried reinstalling both the build tools and rust to no avail. The screenshot shows a minimal install for the C++ building as per some stack overflow issues about this, but it also doesn't work when using the full C++ development suite installed either.

image

Note I also added the msvc bin folder from buildtools to my path manually so that link.exe is on the path and it also did not work so I have no clue what to do from here

Column01 commented 3 months ago

I think this is a rust configuration issue actually, no idea why this is happening, but its not your fault afaik. My apologizes!

garyttierney commented 3 months ago

Are you missing the Clang/LLVM visual studio component by any chance?

Column01 commented 3 months ago

This one?

image

Column01 commented 3 months ago

It should be noted that I have since installed VS Community 2022 and it still doesn't work properly

Column01 commented 3 months ago

Installed the above option and it still does not work so I give up