首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >[UE4错误]无法编译项目。是否要在Visual Studio中打开它?

[UE4错误]无法编译项目。是否要在Visual Studio中打开它?
EN

Stack Overflow用户
提问于 2018-06-06 04:29:40
回答 1查看 3.9K关注 0票数 1

我看到很多人问这个问题,显然这个问题没有绝对的答案。

这发生在我卸载我的visual studio 2015时,因为虚幻的4.18,无论我使用VS 2015,我想使用2017,我看到一些人通过卸载VS 2015来解决这个问题。

当我卸载VS 2015时,当我想创建一个新的C++项目时收到这个错误:

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

代码语言:javascript
复制
Running f:/Program Files/Epic Games/UE_4.19/Engine/Binaries/DotNET/UnrealBuildTool.exe MyProject451 Development Win64 -project="F:/c++ New/New folder/MyProject451/MyProject451.uproject" -editorrecompile -progress -NoHotReloadFromIDE
Performing full C++ include scan (building a new target)
Creating makefile for MyProject451 (no existing makefile)
@progress push 5%
Parsing headers for MyProject451Editor
  Running UnrealHeaderTool "F:\c++ New\New folder\MyProject451\MyProject451.uproject" "F:\c++ New\New folder\MyProject451\Intermediate\Build\Win64\MyProject451Editor\Development\MyProject451Editor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
Reflection code generated for MyProject451Editor in 7.2801937 seconds
@progress pop
Performing 9 actions (4 in parallel)
[2/9] Resource ModuleVersionResource.rc.inl
[3/9] Resource PCLaunch.rc
SharedPCH.Engine.cpp
MyProject451GameModeBase.cpp
MyProject451.init.gen.cpp
MyProject451.cpp
MyProject451GameModeBase.gen.cpp
[8/9] Link UE4Editor-MyProject451.dll
[9/9] Link UE4Editor-MyProject451.lib
LINK : fatal error LNK1181: cannot open input file 'ws2_32.lib'
   Creating library F:\c++ New\New folder\MyProject451\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-MyProject451.lib and object F:\c++ New\New folder\MyProject451\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-MyProject451.exp
ERROR: UBT ERROR: Failed to produce item: F:\c++ New\New folder\MyProject451\Binaries\Win64\UE4Editor-MyProject451.dll
Total build time: 34.18 seconds (Local executor: 0.00 seconds)

错误图像(如您所见,我在上面复制了注释):enter image description here

很多人提到它与Windows SDK有关,如果我添加更多,请让我知道安装中的windows SDK。enter image description here

我想如果我安装虚幻4.19,它可能会被修复,但它没有。

它可以查看VS 2015的ue4 genrate C++文件。enter image description here

我希望有谁知道如何解决这个问题,并指导我如何。

EN

回答 1

Stack Overflow用户

发布于 2018-06-06 07:42:14

我通过从这个链接https://github.com/Microsoft/VisualStudioUninstaller/releases下载这个更干净的链接来修复它。在那之后,当你想创建新项目时,UE4会发送一条消息,说你没有VS2017,不要惊慌,只需下载安装程序并修改它,然后它下载大约350 mg,之后,一切都会得到解决。有关更多信息,请访问:https://answers.unrealengine.com/questions/597939/new-c-project-fails-to-compile-using-ue-415-and-vs.html

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50708467

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档