steeno / EU4ConsolePatcher

A simple memory patcher which enables the internal developer console in ironman mode
MIT License
86 stars 15 forks source link

I'm having trouble creating the .exe and building. #2

Closed RarePossum closed 5 years ago

RarePossum commented 5 years ago

Apologies for my inexperience, but could you say, record a video of how to build. I've experimented with code but never actually built anything. When I try to build it, it has an error saying the Windows SDK version could not be found or something. That I don't have version. 10.0.17134.0

steeno commented 5 years ago

Hi RarePossum, don't hesitate to ask questions. The explanation in the README is far from great and complete. I assume that there is a mismatch between the installed Windows SDK version on your system and the WindowsTargetPlatformVersion parameter in the project file. I thought that Visual Studio would inform the user to update the project if the currently set Windows SDK version is not available on the system. Are you using Visual Studio or just msbuild to compile the project?

If you are using Visual Studio, you could open the solution file, right click on the EU4ConsolePatcher project, select Properties, navigate to Configuration Properties -> General and select a proper Windows SDK Version on the right side and try to build the project again.

devenv_Yp2eUFkJqq

If this does not help it would be nice to know how you tried to build the project.

RarePossum commented 5 years ago

Thank you, that worked. However, I can't find nmake release or nmake debug. Any help on that?

steeno commented 5 years ago

Have you installed the VC++ compiler and libs package in Visual Studio? Open Visual Studio, open Tools -> Get Tools and Features... in the top menu bar.

devenv_1VWHACpMdm

A new Dialog should appear. Select Single components in this new window, scroll down to Compiler, build tools and runtimes and select one of the VC++ toolset versions listed there and click on change. Unfortunately i can only other a screen of the german version.

vs_installershell_EQscRjyM3C

If this still does not help, just select Desktop development with c++ in the workloads section.

vs_installershell_WbiPeFudMR

And finally after opening the project in Visual Studio, just right click on the project and click on build.

devenv_JoiIAo0kBg

EDIT: You don't need to do the cmdline steps, you can just use Visual Studio directly to build the project. The cmdline instructions are just an alternative for people which may have installed the build tools but not VS.

RarePossum commented 5 years ago

I have now managed to build it, thanks to you, but I can't find the .exe Can you help with that?

steeno commented 5 years ago

It depends on the build configuration. So f.e. if you have chosen Release / x64 you should find a x64/Release folder in the project folder with the compiled .exe in it.

devenv_scthAiePte explorer_1X29s0HXFE

RarePossum commented 5 years ago

Thank you so much. It worked.