Cannot compile UnrealEngine 4.11.2
I have a problem. Yesterday i tried to add a new C++ class to one of my projects and compiling process failed for some reason. I tried to create a new basic C++ project it failed also at compiling. I started to browse the forums for a solution, but nothing worked so far. I tried to reinstall Visual Studio 2015 Community (i also have update 2), Unreal Engine. I checked the FAQ and did what it told me, it didnt help. I tried a lot of suggestions, i would say every suggestion what i could find, but nothing worked so far. I hope someone has a new idea because i'm stuck at the momment. Please help me. Thank you in advance.
Here is the error massage:
The project could not be compiled. Would you like to open it in Visual Studio?
Running C:/Program Files (x86)/Epic Games/4.11/Engine/Binaries/DotNET/UnrealBuildTool.exe MyProject Development Win64 -project="C:/Documents/Unreal Projects/MyProject/MyProject.uproject" -editorrecompile -progress -noubtmakefiles -NoHotReloadFromIDE -2015 @progress push 5% Parsing headers for MyProjectEditor Running UnrealHeaderTool "C:\Users\Joni\Documents\Unreal Projects\MyProject\MyProject.uproject" "C:\Documents\Unreal Projects\MyProject\Intermediate\Build\Win64\MyProjectEditor\Development\UnrealHeaderTool.manifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed Reflection code generated for MyProjectEditor in 4,3270175 seconds @progress pop Performing 9 actions (2 in parallel) [2/9] Resource PCLaunch.rc C:\Program Files (x86)\Epic Games\4.11\Engine\Source\Runtime\Launch\Resources\Windows\PCLaunch.rc(10) : fatal error RC1015: cannot open include file 'windows.h'. PCH.MyProject.h.cpp [3/9] Resource ModuleVersionResource.rc.inl C:\Program Files (x86)\Epic Games\4.11\Engine\Source\Runtime\Core\Resources\Windows\ModuleVersionResource.rc.inl(3) : fatal error RC1015: cannot open include file 'windows.h'. c:\program files (x86)\epic games\4.11\engine\source\runtime\core\public\Windows/MinWindows.h(62): fatal error C1083: Cannot open include file: 'windows.h': No such file or directory -------- End Detailed Actions Stats ----------------------------------------------------------- ERROR: UBT ERROR: Failed to produce item: C:\Users\Joni\Documents\Unreal Projects\MyProject\Binaries\Win64\UE4Editor-MyProject.dll Total build time: 11,21 seconds
asked May 21 '16 at 05:19 PM in C++ Programming
I solved my problem. For some reason VS didn't read in the necessary files from MicrosoftSDKs, so i had to manually copy them to the folders, where error log said they are missing.
answered May 23 '16 at 10:53 AM
There is an error in the log you posted that seems unrelated to UE4.
"fatal error RC1015: cannot open include file 'windows.h'."
Be sure to look for these kinds of messages that you can google, this particular message gives loads of hits on google, with a lot of suggestions on what you can do to fix the problem.
Having said that, it seems like a complicated problem, and as of now I have a couple of suggestions for you:
answered May 21 '16 at 06:06 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here