Unreal Engine 4.10 没有创建 C++ 项目
Unreal Engine 4.10 is not creating c++ project
您好,我想在 UE4.10 中使用基本的 C++ 代码创建一个项目。但是创建的时候UE报错:
The project could not be compiled. Would you like to open it in Visual Studio? Running E:/Program Files (x86)/Epic Games/4.10/Engine/Binaries/DotNET/UnrealBuildTool.exe MyProject Development Win64 -project="C:/Users/allst/Documents/Unreal Projects/MyProject/MyProject.uproject" -rocket -editorrecompile -progress -noubtmakefiles -2015 @progress push 5% Parsing headers for MyProjectEditor Running UnrealHeaderTool "C:/Users/allst/Documents/Unreal Projects/MyProject/MyProject.uproject" "C:\Users\allst\Documents\Unreal Projects\MyProject\Intermediate\Build\Win64\MyProjectEditor\Development\UnrealHeaderTool.manifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -rocket -installed Reflection code generated for MyProjectEditor in 17,8672852 seconds @progress pop Performing 7 actions (2 in parallel) [2/7] Resource PCLaunch.rc E:\Program Files (x86)\Epic Games.10\Engine\Source\Runtime\Launch\Resources\Windows\PCLaunch.rc(10) : fatal error RC1015: cannot open include file 'windows.h'. [3/7] Resource ModuleVersionResource.rc.inl E:\Program Files (x86)\Epic Games.10\Engine\Source\Runtime\Core\Resources\Windows\ModuleVersionResource.rc.inl(3) : fatal error RC1015: cannot open include file 'windows.h'. PCH.MyProject.h.cpp E:\Program Files (x86)\Epic Games.10\Engine\Source\Runtime\Core\Public\HAL\PlatformIncludes.h(5): fatal error C1083: Cannot open include file: 'new': No such file or directory -------- End Detailed Actions Stats ----------------------------------------------------------- ERROR: UBT ERROR: Failed to produce item: C:\Users\allst\Documents\Unreal Projects\MyProject\Binaries\Win64\UE4Editor-MyProject.dll Total build time: 90,64 seconds
我有 VS 2013 专业版,但我被要求安装 VS 2015 社区,我已经做了,但问题仍然存在。你知道现在应该做什么吗?我将不胜感激任何建议。祝你有美好的一天!
请确认在安装 Visual Studio 2015 时选择了 "Common Tools for Visual C++ 2015"。它不会自动安装,您需要为此进行自定义安装。
这似乎是一个已知问题,而 运行 Unreal Engine 4.12.5 之前 Visual Studio Community 2015 with Update 3.
假设您已经安装了 Common Tools for Visual C++ 2015。
您可以通过以下方式检查您是否 运行 VS2015 with Update 3:
Visual Studio 2015
> Help
> About Microsoft Visual Studio
解决方案 1:更新 Unreal Engine > 4.12.5
正在将您的 Unreal Engine 更新到 4.12.5 以上的版本
前往
Epic Game launcher
> Unreal Engine
> Library
> Engine Version
更新引擎。
解决方案 2:在没有更新 3 的情况下重新安装 VS2015
按照 Infected_Post here.
的说明进行操作
以下是他发布的内容:
- Completely uninstall visual studio
- Use the Extra visual studio uninstall cleaner. Found on
github > Microsoft/VisualStudioUninstaller/releases
- Delete the remaining Visual Studio installation folder.
- Do a restart and this machine should be ready for a clean installation
- Download the Visual Studio 2015 installer without any updates: https://www.microsoft.com/en-us/download/details.aspx?id=48146
- Now make sure you do a custom installation and deselect update 3!!!
- Once the installation is finished you need to generate visual studio project files for your unreal projects.
您好,我想在 UE4.10 中使用基本的 C++ 代码创建一个项目。但是创建的时候UE报错:
The project could not be compiled. Would you like to open it in Visual Studio? Running E:/Program Files (x86)/Epic Games/4.10/Engine/Binaries/DotNET/UnrealBuildTool.exe MyProject Development Win64 -project="C:/Users/allst/Documents/Unreal Projects/MyProject/MyProject.uproject" -rocket -editorrecompile -progress -noubtmakefiles -2015 @progress push 5% Parsing headers for MyProjectEditor Running UnrealHeaderTool "C:/Users/allst/Documents/Unreal Projects/MyProject/MyProject.uproject" "C:\Users\allst\Documents\Unreal Projects\MyProject\Intermediate\Build\Win64\MyProjectEditor\Development\UnrealHeaderTool.manifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -rocket -installed Reflection code generated for MyProjectEditor in 17,8672852 seconds @progress pop Performing 7 actions (2 in parallel) [2/7] Resource PCLaunch.rc E:\Program Files (x86)\Epic Games.10\Engine\Source\Runtime\Launch\Resources\Windows\PCLaunch.rc(10) : fatal error RC1015: cannot open include file 'windows.h'. [3/7] Resource ModuleVersionResource.rc.inl E:\Program Files (x86)\Epic Games.10\Engine\Source\Runtime\Core\Resources\Windows\ModuleVersionResource.rc.inl(3) : fatal error RC1015: cannot open include file 'windows.h'. PCH.MyProject.h.cpp E:\Program Files (x86)\Epic Games.10\Engine\Source\Runtime\Core\Public\HAL\PlatformIncludes.h(5): fatal error C1083: Cannot open include file: 'new': No such file or directory -------- End Detailed Actions Stats ----------------------------------------------------------- ERROR: UBT ERROR: Failed to produce item: C:\Users\allst\Documents\Unreal Projects\MyProject\Binaries\Win64\UE4Editor-MyProject.dll Total build time: 90,64 seconds
我有 VS 2013 专业版,但我被要求安装 VS 2015 社区,我已经做了,但问题仍然存在。你知道现在应该做什么吗?我将不胜感激任何建议。祝你有美好的一天!
请确认在安装 Visual Studio 2015 时选择了 "Common Tools for Visual C++ 2015"。它不会自动安装,您需要为此进行自定义安装。
这似乎是一个已知问题,而 运行 Unreal Engine 4.12.5 之前 Visual Studio Community 2015 with Update 3.
假设您已经安装了 Common Tools for Visual C++ 2015。 您可以通过以下方式检查您是否 运行 VS2015 with Update 3:
Visual Studio 2015
> Help
> About Microsoft Visual Studio
解决方案 1:更新 Unreal Engine > 4.12.5
正在将您的 Unreal Engine 更新到 4.12.5 以上的版本
前往
Epic Game launcher
> Unreal Engine
> Library
> Engine Version
更新引擎。
解决方案 2:在没有更新 3 的情况下重新安装 VS2015
按照 Infected_Post here.
的说明进行操作以下是他发布的内容:
- Completely uninstall visual studio
- Use the Extra visual studio uninstall cleaner. Found on
github > Microsoft/VisualStudioUninstaller/releases
- Delete the remaining Visual Studio installation folder.
- Do a restart and this machine should be ready for a clean installation
- Download the Visual Studio 2015 installer without any updates: https://www.microsoft.com/en-us/download/details.aspx?id=48146
- Now make sure you do a custom installation and deselect update 3!!!
- Once the installation is finished you need to generate visual studio project files for your unreal projects.