Hi everyone,
I’m having a hard time building the engine from source consistently. Sometimes it works sometimes it doesn’t. I tried here to do a fresh build and I’m stuck with errors.
Severity | Code | Description | Project | File | Line | Suppression State |
---|---|---|---|---|---|---|
Error | C4668 | ‘_NOEXCEPT_TYPES_SUPPORTED’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif’ | UE4 | C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\winrt\wrl\event.h | 211 | |
Error | C4668 | ‘__cpp_noexcept_function_type’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif’ | UE4 | C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\winrt\wrl\event.h | 211 | |
Error | C4668 | ‘_NOEXCEPT_TYPES_SUPPORTED’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif’ | UE4 | C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\winrt\wrl\event.h | 371 | |
Error | C4668 | ‘__cpp_noexcept_function_type’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif’ | UE4 | C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\winrt\wrl\event.h | 371 | |
Error | MSB3073 | The command …..\Build\BatchFiles\Build.bat -Target=UE4Editor Win64 Development -Target=ShaderCompileWorker Win64 Development -Quiet -WaitMutex -FromMsBuild exited with code 6. | UE4 | C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets | 45 |
To reproduce here are the step I do:
Clone UE
git clone -b 4.27.2-release https://github.com/EpicGames/UnrealEngine.git 4.27.2-release
Launch Setup.bat, GenerateProjectFiles.bat
Open UE4.sln → Setup Development Editor & Win64 → right click on UE4 → Build
I use Visual Studio Community 2019, version 16.11.19
In the Tools & Features I have selected .NET desktop, C++ desktop, Unity video game & C++ games development (the names might differentiate but you get the idea)
Here is the log of the build
Build started...
1>------ Build started: Project: UE4, Configuration: Development_Editor x64 ------
1>Using 'git status' to determine working set for adaptive non-unity build (C:\Epic\4.27.2-release).
1>Building UE4Editor and ShaderCompileWorker...
1>Using Visual Studio 2019 14.29.30146 toolchain (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133) and Windows 10.0.22621.0 SDK (C:\Program Files (x86)\Windows Kits\10).
1>Building 4 actions with 24 processes...
1> [1/4] Module.HoloLensTargetPlatform.cpp
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\winrt\wrl/event.h(211): error C4668: '_NOEXCEPT_TYPES_SUPPORTED' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\winrt\wrl/event.h(211): error C4668: '__cpp_noexcept_function_type' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\winrt\wrl/event.h(371): error C4668: '_NOEXCEPT_TYPES_SUPPORTED' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\winrt\wrl/event.h(371): error C4668: '__cpp_noexcept_function_type' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets(45,5): error MSB3073: The command "..\..\Build\BatchFiles\Build.bat -Target="UE4Editor Win64 Development" -Target="ShaderCompileWorker Win64 Development -Quiet" -WaitMutex -FromMsBuild" exited with code 6.
1>Done building project "UE4.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========
Any idea what I’m missing ? Is there something that should be installed on the computer ?