Error when building from source: UBT Error: Failed to produce item... UE4Editor-NetworkFileSystem.dll

This build keeps failing at the module step 1326 of 1327 in VS2013, using UnrealVS to build Development Editor Win64. This is my first attempt to build from source. I have run GenerateProjectFiles.Bat and Setup.bat. I have run Build.bat manually to get the full error and am including it below. If there is any more information I can give, please let me know!

(Edits stripped out some extra stuff from before and after attempted run)

C:\SurfaceTension\UE4Fork\Engine\Build\BatchFiles>Build.bat Development Win64 UE4Editor
Performing 4 actions (4 in parallel)
[3/4] Link UE4Editor-MetalShaderFormat.dll
[1/4] Link UE4Editor-NetworkFileSystem.dll
[2/4] Link UE4Editor-ShaderFormatOpenGL.dll
   Creating library C:\SurfaceTension\UE4Fork\Engine\Intermediate/Build/Win64\UE4Editor\Development\UE4Editor-NetworkFileSystem.lib and object C:\SurfaceTension\UE4Fork\Engine\Intermediate/Build/Win64\UE4Editor\Development\UE4Editor-NetworkFileSystem.exp
websockets_static.lib(extension-deflate-frame.obj) : error LNK2019: unresolved external symbol deflate referenced in function lws_extension_callback_deflate_frame
websockets_static.lib(extension-deflate-frame.obj) : error LNK2019: unresolved external symbol deflateEnd referenced in function lws_extension_callback_deflate_frame
websockets_static.lib(extension-deflate-frame.obj) : error LNK2019: unresolved external symbol inflate referenced in function lws_extension_callback_deflate_frame
websockets_static.lib(extension-deflate-frame.obj) : error LNK2019: unresolved external symbol inflateEnd referenced in function lws_extension_callback_deflate_frame
websockets_static.lib(extension-deflate-frame.obj) : error LNK2019: unresolved external symbol deflateInit2_ referenced in function lws_extension_callback_deflate_frame
websockets_static.lib(extension-deflate-frame.o b j )C r:e aetrirnogr  lLiNbKr2ar0y1 9C:: \uSnurrefsaoclevTeedn seixotne\rUnEa4lF osrykm\bEonlg iinnef\lIantteeIrnmietd2i_a tree/fBeurielndc/eWdi ni6n4 \fUuEn4cEtdiiotno rl\wDse_veexltoepnmseinotn\_UcEa4lEldbiatcokr_-dSehfal da et reCF_roferramatamitenO
gpC e:ln\iGSbLur.ralfriaybc  eCaT:ne\dnS suoirbofjnae\ccUetET 4eCFn:os\riSkou\nrE\fnUagEci4enFTeoe\rnBksi\inEoannrg\iiUenEse4\\FWIoinrntk6e\4rE\mnUegEdi4inEaedt\ieIt/noBtrue-irNlmedet/dwWioiarntk6eF4/i\BlUueEiS4lyEdsd/tiWetimon.r6d\4lD\leU vE:e4 lEfodapitmtaeolnr t\e\DrUerEvo4erEl doLipNtmKoe1rn1-t2M\0eU:tE a46lE Sduhinatrdoeersr-oFSlohvraemddae tre.Fxlotirebmr anatanOldps e
onbGjLe.cetx pC
:\SurfaceTension\UE4Fork\Engine\Intermediate/Build/Win64\UE4Editor\Development\UE4Editor-MetalShaderFormat.exp
Module.ShaderFormatOpenGL.cpp.obj : error LNK2019: unresolved external symbol "public: static class ir_function_siMgondautluer.eM e*t a_l_Schdaedcelr FFoCromdaetB.accpkpe.nodb:j: F:i nedrErnotrr yLPNoKi2n0t1F9u:n cutniroens(osltvreudc te xetxeercn_alli ssty m*b,oslt r"upcutb l_imce:s as_tgaltsilc_ pcalrasses_ sitra_tfeu n*c,tcihoanr_ sciognnsatt u*r)e"  *( ?_F_icnddeEcnlt rFyCPoodienBtaFcuknecntdi:o:nF@iFnCdoEdnetBraycPkoeinndt@F@uSnAcPtEiAoVni(rs_tfruuncctt ieoxne_cs_ilginsatt u*r,es@t@rPuEcAtU e_xmeecs_al_igslts@l@_PpEaArUs_em_esstaa_tgel s*l,_cphaarrs ec_osntsatt e*@)@"P E(B?DF@iZn)d ErnetfreyrPeonicnetdF uinnc tfiuonnc@tFiCoond e"Bpaucbkleincd:@ @vSiArPtEuAaVli rb_ofouln c_t_icodne_csli gFnGaltsulrCeo@d@ePBEaAcUkeexnedc:_:lGiesnte@r@aPtEeAMUa_imne(sean_ugml sElH_lpsalrSshea_dsetraFtree@q@uPeEnBcDy@,Zc)h arre fceornesntc e*d, sitnr ufcutn cetxieocn_ l"ipsutb l*i,cs:t rvuicrtt u_amle sbao_ogll s_l__cpdaercsle _FsMteattael C*o)d"e B(a?cGkeennedr:a:tGeeMnaeirna@tFeGMlasilnC(oedneuBma cEkHelnsdl@S@hUaEdAeAr_FNrWe4qEuHelnsclyS,hcahdaerr Fcroenqsute n*c,ys@t@rPuEcBtD PeExAeUce_xleics_tl i*s,ts@t@rPuEcAtU __mmeessaa__ggllssll__ppaarrssee__ssttaattee@ @*@)Z")
(?GenerateMain@FMetalCodeBackend@@UEAA_MNoWd4uElHel.sSlhSahdaedreFroFrrmeaqtuOepnecnyG@L@.PcEpBpD.PoEbAjU e:x eecr_rloirs tL@N@KP2E0A1U9_:m eusnar_egslosllv_epda resxet_esrtnaatle @s@y@mZb)o
l "public: __cdecl FHlslCrossCompilerContext::FMHoldsullCer.oMsestCaolmSphialdeerrCFoonrtmeaxtt.(cipnpt.,oebnju m:  EeHrlrsolrS hLaNdKe2r0F1r9e:q uuennrceys,oelnvuemd  EeHxltselrCnoamlp islyemTbaorlg e"tp)u"b l(i?c?:0 F_H_lcsdleCcrlo sFsHClosmlpCirloesrsCCoonmtpeixlte@r@CQoEnAtAe@xHtW:4:EFHHllssllSChraodsesrCFormepqiuleenrcCyo@n@tWe4xEtH(lisnltC,oemnpuiml eETHalrsgleSth@a@d@eZr)F rreeqfueernecnyc,eedn uimn  EfHulnscltCioomnp i"lveoTiadr g_e_tc)d"e c(l? ?C0oFmHplislleCSrhoasdseCro_mWpiinldeorwCso_nOtGeLx(ts@t@rQuEcAtA @FHSWh4aEdHelrsCloSmhpaidleerrFIrnepquute nccoyn@s@tW 4&E,HsltsrluCcotm pFiSlheaTdaerrgCeotm@p@i@lZe)r Oruetfpeurte n&c,ecdl aisns  fFuSntcrtiinogn  c"ovnositd  &_,_ecnduemc lG LCSoLmVpeirlseiSohna)d"e r(_?MCeotmapli(lsetSrhuacdte rF_SWhianddeorwCso_mOpGiLl@e@rYIAnXpAuEtB UcFoSnhsatd e&r,Csotmrpuiclte rFISnhpaudte@r@CAoEmApUiFlSehraOduetrpCuotm p&i,lcelraOsust pFuStt@r@iAnEgB VcFoSntsrti n&g)@"@ W(4?GCLoSmLpVielresSihoand@e@r@_ZM)e
tal@@YAXAEBUFShaderCompilerInput@@AEAUFShaderCompilerOutpuMto@d@uAlEeB.VSFhSatdreirnFgo@r@m@aZt)O
penGL.cpp.obj : error LNK2019: unresolved external symbol "public: __cdeMcold uFlHel.sMleCtraolsSshCaodmepriFloerrmCaotn.tcepxpt.:o:b~jF H:l selrCrroors sLCNoKm2p0i1l9e:r Cuonnrteesxotl(vveodi de)x"t e(r?n?a1lF HslysmlbCorlo s"spCuobmlpiicl:e r_C_ocndteecxlt @F@HQlEsAlAC@rXoZs)s CroemfpeirleenrcCeodn tienx tf:u:n~cFtHilosnl C"rvoosisdC o_m_pcidleecrlC oCnotmepxitl(evSohiadd)e"r _(W?i?n1dFoHwlss_lOCGrLo(ssstCroumcpti lFeSrhCaodnetreCxotm@p@iQlEeArAI@nXpZu)t  rceofnesrte n&c,esdt riunc tf uFnSchtaidoenr C"ovmopiidl e_r_Ocudtepcult  C&o,mcplialsesS hFaSdterri_nMge tcaoln(sstt r&u,cetn uFmS hGaLdSeLrVCeormspiiolne)r"I n(p?uCto mcpoinlsetS h&a,dsetrr_uWcitn dFoSwhsa_dOeGrLC@o@mYpAiXlAeErBOUuFtSphuatd e&r,Ccolmapsisl eFrSItnrpiuntg@ @cAoEnAsUtF S&h)a"d e(r?CCoommppiilleerSOhuatdpeurt_@M@eAtEaBlV@F@SYtArXiAnEgB@U@FWS4hGaLdSeLrVCeormspiiolne@r@I@nZp)u
t@@AEAUFShaderCompilerOutput@@AEBVFString@@@Z)
Module.ShaderFormatOpenGL.cpp.objM o:d uelrer.oMre tLaNlKS2h0a1d9e:r Fuonrrmeasto.lcvpepd. oebxjt e:r nearlr osry mLbNoKl2 0"1p9u:b luincr:e sboolovle d_ _ecxdteecrln aFlH lssylmCbrools s"Cpoumbpliilce:r Cboonotle x_t_:c:dIencilt (FcHhlasrl CcroonssstC o*m,psitlreurcCto nItLeaxntg:u:aIgneiStp(ecch a*r) "c o(n?sItn i*t,@sFtHlrsulcCtr oIsLsaCnogmupaigleeSrpCeocn t*e)x"t @(@?QIEnAiAt_@NFPHElBsDlPCErAoUsIsLCaonmgpuialgeerSCpoenct@e@x@tZ@)@ QrEeAfAe_rNePnEcBeDdP EiAnU IfLuanncgtuiaogne S"pveoci@d@ @_Z_)c dreecfle rCeonmcpeidl eiSnh afduenrc_tWiionnd o"wvso_iOdG L_(_sctdreucclt  CFoSmhpaidleerSChoamdpeirl_eMreItnaplu(ts tcrouncstt  F&S,hsatdreurcCto mFpSihlaedreIrnCpoumtp icloenrsOtu t&p,ustt r&u,cctl aFsSsh aFdSetrrCionmgp icloenrsOtu t&p,uetn u&m, cGlLaSsLsV eFrSstiroinn)g"  c(o?nCsotm p&i)l"e S(h?aCdoemrp_iWlienSdhoawdse_rO_GMLe@t@aYlA@X@AYEABXUAFESBhUaFdSehraCdoemrpCiolmepriIlnepruItn@p@uAtE@A@UAFESAhUaFdSehraCdoemrpCiolmepriOluetrpOuutt@p@uAtE@B@VAFESBtVrFiSntgr@i@nWg4@G@L@SZL)V
ersion@@@Z)
Module.ShaderFormatOpenGLM.ocdpupl.eo.bMje t:a leSrhraodre rLFNoKr2m0a1t9.:c pupn.roebsjo l:v eedr reoxrt eLrNnKa2l0 1s9y:m buonlr e"spoulbvleidc :e xbtoeorln a_l_ csdyemcblo lF H"lpsulbClriocs:s Cboomopli l_e_rcCdoenctle xFtH:l:sRluCnr(ocshsaCro mcpoinlsetr C*o,nctheaxrt :c:oRnusnt( c*h,acrl acsosn sFtC o*d,ecBhaacrk ecnodn s*t, c*h,acrl a*s s* ,FcChoadre B*a c*k)e"n d( ?*R,ucnh@aFrH l*s l*C,rcohsasrC o*m p*i)l"e r(C?oRnutne@xFtH@l@sQlECArAo_sNsPCEoBmDp0iPlEeArVCFoCnotdeexBta@c@kQeEnAdA@_@NPPEEABPDE0APDE2A@VZF)C ordeefBearceknecnedd@ @iPnE AfPuEnAcDt2i@oZn)  "rveofiedr e_n_ccedde ciln  CfoumnpcitlieoSnh a"dveori_dW i_n_dcodwesc_lO GCLo(msptirluecSth aFdSehra_dMeertCaolm(psitlreurcItn pFuSth acdoenrsCto m&p,islterruIcntp uFtS hcaodnesrtC o&m,psitlreurcOtu tFpSuhta d&e,rcCloamspsi lFeSrtOruitnpgu tc o&n,sctl a&s,se nFuSmt rGiLnSgL Vceornssito n&))""  ((??CCoommppiilleeSShhaaddeerr__WMientdaolw@s@_YOAGXLA@E@BYUAFXSAhEaBdUeFrSChoamdpeirlCeorInmppuitl@e@rAIEnApUuFtS@h@aAdEeArUCFoSmhpaidleerrCOoumtppiulte@r@OAuEtBpVuFtS@t@rAiEnBgV@F@S@tZr)i
nCg:@\@SWu4rGfLaScLeVTeernssiioonn@\@U@EZ4)F
oCr:k\\SEunrgfiancee\TBeinnsairoine\sU\EW4iFno6r4k\\UEEn4gEidniet\oBri-nMaertiaelsS\hWaidne6r4F\oUrEm4aEtd.idtlolr -:S hfaadtearlF oerrmraotrO pLeNnKG1L1.2d0l:l  5:  ufnarteaslo levrerdo re xLtNeKr1n1a2l0s:
 5 unresolved externals
-------- End Detailed Actions Stats -----------------------------------------------------------
ERROR: UBT ERROR: Failed to produce item: C:\SurfaceTension\UE4Fork\Engine\Binaries\Win64\UE4Editor-NetworkFileSystem.dll
Total build time: 13.65 seconds

I’m going to put an answer up here and it as my solution, in case anyone like me find this in search results:

If you are having this problem: The documentation (which is ALL OVER Epic’s various websites, Youtube, etc, seems to be completely wrong, and deals with out of date versions of the editor. This includes top Google search results! The only documentation that worked for me was the text found directly on the UE4 Github account. If you are following documentation that does not refer to Setup.bat, or asks you to download extra packages from somewhere and unzip them into the Engines folder do not do it with 4.8.

I solved my problem by deleting my local clone, redownloading it fresh, and then simply following the actual Github documentation. Hope it helps if you are having the same issue!

Hi Surface Tension,

I’ve taken a look at our documentation and you’re correct. The ‘Installing Dependencies’ section of our official documentation on this process (Downloading Unreal Engine Source Code | Unreal Engine 5.1 Documentation) is quite out of date.

I’ve made changes to reflect recent versions, mentioning the Setup.bat file and the process in relation to this change. These changes to the documentation should be published sometime before the end of today.

I’m glad you found your own solution and thank you for bringing this to our attention as I’m sure the updated documentation will be very helpful to future users.

Have a nice day,

Dude thank you so muchhh, i spent 12 hours because when i installed the epic games launcher version of the editor it recommended visual studio 2017, Tonight i decided i wanted to try to build this from source, then i found documentation that told me i had to have visual studio 2015, i spent 12 hours literally uninstalling modifying and repairing different versions of Visual studio until i got that working, just to start getting UBT errors because something else was wrong. Nothing i read anywhere helped me at all until i found the link you posted here Mr. Surface tension. You are like the shining ray of truth in a sea of deception. I had to completely re install windows and all my modeling programs and everything because of errors, I finally got it sorted and built from source like 30 minutes after i found this i cannot thank you enough i feel bad not being able to use all the characters for this reply, you would deserve all of them.

Im on 4.15 and you were on 4.8 and you like saved me from the past.