dilevin / computer-graphics-meshes

Computer Graphics Assignment about Meshes
1 stars 5 forks source link

Windows Build Issue #48

Open hanmindev opened 10 months ago

hanmindev commented 10 months ago

Leaving this just in case anyone is facing the same issue I did. If you are having issues with building this in Windows, try changing the code generator from Ninja to Visual Studio.

EDIT: The one that ended up working best for me was the Ninja Multi-Config, just in case it helps anyone out

DanielZFLiu commented 10 months ago

I cannot express how much this helped. For those of you confused, when you build in windows, if you see the "ninja: build stopped: subcommand failed.", it probably means you can use this fix. In my part, I saw a lot of "defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:" error message.

To change from ninja to visual studio, open CMakeSettings.json (find the file in your main projects folder) -> show advanced settings -> cmake generator, in that dropdown find Visual Studio 17 2022 Win64.