Unreal Engine 4.26.2 源代码版本在运行时出现错误。

huangapple go评论63阅读模式
英文:

Unreal engine 4.26.2 source version errors when running

问题

我尝试设置UE4.26.2源代码版本,但一直没有成功。我已经从GitHub克隆了存储库,运行了Setup和GenerateProjectFiles没有错误,设置了Visual Studio 2019中的开发编辑器和x64,构建时没有错误,但当我尝试运行UE时,我总是遇到相同的两个错误:

LNK1104 无法打开文件 'D:\UE4.26.2\UnrealEngine-4.26.2-release\Engine\Binaries\Win64\UE4Editor.exe'

MSB3073 命令“....\Build\BatchFiles\Build.bat -Target="UE4Editor Win64 Development" -Target="ShaderCompileWorker Win64 Development -Quiet" -WaitMutex -FromMsBuild”退出,代码为6。

我尝试了各种不同的VS组件组合,我安装了.net桌面开发、带有c++的桌面开发和带有c++的游戏开发。我正在使用.NET Framework 4.8 SDK以及之前的所有4.x目标包。我尝试删除Win64文件夹中的某些内容和其他文件,但在运行UE4之后它总是重新构建它们,因此错误仍然存在。

英文:

I'm trying to set up UE4.26.2 source version but haven't been successful. I have cloned the repo from github, ran Setup and GenerateProjectFiles without errors, set development editor and x64 in Visual studio 2019 and built it without errors but when I try to run the UE I always get the same two errors:

Build started...
1>------ Build started: Project: UE4, Configuration: Development_Editor x64 ------
1>Building UE4Editor and ShaderCompileWorker...
1>Using Visual Studio 2019 14.34.31937 toolchain (C:\Program Files\Microsoft Visual Studio22\Community\VC\Tools\MSVC.34.31933) and Windows 10.0.20348.0 SDK (C:\Program Files (x86)\Windows Kits).
1>Building 2 actions with 16 processes...
1>  [1/2] UE4Editor.exe
1>LINK : fatal error LNK1104: cannot open file 'D:\UE4.26.2\UnrealEngine-4.26.2-release\Engine\Binaries\Win64\UE4Editor.exe'
1>C:\Program Files (x86)\Microsoft Visual Studio19\Community\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets(45,5): error MSB3073: The command "..\..\Build\BatchFiles\Build.bat -Target="UE4Editor Win64 Development" -Target="ShaderCompileWorker Win64 Development -Quiet" -WaitMutex -FromMsBuild" exited with code 6.
1>Done building project "UE4.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========

LNK1104 cannot open file 'D:\UE4.26.2\UnrealEngine-4.26.2-release\Engine\Binaries\Win64\UE4Editor.exe'

MSB3073 The command "....\Build\BatchFiles\Build.bat -Target="UE4Editor Win64 Development" -Target="ShaderCompileWorker Win64 Development -Quiet" -WaitMutex -FromMsBuild" exited with code 6.

I have tried various different combinations of VS components, I have installed .net Desktop dev, desktop dev with c++ and game dev with c++. I am using .NET Framework 4.8 SDK with all the previous 4.x targeting packs. I have tried deleting certain content from the Win64 folder and other files which I can't recall, but after I run the UE4 it always builds them again so the errors persist.

答案1

得分: 0

我解决了这个问题。我的 Avast 杀毒软件将 "UE4Editor.exe" 放入隔离区,然后我恢复了它,编译后,问题解决了。

英文:

I solved the issue. My avast antivirus put the "UE4Editor.exe" into quarantine, then I restored it and compiled and voila, it works

huangapple
  • 本文由 发表于 2023年2月8日 19:32:03
  • 转载请务必保留本文链接:https://go.coder-hub.com/75385177.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定