Skip to content

Fix Unreal 5.4 Linux Compile Errors #293

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jayhf
Copy link

@jayhf jayhf commented Jan 7, 2025

Fixes several compiler errors (and warnings treated as errors) I encountered when using Unreal 5.4 on Linux

@@ -768,11 +768,11 @@ namespace RealtimeMesh
if (const auto ThisShared = ThisWeak.Pin())
{
FRealtimeMeshAccessContext AccessContext(ThisShared.ToSharedRef());
FRealtimeMeshComplexGeometry ComplexGeometry;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shadowed another variable of the same name

@@ -348,7 +348,7 @@ namespace RealtimeMesh

virtual void ProcessEndOfFrameUpdates() override;

friend class URealtimeMeshSimple;
friend class ::URealtimeMeshSimple;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explicit namespace is necessary to prevent this from being treated as a different type

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also fixed in https://github.com/TriAxis-Games/RealtimeMeshComponent/pull/292/files, but I think it's better to fix the friend declaration

@@ -214,7 +214,7 @@ namespace RealtimeMesh
#endif
}

/*Batcher.QueueUpdateRequest(VertexBufferRHI, UpdateData->GetNumElements() > 0? UpdateData->GetBuffer() : nullptr);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Starting a block comment is not allowed in a block comment

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -6,6 +6,7 @@
#include "ComponentAssetBroker.h"
#include "EngineUtils.h"
#include "IAssetTools.h"
#include "Editor.h"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing include, as reported here: #286 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant