Ue4报错 LINK : fatal error LNK1181: ?޷??????????ļ???D:\ue虚幻引擎\UE_4.26\Engine\Intermediate\Build\Win6

UE4创建C++项目报错

无法编译该项目。要在Visual Studio中打开它吗?

Running D:/ue虚幻引擎/UE_4.26/Engine/Binaries/DotNET/UnrealBuildTool.exe Development Win64 -Project="D:/UE4Project/UeCpp0/UeCpp0.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Creating makefile for UeCpp0Editor (no existing makefile)
@progress push 5%
Parsing headers for UeCpp0Editor
  Running UnrealHeaderTool "D:\UE4Project\UeCpp0\UeCpp0.uproject" "D:\UE4Project\UeCpp0\Intermediate\Build\Win64\UeCpp0Editor\Development\UeCpp0Editor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -abslog="C:\Users\Administrator\AppData\Local\UnrealBuildTool\Log_UHT.txt" -installed
Reflection code generated for UeCpp0Editor in 2.2990488 seconds
@progress pop
Building UeCpp0Editor...
Using Visual Studio 2019 14.29.30151 toolchain (D:\VS2019\VC\Tools\MSVC\14.29.30133) and Windows 10.0.19041.0 SDK (C:\Program Files (x86)\Windows Kits\10).
Building 9 actions with 24 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
  @progress 'Compiling C++ source code...' 33%
  [3/9] UeCpp0.cpp
  @progress 'Compiling C++ source code...' 44%
  [4/9] UeCpp0GameModeBase.cpp
  @progress 'Compiling C++ source code...' 56%
  [5/9] UeCpp0.init.gen.cpp
  @progress 'Compiling C++ source code...' 67%
  [6/9] UeCpp0GameModeBase.gen.cpp
  @progress 'Compiling C++ source code...' 78%
  [7/9] UE4Editor-UeCpp0.lib
    ???ڴ????? D:\UE4Project\UeCpp0\Intermediate\Build\Win64\UE4Editor\Development\UeCpp0\UE4Editor-UeCpp0.lib ?Ͷ??? D:\UE4Project\UeCpp0\Intermediate\Build\Win64\UE4Editor\Development\UeCpp0\UE4Editor-UeCpp0.exp
  @progress 'Compiling C++ source code...' 89%
  [8/9] UE4Editor-UeCpp0.dll
  LINK : fatal error LNK1181: ?޷??????????ļ???D:\ue虚幻引擎\UE_4.26\Engine\Intermediate\Build\Win64\UE4Editor\Development\Core\UE4Editor-Core.lib??

原因是UE4安装路径存在中文目录 无法解析

  LINK : fatal error LNK1181: ?޷??????????ļ???D:\ue虚幻引擎\UE_4.26\Engine\Intermediate\Build\Win64\UE4Editor\Development\Core\UE4Editor-Core.lib??

解决方案:卸载 重新安装在全英文目录下即可

你可能感兴趣的:(ue4,虚幻,游戏引擎)