hannobraun / vndf-2020

Von Neumann Defense Force - a game about spaceships
2 stars 0 forks source link

VCRUNTIME140_1.dll missing on Windows #22

Open hannobraun opened 4 years ago

hannobraun commented 4 years ago

Some Windows installations complain about some DLL being missing. Unfortunately I haven't saved, nor do I remember, the actual error message, and I don't have a Windows installation to reproduce this on.

The workaround for this problem is to download the "Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019" from this URL: https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads

Unfortunately I don't have much Windows knowledge to fix this properly (presumably whatever is missing could be linked statically?), so any help would be appreciated. And if you happen to experience this error, please post the specific error message here, as well as any other information that might be helpful.

hannobraun commented 4 years ago

Here's the error message (in German): image_2020_04_18T19_43_11_101Z

hannobraun commented 4 years ago

I did some experimenting. Building for x86_64-pc-windows-gnu doesn't work, as some dependency doesn't build for that target: https://github.com/hannobraun/vndf/runs/598387087

I instead tried to statically link everything according to the instructions here: https://stackoverflow.com/questions/31770604/how-to-generate-statically-linked-executables/44387312#44387312

This builds, but I haven't heard back from any Windows testers yet. I don't know if it works at all, or if it solves the problem.

hannobraun commented 4 years ago

The Windows binaries work, but all testers had previously installed the "Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019" thing (see issue description), so I can't confirm that this problem is actually fixed.

If anyone who never installed it can confirm that the latest binaries work, that would be great.