Compiling source code fails,Here‘re the info I collected,(VS2017)
[1/37] Module.Sockets.cpp
2>D:\Windows
Kits\10\include\10.0.18362.0\shared\ndis/version.h(7):
error C4668:
‘NDIS_MINIPORT_MAJOR_VERSION’ is not
defined as a preprocessor macro,
replacing with ‘0’ for ‘#if/#elif’
[2/37] Module.Icmp.cpp
2>D:\Windows
Kits\10\include\10.0.18362.0\shared\ndis/version.h(7):
error C4668:
‘NDIS_MINIPORT_MAJOR_VERSION’ is not
defined as a preprocessor macro,
replacing with ‘0’ for ‘#if/#elif’
2>UnrealBuildTool : error : UBT
ERROR: Failed to produce item:
F:\UnrealEngine421\Engine\Intermediate\Build\Win64\UE4Editor\Development\Sockets\UE4Editor-Sockets.lib
2> (see
…/Programs/UnrealBuildTool/Log.txt
for full exception trace)
2>Total build time: 70.19 seconds (Parallel executor: 0.00 seconds)
2>D:\Microsoft Visual Studio
2017\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5):
error MSB3075: The command
“…..\Build\BatchFiles\Build.bat
UE4Editor Win64 Development
-WaitMutex -FromMsBuild -2017” exited with code 5. Please verify
that you have sufficient rights to
run this command.
2>Done building project “UE4.vcxproj” – FAILED.
Here is the UnrealBuildTool log
how to solve this,any suggestion, Thank you in advance。
Solve the first one : error C4668,remove or comment the 10.0.18362.0 folder
I didn't install version 10.0.18362.0,
Solve the second one : error MSB3075, run the project with administrator privileges.
Any update on this? I need that Windows SDK version for my project
That solution seems to working but it seems the generated project is missing some definitions or Windows SDK (10.0.18362.0) doesn’t set a default NDIS###_MINIPORT version to use.
Here are some posts related to the issue:
^ On the link above for the accepted answer please notice that one of the responses states simply adding the proper definition on the project:
NDIS620_MINIPORT=1
https://docs.microsoft.com/en-us/windows-hardware/drivers/network/compiling-an-ndis-6-30-driver
Or remove all installed Windows SDK versions and only install 10.0.17763.0
Removing Windows SDK 10.0.18362 is not a possibility for my requirements. Adding definitions to UBT seems to be the best approach for now