【问题标题】:Unreal Engine 4.10 is not creating c++ project虚幻引擎 4.10 未创建 c++ 项目
【发布时间】:2016-03-07 22:50:02
【问题描述】:

您好,我想用基本的 c++ 代码在 UE4.10 中创建一个项目。但是在创建它的时候,UE给了我一个错误:

无法编译项目。你想在 Visual Studio 中打开它吗?运行 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% 为 MyProjectEditor 解析头文件 运行 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 在 17,8672852 秒内为 MyProjectEditor 生成反射代码 @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] 资源 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):致命错误 C1083:无法打开包含文件:' new': 没有这样的文件或目录 -------- 结束详细的操作统计 ------------------------------ ----------------------------- 错误:UBT 错误:无法生成项目:C:\Users\allst\Documents\Unreal Projects \MyProject\Binaries\Win64\UE4Editor-MyProject.dll 总构建时间:90,64 秒

我有 VS 2013 pro,但我被要求安装 VS 2015 社区,我做了什么,但问题仍然存在。你有什么想法现在应该做什么吗?我将不胜感激任何建议。祝你有美好的一天!

【问题讨论】:

    标签: c++ visual-studio-2015 unreal-engine4


    【解决方案1】:

    在 Visual Studio Community 2015 with Update 3 中运行 4.12.5 之前的 Unreal Engine 时,这似乎是一个已知问题。

    假设您已经安装了 Common Tools for Visual C++ 2015。 您可以通过以下方式检查您是否正在运行带有 Update 3 的 VS2015:

    Visual Studio 2015 > Help > About Microsoft Visual Studio

    解决方案 1:更新虚幻引擎 > 4.12.5

    将虚幻引擎更新到 4.12.5 以上版本

    转到 Epic Game launcher > Unreal Engine > Library > Engine Version 更新引擎。

    解决方案 2:在不更新 3 的情况下重新安装 VS2015

    遵循 Infected_Post here 的指示。

    以下是他发布的内容:

    1. 完全卸载visual studio
    2. 使用 Extra Visual Studio 卸载清理程序。发现于 github > Microsoft/VisualStudioUninstaller/releases
    3. 删除剩余的 Visual Studio 安装文件夹。
    4. 重新启动,这台机器应该可以进行全新安装了
    5. 下载没有任何更新的 Visual Studio 2015 安装程序:https://www.microsoft.com/en-us/download/details.aspx?id=48146
    6. 现在确保进行自定义安装并取消选择更新 3!!!
    7. 安装完成后,您需要为您的虚幻项目生成 Visual Studio 项目文件。

    【讨论】:

      【解决方案2】:

      请确认在安装 Visual Studio 2015 时选择了“Common Tools for Visual C++ 2015”。它不会自动安装,您需要为此进行自定义安装。

      【讨论】:

        猜你喜欢
        • 2020-08-11
        • 2021-06-06
        • 2016-07-06
        • 2020-05-25
        • 2021-03-23
        • 1970-01-01
        • 1970-01-01
        • 2018-02-18
        • 2019-11-11
        相关资源
        最近更新 更多