InfraworldRuntime
InfraworldRuntime copied to clipboard
UE5 Support
Noticing the following when trying to migrate to UE5 (testing only):
Discovering modules, targets and source code for project...
ERROR: E:\...Plugins\InfraworldRuntime\Source\InfraworldRuntime\InfraWorldRuntime.Build.cs(70,13): error CS1069: The type name 'Regex' could not be found in the namespace 'System.Text.RegularExpressions'. This type has been forwarded to assembly 'System.Text.RegularExpressions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Consider adding a reference to that assembly.
No other errors that I can notice during migration of existing project.
If you are building from source, then you can fix this by modifying to /Engine/Source/Programs/UnrealBuildTool/System/DynamicCompilation.cs. Inside UnrealBuildTool.DynamicCompilation.CompileAssembly(...) (somewhere around Line 230) is where several reference assemblies are specified. We can add our dependency like this: MetadataReferences.Add(MetadataReference.CreateFromFile(Assembly.Load("System.Text.RegularExpressions").Location));
https://forums.unrealengine.com/t/ue4-c-migration-to-ue5-issue-with-a-plugin-build-cs-file-regex/235559/6
Was this ever successfully tested on UE5? Are there any dependencies to be aware of?
1>** For InfraworldDemoEditor-Win64-Development ** 1>[1/9] Compile [x64] VizorDemonstration.cpp 1>D:\OutSource\GRpc\InfraworldRuntimeExample\Plugins\InfraworldRuntime\GrpcIncludes\third_party\protobuf\src\google\protobuf\arena_align.h(82): fatal error C1083: Cannot open include file: 'absl/numeric/bits.h': No such file or directory 1>[2/9] Compile [x64] RpcClient.cpp