我在 Unreal 中创建自上而下的射击游戏 C++ 项目时出错,编译错误
I have an error creating a top down shooter C++ project in Unreal, Compilation error
尝试在 Unreal 中创建俯视射击游戏 C++ 项目时出现错误。我认为这可能与分页文件有关,但我不确定。我为编译器安装了 visual studio 2022 社区,并将 Unreal Engine 的 Rider 用作实际的 IDE,这是默认设置。如果有人知道如何解决这个问题,将不胜感激。
错误信息:
The project could not be compiled. Would you like to open it in Rider?
Running C:/Program Files/Epic Games/UE_4.27/Engine/Binaries/DotNET/UnrealBuildTool.exe Development Win64 -Project="C:/Users/Admin/Documents/Unreal Projects/Survival/Survival.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Creating makefile for SurvivalEditor (no existing makefile)
@progress push 5%
Parsing headers for SurvivalEditor
Running UnrealHeaderTool "C:\Users\Admin\Documents\Unreal Projects\Survival\Survival.uproject" "C:\Users\Admin\Documents\Unreal Projects\Survival\Intermediate\Build\Win64\SurvivalEditor\Development\SurvivalEditor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -abslog="C:\Users\Admin\AppData\Local\UnrealBuildTool\Log_UHT.txt" -installed
LogInit: Display: Loading text-based GConfig....
Reflection code generated for SurvivalEditor in 10.9429744 seconds
@progress pop
Building SurvivalEditor...
Using Visual Studio 2019 14.30.30705 toolchain (C:\Program Files\Microsoft Visual Studio22\Community\VC\Tools\MSVC.30.30705) and Windows 10.0.19041.0 SDK (C:\Program Files (x86)\Windows Kits).
Building 13 actions with 4 processes...
@progress 'Compiling C++ source code...' 0%
@progress 'Compiling C++ source code...' 8%
[1/13] Default.rc2
@progress 'Compiling C++ source code...' 15%
[2/13] SharedPCH.Engine.ShadowErrors.cpp
Detected compiler newer than Visual Studio 2019, please update min version checking in WindowsPlatformCompilerSetup.h
@progress 'Compiling C++ source code...' 23%
[3/13] SurvivalGameMode.cpp
c1xx: error C3859: Failed to create virtual memory for PCH
c1xx: note: the system returned code 1455: The paging file is too small for this operation to complete.
c1xx: note: please visit https://aka.ms/pch-help for more details
c1xx: fatal error C1076: compiler limit: internal heap limit reached
@progress 'Compiling C++ source code...' 31%
[4/13] SurvivalCharacter.gen.cpp
c1xx: error C3859: Failed to create virtual memory for PCH
c1xx: note: the system returned code 1455: The paging file is too small for this operation to complete.
c1xx: note: please visit https://aka.ms/pch-help for more details
c1xx: fatal error C1076: compiler limit: internal heap limit reached
@progress 'Compiling C++ source code...' 38%
[5/13] Survival.cpp
@progress 'Compiling C++ source code...' 46%
[6/13] SurvivalPlayerController.gen.cpp
@progress 'Compiling C++ source code...' 54%
[7/13] Survival.init.gen.cpp
c1xx: error C3859: Failed to create virtual memory for PCH
c1xx: note: the system returned code 1455: The paging file is too small for this operation to complete.
c1xx: note: please visit https://aka.ms/pch-help for more details
c1xx: fatal error C1076: compiler limit: internal heap limit reached
@progress 'Compiling C++ source code...' 62%
[8/13] SurvivalPlayerController.cpp
@progress 'Compiling C++ source code...' 69%
[9/13] SurvivalGameMode.gen.cpp
@progress 'Compiling C++ source code...' 77%
[10/13] SurvivalCharacter.cpp
符号或模板实例太多。
使用 /Zm 调整编译器堆限制并遵循此处的其他建议:
尝试在 Unreal 中创建俯视射击游戏 C++ 项目时出现错误。我认为这可能与分页文件有关,但我不确定。我为编译器安装了 visual studio 2022 社区,并将 Unreal Engine 的 Rider 用作实际的 IDE,这是默认设置。如果有人知道如何解决这个问题,将不胜感激。
错误信息:
The project could not be compiled. Would you like to open it in Rider?
Running C:/Program Files/Epic Games/UE_4.27/Engine/Binaries/DotNET/UnrealBuildTool.exe Development Win64 -Project="C:/Users/Admin/Documents/Unreal Projects/Survival/Survival.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Creating makefile for SurvivalEditor (no existing makefile)
@progress push 5%
Parsing headers for SurvivalEditor
Running UnrealHeaderTool "C:\Users\Admin\Documents\Unreal Projects\Survival\Survival.uproject" "C:\Users\Admin\Documents\Unreal Projects\Survival\Intermediate\Build\Win64\SurvivalEditor\Development\SurvivalEditor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -abslog="C:\Users\Admin\AppData\Local\UnrealBuildTool\Log_UHT.txt" -installed
LogInit: Display: Loading text-based GConfig....
Reflection code generated for SurvivalEditor in 10.9429744 seconds
@progress pop
Building SurvivalEditor...
Using Visual Studio 2019 14.30.30705 toolchain (C:\Program Files\Microsoft Visual Studio22\Community\VC\Tools\MSVC.30.30705) and Windows 10.0.19041.0 SDK (C:\Program Files (x86)\Windows Kits).
Building 13 actions with 4 processes...
@progress 'Compiling C++ source code...' 0%
@progress 'Compiling C++ source code...' 8%
[1/13] Default.rc2
@progress 'Compiling C++ source code...' 15%
[2/13] SharedPCH.Engine.ShadowErrors.cpp
Detected compiler newer than Visual Studio 2019, please update min version checking in WindowsPlatformCompilerSetup.h
@progress 'Compiling C++ source code...' 23%
[3/13] SurvivalGameMode.cpp
c1xx: error C3859: Failed to create virtual memory for PCH
c1xx: note: the system returned code 1455: The paging file is too small for this operation to complete.
c1xx: note: please visit https://aka.ms/pch-help for more details
c1xx: fatal error C1076: compiler limit: internal heap limit reached
@progress 'Compiling C++ source code...' 31%
[4/13] SurvivalCharacter.gen.cpp
c1xx: error C3859: Failed to create virtual memory for PCH
c1xx: note: the system returned code 1455: The paging file is too small for this operation to complete.
c1xx: note: please visit https://aka.ms/pch-help for more details
c1xx: fatal error C1076: compiler limit: internal heap limit reached
@progress 'Compiling C++ source code...' 38%
[5/13] Survival.cpp
@progress 'Compiling C++ source code...' 46%
[6/13] SurvivalPlayerController.gen.cpp
@progress 'Compiling C++ source code...' 54%
[7/13] Survival.init.gen.cpp
c1xx: error C3859: Failed to create virtual memory for PCH
c1xx: note: the system returned code 1455: The paging file is too small for this operation to complete.
c1xx: note: please visit https://aka.ms/pch-help for more details
c1xx: fatal error C1076: compiler limit: internal heap limit reached
@progress 'Compiling C++ source code...' 62%
[8/13] SurvivalPlayerController.cpp
@progress 'Compiling C++ source code...' 69%
[9/13] SurvivalGameMode.gen.cpp
@progress 'Compiling C++ source code...' 77%
[10/13] SurvivalCharacter.cpp
符号或模板实例太多。
使用 /Zm 调整编译器堆限制并遵循此处的其他建议: