[4.8.0 P1]: UBT ERROR: Failed to produce item

Hi there,

Just tried to convert a copy of my project to 4.8. Got this error:

 1>ERROR : UBT error : Failed to produce item: D:\Documents\Unreal Projects\VRShowRoom_4.8\Binaries\Win64\VRShowRoom.exe
         Total build time: 36,74 seconds
     1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets(43,5): error MSB3075: The command ""C:\Program Files\Epic Games\4.8\Engine\Build\BatchFiles\Rebuild.bat" VRShowRoom Win64 Development "D:\Documents\Unreal Projects\VRShowRoom_4.8\VRShowRoom.uproject" -rocket" exited with code 5. Please verify that you have sufficient rights to run this command.
     1>Done Building Project "D:\Documents\Unreal Projects\VRShowRoom_4.8\Intermediate\ProjectFiles\VRShowRoom.vcxproj" (Rebuild target(s)) -- FAILED.

I tried to run the command again from the console with admin rights, but still getting the same message.

I know, this is a real classic. But I couldn’t find where to get more specific information about this error, what is the actual problem here?

The project compiles without problems in 4.7.6:

1>------ Rebuild All started: Project: VRShowRoom, Configuration: Development_Editor x64 ------
1>  Cleaning VRShowRoomEditor Binaries...
1>  Compiling game modules for hot reload
1>  Compiling game modules for hot reload
1>  Parsing headers for VRShowRoomEditor
1>  Reflection code generated for VRShowRoomEditor
1>  Performing 8 actions (4 in parallel)
1>  [2/8] Resource ModuleVersionResource.rc.inl
1>  [3/8] Resource VRShowRoom.rc
1>  PCH.VRShowRoom.VRShowRoom.h.cpp
1>  VRShowRoom.generated.cpp
1>  VRSR_CPP_FL.cpp
1>  VRShowRoom.cpp
1>  CarMeshComponent.cpp
1>  [8/8] Link UE4Editor-VRShowRoom-6696.dll
1>     Creating library D:\Documents\Unreal Projects\VRShowRoom\Intermediate\Build\Win64\VRShowRoomEditor\Development\UE4Editor-VRShowRoom-6696.lib and object D:\Documents\Unreal Projects\VRShowRoom\Intermediate\Build\Win64\VRShowRoomEditor\Development\UE4Editor-VRShowRoom-6696.exp
1>  -------- End Detailed Actions Stats -----------------------------------------------------------
1>  Cumulative action seconds (4 processors): 0,00 building projects, 56,48 compiling, 0,00 creating app bundles, 0,00 generating debug info, 0,81 linking, 0,00 other
1>  UBT execution time: 65,98 seconds
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

Hey ,

Are the error that you posted the full error from 4.8 Preview 1? Also, did you try to convert your project in place, or simply copy it? Please provide a bit more information so we can investigate this further for you.

Thanks! :slight_smile:

Hi ,

thanks for investigating. I did first copy the project (except Binaries, Intermediate and Saved) then tried a in-place-conversation with the copy.

The only log I can find is the one I provided (I uploaded the whole file):
[link text][1]

I cannot find additional information about the error, that’s the problem…

PS: Yes, it’s 4.8.0 P1.

41775-vrshowroom.log (1.78 KB)

Hey ,

Have you been able to build any other project in 4.8 Preview 1? The provided show that there is a recompiler issue, it looks like the /Build/Windows/Application.ico isn’t able to be found. So it’s either missing or it’s been moved?

I also noticed this:

Error MSB3075: The command ""C:\Program Files\Epic Games\4.8\Engine\Build\BatchFiles\Rebuild.bat" VRShowRoom Win64 Development "D:\Documents\Unreal Projects\VRShowRoom_4.8\VRShowRoom.uproject" -rocket" exited with code 5. Please verify that you have sufficient rights to run this command.

First, could you please go to the Build/Windows folder inside of your project, if it’s not there, simply create it. Then add an Application.ico file into the Windows folder, simply copy and paste it from another project.

If that doesn’t work, would you mind trying this within Visual Studio: Project node in Solution Explorer → -> right mouse button → Properties → Linker → General → Pre- Redirection is set to TRUE.

I also found this [forum post][1] which is similar to the issue you’re experiencing, if you’re on Windows 7, I would suggest trying what’s suggested on post 9 especially.

Looking forward to hearing back from you, I hope this information helps. :slight_smile:

Errors building the source code - C++ - Epic Developer Community Forums

Hi ,

I don’t know why this ICO file isn’t there. Is it critical for the recompile?
I also tried to re-run the command manually from the console with admin rights, didn’t change anything (see my original post).

I will try your suggestions. Many thanks in advance.

I will report back then.

Hey ,

Yes, you’re going to need to have the ICO file, it’s necessary. Let me know how it goes regarding what’s been suggested. Good luck. :slight_smile:

Hi ,

I was apple to convert the project on another machine. Didn’t have the ‘Build’ directory in source control. Copied the whole directory over and it worked. Will add it to GIT from now on.

Many thanks again,

Hey ,

You’re very welcome. If you have any further questions, let us know! Have a great week! :smiley:

Hi, I tried this but it doesn’t work for me. I can’t find the Linker option in properties. My problem is that I deleted an actor file from the project by mistake and now Visual Studio throws this error whenever I tried to build the solution. I don’t remember what the file had so I can’t manually recover it. Rebuilding the project before launch always fails, so I essentially have to start the project all over again. I looked up Error MSB3073Exited with code -1 online and everywhere it says that admin rights fixes it. I tried running Visual Studio with admin rights and that didn’t change anything.

Your error isn’t the same as the error shown above. Please submit your own output error in a new AnswerHub thread for additional assistance.

Thanks!