Hello there.
I’m trying to setup VS2013 and UE4 to start developing using a basic C++ template but I can’t get it running properly…
I can create a new project from Blueprints and it runs, so it should not be a problem of UE installation.
But when I try to create a new project from C++ template, UE4 says there was an error while compiling and lets me open it with VS. When I try to build it from VS it throws me that error:
1>------ Build started: Project: MyProject, Configuration: DebugGame_Editor x64 ------
1> Performing 7 actions (4 in parallel)
1> [3/7] Resource MyProject.rc
1> [2/7] Resource ModuleVersionResource.rc.inl
1>C:\Program Files\Epic Games\4.7\Engine\Source\Runtime\Core\Resources\Windows\ModuleVersionResource.rc.inl(3): fatal error RC1015: cannot open include file 'windows.h'.
1>
1>K:\PROYECTOS\Juegos\UE4\MyProject\Source\MyProject\Resources\Windows\MyProject.rc(8): fatal error RC1015: cannot open include file 'windows.h'.
1>
1> PCH.MyProject.MyProject.h.cpp
1>C:\Program Files\Epic Games\4.7\Engine\Source\Runtime\Core\Public\HAL\PlatformIncludes.h(5): fatal error C1083: Cannot open include file: 'new': No such file or directory
1> -------- End Detailed Actions Stats -----------------------------------------------------------
1>ERROR : UBT error : Failed to produce item: K:\PROYECTOS\Juegos\UE4\MyProject\Binaries\Win64\UE4Editor-MyProject-Win64-DebugGame.dll
1> Cumulative action seconds (4 processors): 0,00 building projects, 0,75 compiling, 0,00 creating app bundles, 0,00 generating debug info, 0,00 linking, 0,00 other
1> UBT execution time: 4,67 seconds
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets(38,5): error MSB3073: The command ""C:\Program Files\Epic Games\4.7\Engine\Build\BatchFiles\Build.bat" MyProjectEditor Win64 DebugGame "K:\PROYECTOS\Juegos\UE4\MyProject\MyProject.uproject" -rocket" exited with code -1.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I’ve removed every Visual Studio program and folder (from /Program Files
and /Program Files(x86)
), excepting VS2010 for Office.
I reinstalled VS2013 Community directly from Microsoft’s webpage, and also did it from UE4 launcher (when you try to create a new project from C++ templates it checks if you have VS and, if not, tells you to install it).
When I installed VS I did not choose to install Windows Phone SDK, SQL for Visual Studio, Microsoft App helper and other optional stuff it lets you install.
EDIT: I reinstalled Epic Games Launcher (and, of course, UE4) cleaning the registry and deleting all folders related under Program Files. Still doesn’t work.
I don’t know why it can’t find ‘windows.h’ and haven’t found any effective solution anywhere.
Thanks in advance to anyone who can help me.