漣水做網站百度指數批量獲取
往期的虛幻引擎項目在VS更新后,編譯時會報錯,這一般出現在VS升級之后,UE對于VC++的編譯器定位沒有更新導致;
有出現如下問題:
問題1:
Running I:/EPCI/Epic Games/UE_5.3/Engine/Build/BatchFiles/Build.bat -projectfiles -project=“I:/GAME/PJ/我的項目2/我的項目2.uproject” -game -rocket -progress
Using bundled DotNet SDK version: 6.0.302
Running UnrealBuildTool: dotnet “…..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” -projectfiles -project=“I:/GAME/PJ/???2/???2.uproject” -game -rocket -progress
Log file: C:\Users\Fox\AppData\Local\UnrealBuildTool\Log_GPF.txtSome Platforms were skipped due to invalid SDK setup: IOS, Android, Linux, LinuxArm64.
See the log file for detailed informationGenerating VisualStudio project files:
Discovering modules, targets and source code for project…
Microsoft platform targets must be compiled with Visual Studio 2022 17.4 (MSVC 14.34.x) or later for the installed engine. Please update Visual Studio 2022 and ensure no configuration is forcing WindowsTargetRules.Compiler to VisualStudio2019. The current compiler version was detected as: 14.29.30152
問題1解決方案:
打開VS安裝器,修改,內部模組,把舊有的MSVC全部取消;
MSVC v142 - VS2019 C++ x64/x86 package
MSVC v141 - VS2017 C++ x64/x86 package
MSVC v140 - VS2015 C++ x64/x86 package
After uncheck the options, create UE5.3 C++ project again.
問題2:
編譯后報錯
LNK1104 cannot open file 'legacy_stdio_definitions.lib'
問題2解決方案:
這個文件其實依然是由于UE定位在舊MSVC的目錄導致的無法尋找到,此時將UE Editor關閉,然后直接VS打開虛幻工程的sln方案文件,并重生成游戲工程即可;
再次打開UE5,其編譯也就正常了;