Hello readers, this is a summary of this thread and how to set-up the compiler for unreal engine and avoid errors, solved by: @Arodi007 and @villinx
You will need visual studio installer and visual studio 2022 downloaded in order for unreal engine to be able to compile and package your game build.
- You must download the SDK (software developement tool) and MSVC (microsoft visual compiler) from visual studio installer.
Press ‘modify’
there are tabs at the top, press ‘individual components’ this is the list of all the SDK and msvc available to download.
2. choosing the SDK - you must choose it based on your version of windows, you can check your windows version by start > and type ‘search winver’ into the search bar. If you don’t know which version to get, you can ask in the forum or search it on google.
3. choosing the msvc - you can check online which version of mscv is compatible with your version of unreal engine. typically, if you’re using a newer compiler but an older version of unreal engine, they won’t be compatible, If you don’t know which version to download, you can leave a question in the forum or search on google.
Make sure to download ‘x64/x84 build tools’ of your msvc and not ‘arms build’ version.
4. delete any old msvc if you aren’t using them. You can do this within the visual studio installer by unchecking them and pressing modify, which will uninstall them for you.
5. Telling unreal to use the new msvc / sdk you downloaded.
To do this, in the windows search bar, search for the folder %appdata%, navigate unreal > buildtools > buildconfiguration
Open this ‘build configuration’ file in any text editor, you must update this code like this:
You may need to type it out like this, the parts highlighted in yellow must be adjusted to whatever msvc you have downloaded
6. save the file and restart unreal engine. This should mean the compiler is correctly set up ready to package your game build.