Description

A linker error is thrown when trying to build a project with -precompile / -useprecompile flags.

Linker Error thrown:

LINK : fatal error LNK1181: cannot open input file 'D:\UE4\Engine\Intermediate\Build\Win64\UE4\Development\Launch\PCLaunch.rc.res'

Steps to Reproduce

Has not been reproduced internally - Licensee mentioned following these steps and receiving the error

  1. Create a project
  2. Add the GetModulesToPrecompile() function to the game and editor's .target.cs file, and list all the modules to be precompiled
  3. Open a command prompt and change into the Engine/Build/BatchFiles directory
  4. Run: "Build.bat <Editor target name> Win64 Development -precompile"
  5. Run: "Build.bat <Game target name> Win64 Development -precompile"
  6. Change to the root directory and run GenerateProjectFiles.bat with the -useprecompiled option
  7. Open the project and try doing a full rebuild of the game. It should be able to do so without compiling the engine bits you have precompiled.

Have Comments or More Details?

There's no existing public thread on this issue, so head over toAnswerHub just mention UE-29549 in the post.

0
Login to Vote

Fixed
ComponentDevTools - UnrealBuildTool
Affects Versions4.9.2
Target Fix4.15
CreatedApr 15, 2016
ResolvedFeb 21, 2017
UpdatedApr 27, 2018