当前位置: 首页 > news >正文

UE5在VisualStudio升级后产生C++无法编译的问题

往期的虚幻引擎项目在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.txt

Some Platforms were skipped due to invalid SDK setup: IOS, Android, Linux, LinuxArm64.
See the log file for detailed information

Generating 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.

20231222-103022

问题2:

编译后报错

LNK1104 cannot open file 'legacy_stdio_definitions.lib'

问题2解决方案:

这个文件其实依然是由于UE定位在旧MSVC的目录导致的无法寻找到,此时将UE Editor关闭,然后直接VS打开虚幻工程的sln方案文件,并重生成游戏工程即可;

再次打开UE5,其编译也就正常了;

http://www.lryc.cn/news/291634.html

相关文章:

  • 目标检测:1预备知识
  • 【Linux取经路】进程控制——进程等待
  • 虹科干货 | 如何使用nProbe Cento构建100 Gbit NetFlow 传感器
  • Web前端入门 - HTML JavaScript Vue
  • (Sping Xml方式整合第三方框架)学习Spring的第十天
  • 单片机驱动多个ds18b20
  • GitLab16.8配置webhooks、Jenkins2.4配置GitLab插件实现持续集成、配置宝塔面板实现持续部署(其三)
  • 鸿蒙会取代Android吗?听风就是雨
  • 检测CUDA 是否能访问GPU时回应速度慢【笔记】
  • 大模型运行成本对比:GPT-3.5/4 vs. 开源托管
  • fastadmin后台自定义按钮和弹窗
  • 《高性能MySQL》
  • postman用法
  • MySQL之数据库DQL
  • 《区块链简易速速上手小册》第9章:区块链的法律与监管(2024 最新版)
  • Spring Boot 中操作 Bean 的生命周期
  • Linux ---- Shell编程三剑客之AWK
  • Netty入门使用
  • go并发编程-runtime、Channel与Goroutine
  • HTTP概述
  • ubuntu20配置mysql8
  • CPU-Cache结构查看
  • Wireshark网络协议分析 - Wireshark速览
  • 查看进程创建的所有线程
  • 汽车软件开发模式的5个特点
  • 双屏联动系统在展厅设计中的互动类型与效果
  • STM32F407移植OpenHarmony笔记5
  • 点击其他区域隐藏弹出框效果
  • Python一些可能用的到的函数系列123 ATimer2-时间偏移
  • 企业微信主体变更 怎么操作?