It is correct in the sense that you literally cannot use this option with the binary engine, but I've fixed it not failing sooner.
Enabling bUseLoggingInShipping for a project prevents the project from being built for Shipping if the project includes replicated properties. This is only an issue with binary builds of the Engine. If the Engine was built from source code, the project will successfully build for Shipping.
UPROPERTY(EditAnywhere, BlueprintReadWrite, Replicated, Category = "Networking", meta = (ClampMin = "0", UIMin = "0")) float ControllerNetUpdateRate;
void AMyActor::GetLifetimeReplicatedProps(TArray< class FLifetimeProperty > & OutLifetimeProps) const { Super::GetLifetimeReplicatedProps(OutLifetimeProps); DOREPLIFETIME(AReplicationTest, ControllerNetUpdateRate); }
RESULT:
The build fails with the following linker error:
1>MyActor.cpp.obj : error LNK2001: unresolved external symbol "struct FLogCategoryLogType LogType" (?LogType@@3UFLogCategoryLogType@@A) 1>MyActor.gen.cpp.obj : error LNK2019: unresolved external symbol "struct FLogCategoryLogClass LogClass" (?LogClass@@3UFLogCategoryLogClass@@A) referenced in function "protected: void __cdecl TProperty_Numeric<float>::ConvertFromInt<__int64>(class FArchive &,void *,struct FPropertyTag const &)" (??$ConvertFromInt@_J@?$TProperty_Numeric@M@@IEAAXAEAVFArchive@@PEAXAEBUFPropertyTag@@@Z)
EXPECTED:
The build completes successfully.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-56418 in the post.
0 |
Component | UE - Foundation - Core |
---|---|
Affects Versions | 4.17.2, 4.18.3, 4.19 |
Target Fix | 4.20 |
Created | Mar 22, 2018 |
---|---|
Resolved | Mar 26, 2018 |
Updated | May 31, 2018 |