简体   繁体   English

虚幻引擎4.10未创建C ++项目

[英]Unreal Engine 4.10 is not creating c++ project

Hello I wanted to create a project in UE4.10 with basic c++ code. 您好,我想使用基本的c ++代码在UE4.10中创建一个项目。 But when it comes to create it, UE gives me an error: 但是在创建它时,UE给我一个错误:

The project could not be compiled. 该项目无法编译。 Would you like to open it in Visual Studio? 您想在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\\4.10\\Engine\\Source\\Runtime\\Launch\\Resources\\Windows\\PCLaunch.rc(10) : fatal error RC1015: cannot open include file 'windows.h'. 运行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%解析运行UnrealHeaderTool的MyProjectEditor的标头“ 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警告,logexit警告,logdatabase错误“ -rocket-已安装MyProjectEditor在17,8672852秒内生成的反射代码@progress pop执行7动作(并行2个)[2/7]资源PCLaunch.rc E:\\ Program Files(x86)\\ Epic Games \\ 4.10 \\ Engine \\ Source \\ Runtime \\ Launch \\ Resources \\ Windows \\ PCLaunch.rc(10):致命错误RC1015:无法打开包含文件“ windows.h”。 [3/7] Resource ModuleVersionResource.rc.inl E:\\Program Files (x86)\\Epic Games\\4.10\\Engine\\Source\\Runtime\\Core\\Resources\\Windows\\ModuleVersionResource.rc.inl(3) : fatal error RC1015: cannot open include file 'windows.h'. [3/7]资源ModuleVersionResource.rc.inl E:\\ Program Files(x86)\\ Epic Games \\ 4.10 \\ Engine \\ Source \\ Runtime \\ Core \\ Resources \\ Windows \\ ModuleVersionResource.rc.inl(3):致命错误RC1015:无法打开包含文件“ windows.h”。 PCH.MyProject.h.cpp E:\\Program Files (x86)\\Epic Games\\4.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 PCH.MyProject.h.cpp E:\\ Program Files(x86)\\ Epic Games \\ 4.10 \\ Engine \\ Source \\ Runtime \\ Core \\ Public \\ HAL \\ PlatformIncludes.h(5):致命错误C1083:无法打开包含文件:' new”:没有此类文件或目录--------结束详细操作统计信息------------------------------ -----------------------------错误:UBT错误:无法生成项目:C:\\ Users \\ allst \\ Documents \\ Unreal Projects \\ MyProject \\ Binaries \\ Win64 \\ UE4Editor-MyProject.dll总生成时间:90,64秒

I had VS 2013 pro, but I was asked to install VS 2015 community, what I have done, but problem is still persisting. 我有VS 2013专业版,但是我被要求安装VS 2015社区,但我的问题仍然存在。 Have you any ideas what should be done now? 您有什么想法现在应该做什么? I will be gratefull for any advice. 如有任何建议,我将不胜感激。 Have a nice day! 祝你今天愉快!

请在安装Visual Studio 2015时确认已选择“ Visual C ++ 2015通用工具”。它不会自动安装,您需要为此进行自定义安装。

It appear to be a known problem while running Unreal Engine prior to 4.12.5 with Visual Studio Community 2015 with Update 3. 在Visual Studio Community 2015 with Update 3上运行4.12.5之前的虚幻引擎时,这似乎是一个已知问题。

Assuming that you already have Common Tools for Visual C++ 2015 installed. 假设您已经安装了Visual C ++ 2015的通用工具 You can check if you are running VS2015 with Update 3 by going to: 您可以通过以下步骤检查是否正在运行带有Update 3的VS2015:

Visual Studio 2015 > Help > About Microsoft Visual Studio Visual Studio 2015 > Help > About Microsoft Visual Studio

Solution 1: Update Unreal Engine > 4.12.5 解决方案1:更新虚幻引擎> 4.12.5

Updating your Unreal Engine to version above 4.12.5 将您的虚幻引擎更新到4.12.5以上的版本

Go to Epic Game launcher > Unreal Engine > Library > Engine Version to update the engine. 转到Epic Game launcher > Unreal Engine > Library > Engine Version以更新引擎。

Solution 2: Resintall VS2015 without Update 3 解决方案2:无需更新3的Resintall VS2015

Follow the instruction from Infected_Post here . 按照从Infected_Post指令这里

Below is what he has posted: 以下是他发布的内容:

  1. Completely uninstall visual studio 完全卸载Visual Studio
  2. Use the Extra visual studio uninstall cleaner. 使用Extra Visual Studio卸载清洁程序。 Found on github > Microsoft/VisualStudioUninstaller/releases github > Microsoft/VisualStudioUninstaller/releases
  3. Delete the remaining Visual Studio installation folder. 删除剩余的Visual Studio安装文件夹。
  4. Do a restart and this machine should be ready for a clean installation 重新启动,这台机器应该已经可以进行全新安装了
  5. Download the Visual Studio 2015 installer without any updates: https://www.microsoft.com/en-us/download/details.aspx?id=48146 下载没有任何更新的Visual Studio 2015安装程序: https : //www.microsoft.com/zh-cn/download/details.aspx?id=48146
  6. Now make sure you do a custom installation and deselect update 3!!! 现在确保您执行自定义安装并取消选择更新3 !!!
  7. Once the installation is finished you need to generate visual studio project files for your unreal projects. 安装完成后,您需要为您的虚幻项目生成Visual Studio项目文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM