When doing the tutorial nº5, I obtain the following error when building with “development editor”. However using “debug game editor” the code is compiled correctly.
1>------ Build started: Project: TutorialCode, Configuration: Development_Editor x64 ------
1> Parsing headers for TutorialCodeEditor
1>LogTextLocalizationManager : warning : The selected culture ‘es_ES’ is not available; falling back to ‘en’
1> Code generation finished for TutorialCodeEditor and took 4,13
1> Performing 2 actions (max 4 parallel jobs)
1> TutorialCodeCharacter.cpp
1> [2/2] link.exe UE4Editor-TutorialCode.dll
1>LINK : fatal error LNK1104: cannot open file ‘C:\Users\Sergio\Documents\Unreal Projects\TutorialCode\Binaries\Win64\UE4Editor-TutorialCode.dll’
1> -------- End Detailed Actions Stats -----------------------------------------------------------
1>ERROR : UBT error : Failed to produce item: C:\Users\Sergio\Documents\Unreal Projects\TutorialCode\Binaries\Win64\UE4Editor-TutorialCode.pdb
1> Cumulative action seconds (8 processors): 0,00 building projects, 0,55 compiling, 0,00 creating app bundles, 0,00 generating debug info, 0,12 linking, 0,00 other
1> UBT execution time: 9,18 seconds
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets(38,5): error MSB3073: The command ““C:\Program Files\Unreal Engine\4.2\Engine\Build\BatchFiles\Build.bat” TutorialCodeEditor Win64 Development “C:\Users\Sergio\Documents\Unreal Projects\TutorialCode\TutorialCode.uproject” -rocket” exited with code -1.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Thanks a lot it resolve my issue for UE 5.1 too by deleting all files under [ProjectPath]/Engine/Binaries/Win64 . My issue is:
1 built successfully for several times;
2 fail to build for LINK1104. (my case are RemoteControlMIDIEditor.supperess.exe and another (forget about the name)). Those files maybe poluted during the long period of building(PC may get into the sleep mode and then I waked it up to continue building process).
Notice: pure “Clean” for the project in VS2022 did not work.
Late to the party, but I was experiencing this issue today. On top of closing UE it also helps to check your task manager and make sure all the tasks have ended. I thought everything was closed out, but unreal was still running in the background for me!