TriAxis-Games / RealtimeMeshComponent

Unreal Engine 5 plugin component for rendering runtime generated content.
https://rmc.triaxis.games/
Other
1.53k stars 405 forks source link

UE 4.15.2 Compile Error #46

Closed mukund-dh closed 6 years ago

mukund-dh commented 7 years ago

Hey I get the following error when I try to compile this with UE 4.15.2:

error C2504: 'TStructOpsTypeTraitsBase2': base class undefined

TStructOpsTypeTraitsBase2 is not a template Line 72, RuntimeMeshComponent.h

hhyyrylainen commented 7 years ago

I'm also getting build errors with 4.15.2. This is the error I'm getting:

[2/8] Compile Module.RuntimeMeshComponentEditor.cpp
In file included from /home/hhyyrylainen/Unreal/Thrive/Plugins/RuntimeMeshComponent/Intermediate/Build/Linux/B4D820EA/UE4Editor/Development/RuntimeMeshComponent/PCH.RuntimeMeshComponent.h:113:
In file included from /home/hhyyrylainen/Unreal/Thrive/Plugins/RuntimeMeshComponent/Source/RuntimeMeshComponent/Private/RuntimeMeshComponentPluginPrivatePCH.h:12:
../../../Thrive/Plugins/RuntimeMeshComponent/Source/RuntimeMeshComponent/Public/RuntimeMeshComponent.h:73:83: error: 
      base class has incomplete type
  ...: public TStructOpsTypeTraits<FRuntimeMeshComponentPrePhysicsTickFunction>
       ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../Thrive/Plugins/RuntimeMeshComponent/Source/RuntimeMeshComponent/Public/RuntimeMeshComponent.h:73:8: note: 
      definition of 'TStructOpsTypeTraits<FRuntimeMeshComponentPrePhysicsTickFunction>' is not complete
      until the closing '}'
struct TStructOpsTypeTraits<FRuntimeMeshComponentPrePhysicsTickFunction> : public TStructOpsTypeT...
       ^
1 error generated.
hhyyrylainen commented 7 years ago

I was able to fork and fix this: https://github.com/Revolutionary-Games/UE4RuntimeMeshComponent

I can create a pull request if that is a sufficient fix.

Koderz commented 7 years ago

And that's what I get for trying to rush through a 4.16 fix... That's actually been upgraded for 4.16 but for some reason didn't think to preprocess switch the old version back in for previous engines.

Koderz commented 7 years ago

Hopefully that's fixed but don't have 4.15 installed atm so can't verify that.

DanielDurys commented 7 years ago

I'm also getting build errors with 4.15.2: d:\unrealengine4\ue_4.15\engine\source\runtime\coreuobject\public\UObject/Class.h(662): error C2280: 'FRuntimeMeshComponentPrePhysicsTickFunction &FRuntimeMeshComponentPrePhysicsTickFunction::operator =(const FRuntimeMeshComponentPrePhysicsTickFunction &)': attempting to reference a deleted function 2> (...) =FRuntimeMeshComponentPrePhysicsTickFunction (...)

Tried to use forked version and here what I get: Time Elapsed 00:01:31.03 ========== Build: 2 succeeded, 0 failed, 0 up-to-date, 0 skipped ========== :D

Koderz commented 6 years ago

Hello,

All existing issues for RMCv2 are being closed as RMCv2 is no longer being supported. RMCv3 is in beta here : https://github.com/Koderz/RuntimeMeshComponent/tree/Version3Dev

If you encounter this or any new issues in v3 please feel free to open a new issue!

Thanks!

-Koderz