Using BuildGraph to create a local binary build of the engine fails if the BuildConfiguration.xml file has bUseUnityBuild and bUsePCHFiles both set to false. The build fails due to some missing Json includes.
<?xml version="1.0" encoding="utf-8" ?> <Configuration xmlns="https://www.unrealengine.com/BuildConfiguration"> <BuildConfiguration> <bUseUnityBuild>false</bUseUnityBuild> <bUsePCHFiles>false</bUseSharedPCHs> </BuildConfiguration> </Configuration>
RESULT:
The build will fail with several undeclared identifier errors (see attached log).
EXPECTED:
The build completes successfully.
WORKAROUND:
Adding the following includes to Engine\Plugins\Online\OnlineSubsystem\Source\Private\OnlineSubsystemImpl.cpp allows the build to complete successfully:
#include "Dom/JsonObject.h" #include "Dom/JsonValue.h" #include "Serialization/JsonReader.h" #include "Serialization/JsonSerializer.h"
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-46444 in the post.
0 |
Component | UE - Online |
---|---|
Affects Versions | 4.16.1 |
Target Fix | 4.18 |
Created | Jun 23, 2017 |
---|---|
Resolved | Jul 7, 2017 |
Updated | Oct 28, 2022 |