x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Build error in plugin: [Adaptive unity build] Disabling PCH for excluded files

I'm running into the following error in a plugin's code when trying to build a project after updating to Unreal 4.20:

 1>[Adaptive unity build] Disabling PCH for excluded files. Set bAdaptiveUnityDisablesPCH to false in BuildConfiguration.xml to change this behavior. 
 1>[Adaptive unity build] Excluded from MyUnrealPlugin unity file: MyFile.cpp

As an experiment, I disabled bAdaptiveUnityDisablesPCH as suggested by the error message, but doing so simply replaced the error above with this:

 <>c.<PrintExceptionInfo>b__4_1: ==============================================================================
 <>c.<PrintExceptionInfo>b__4_0: UnrealBuildTool: ERROR: UBT ERROR: Failed to produce item: E:\GameDirectory\UE4\MyGame\Plugins\MyPlugin\Intermediate\Build\Win64\UE4Editor\Development\MyPlugin\UE4Editor-MyPlugin.lib
 <>c.<PrintExceptionInfo>b__4_0:                         (see ../Programs/UnrealBuildTool/Log.txt for full exception trace)
 <>c.<PrintExceptionInfo>b__4_1: 
 <>c.<PrintExceptionInfo>b__4_1: BuildException: UBT ERROR: Failed to produce item: E:\GameDirectory\UE4\MyGame\Plugins\MyPlugin\Intermediate\Build\Win64\UE4Editor\Development\MyPlugin\UE4Editor-MyPlugin.lib
 <>c.<PrintExceptionInfo>b__4_1:    at UnrealBuildTool.ActionGraph.ExecuteActions(BuildConfiguration BuildConfiguration, List`1 ActionsToExecute, Boolean bIsRemoteCompile, String& ExecutorName, String TargetInfoForTelemetry, EHotReload HotReload) in D:\Build\++UE4\Sync\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\System\ActionGraph.cs:line 570
 <>c.<PrintExceptionInfo>b__4_1:    at UnrealBuildTool.UnrealBuildTool.RunUBT(BuildConfiguration BuildConfiguration, String[] Arguments, FileReference ProjectFile, Boolean bCatchExceptions) in D:\Build\++UE4\Sync\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.cs:line 1673
 <>c.<PrintExceptionInfo>b__4_1: ==============================================================================

Any thoughts on what I should do to correct this?

Thanks so much!

Product Version: UE 4.20
Tags:
more ▼

asked Jul 19 '18 at 07:17 AM in C++ Programming

avatar image

KevODoom
176 5 8 19

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Turned out to be a red herring. The actual error was further above in the log output and involved a warning in Windows Kit 8 that had been upgraded to an error in Windows Kit 10. Disabling these warnings, as in this context they're not a thing that affects us, corrected it.

 #pragma warning(disable:4668)    // x  is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
 #pragma warning(disable:4005)    // 'TEXT': macro redefinition
more ▼

answered Jul 21 '18 at 05:42 PM

avatar image

KevODoom
176 5 8 19

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question