UE4报错:无法编译项目

目录

错误一:

[解决方案: 创建项目不使用中文名(路径也不要有中文名)](#解决方案: 创建项目不使用中文名(路径也不要有中文名))

错误二:

解决方案:VS一开始使用的是2022版,创建时它让下2019版,下完之后把2022版VS卸载就可以了(不知道为什么。。。)


错误一:

Running I:/Epic Game/UE_4.26/Engine/Binaries/DotNET/UnrealBuildTool.exe Development Win64 -Project="I:/Epic Games Project/测试项目/测试项目.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE

Creating makefile for ??????ĿEditor (no existing makefile)

@progress push 5%

Parsing headers for ??????ĿEditor

Running UnrealHeaderTool "I:\Epic Games Project\??????Ŀ\??????Ŀ.uproject" "I:\Epic Games Project\??????Ŀ\Intermediate\Build\Win64\??????ĿEditor\Development\??????ĿEditor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -abslog="C:\Users\15620\AppData\Local\UnrealBuildTool\Log_UHT.txt" -installed

I:/Epic Games Project/????/Source/????/????GameModeBase.h(1): Error: Missing UCLASS name

解决方案: 创建项目不使用中文名(路径也不要有中文名)

错误二:

Running I:/Epic Game/UE_4.26/Engine/Binaries/DotNET/UnrealBuildTool.exe Development Win64 -Project="I:/Epic Games Project/TestProject/TestProject.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Creating makefile for TestProjectEditor (no existing makefile)
@progress push 5%
Parsing headers for TestProjectEditor
Running UnrealHeaderTool "I:\Epic Games Project\TestProject\TestProject.uproject" "I:\Epic Games Project\TestProject\Intermediate\Build\Win64\TestProjectEditor\Development\TestProjectEditor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -abslog="C:\Users\15620\AppData\Local\UnrealBuildTool\Log_UHT.txt" -installed
Reflection code generated for TestProjectEditor in 3.4640772 seconds
@progress pop
Building TestProjectEditor...
Using Visual Studio 2019 14.40.33812 toolchain (C:\VS??????\VC\Tools\MSVC\14.40.33807) and Windows 10.0.22621.0 SDK (E:\Windows Kits\10).
Building 9 actions with 32 processes...
@progress 'Compiling C++ source code...' 0%
@progress 'Compiling C++ source code...' 11%
1/9 Default.rc2
@progress 'Compiling C++ source code...' 22%
2/9 SharedPCH.Engine.ShadowErrors.cpp
Detected compiler newer than Visual Studio 2019, please update min version checking in WindowsPlatformCompilerSetup.h
I:\Epic Game\UE_4.26\Engine\Source\Runtime\Core\Public\Traits/IsContiguousContainer.h(6): fatal error C1083: ?޷??򿪰????ļ?: ??initializer_list??: No such file or directory

解决方案:VS一开始使用的是2022版,创建时它让下2019版,下完之后把2022版VS卸载就可以了(不知道为什么。。。)

相关推荐
杨丰玮4182 小时前
从零手写Java飞机躲障碍游戏|Swing绘图、鼠标跟随、计时器碰撞检测实战(五)
java·python·游戏·游戏引擎·图形渲染·动画·贴图
鼎艺创新科技14 小时前
不依赖 UE/Unity:我们如何从零搭建一套国产三维 GIS 渲染引擎
人工智能·算法·unity·游戏引擎·三维电子沙盘
huihui36117 小时前
校友网管理软件技术选型框架:基于功能核验与系统架构的量化评估
unity·系统架构·游戏引擎
五仁烧饼17 小时前
Unity性能优化系列设置篇 - URP 移动端设置基线与分档策略
unity·游戏引擎
新手unity自用笔记21 小时前
unity基于Socket的网络学习
网络·网络协议·学习·unity·c#·游戏引擎
心前阳光1 天前
Unity之XR Interaction Toolkit | IPointerDownHandler问题
unity·游戏引擎·xr
帅_shuai_2 天前
unity 静态字段内存查找工具
unity·游戏引擎
郝学胜-神的一滴2 天前
[简化版 GAMES 104] 现代游戏引擎 06:从Tick时序到邮局模型,拆解确定性世界的底层密码
开发语言·c++·游戏引擎·图形渲染·软件开发·opengl
鹿野素材屋3 天前
Unity超轻量级中文语音播报,仅5兆大小,无需联网即可使用,适用于弹幕、提示等动态语音播出
unity·游戏引擎
电子云与长程纠缠4 天前
UE5 Lyra PocketWorld进行3D内容UI预览 - 上
开发语言·学习·3d·ue5·游戏引擎