Hi all! I am having a strange issue with plugin compilation.
When the plugin folder is placed in the project’s /Plugins
folder, there are mutliple compilation errors. However, if the exact same folder is placed in UE_5.1/Engine/Plugins/Marketplace
, everything works.
The same issue appears with several plugins meant for Unreal 5.1, for example the official Oculus plugin for Unreal 5.1. Another example is AzSpeech.
The error log for compiling this plugin in the project folder, for example, looks like this:
...\OculusXRPassthroughLayerShapes.cpp(35): Error C2065 : 'ovrpColorf': undeclared identifier
...\OculusXRPassthroughLayerShapes.cpp(39): Error C4430 : missing type specifier - int assumed. Note: C++ does not support default-int
...\OculusXRPassthroughLayerShapes.cpp(39): Error C2146 : syntax error: missing ';' before identifier 'Color'
...\OculusXRPassthroughLayerShapes.cpp(39): Error C2065 : 'Color': undeclared identifier
...\OculusXRPassthroughLayerShapes.cpp(39): Error C2039 : 'ToOvrpColorf': is not a member of 'OculusXRHMD'
...\OculusXRPassthroughMesh.h(5): Reference : see declaration of 'OculusXRHMD'
and so on.
The same plugins compile and link in previous versions of the Engine. Has there been any changes to module compilation in Unreal 5.1 that might affect this? Would appreciate any advice.