Hello,
I’ve been building a plugin in 5.3 for awhile now with minimal issues, but ever since I try to build it in 5.4 with the BuildPlugin command I’m getting a slew of new errors I don’t entirely understand. I can build a project with the plugin installed in it just fine in Unreal 5.4 as well.
Most of the errors seems to be undefined class references, which I can solve by tracking down the specific header and including it, but I don’t understand why I didn’t have to do this in 5.3, or when building the project.
Some of those errors include:
'UBlueprintFunctionLibrary': base class undefined
'FPaths': is not a class or namespace name
I also seem to be missing some preprocessor macros, which I’m less sure on how to fix:
'ENGINE_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
I can probably just get through most of these errors by just finding the correct header files, but is there a better way to do this? Am I doing something wrong here? It’s just confusing to me since it works in older versions and when building the project.
Here’s the command I’m running:
"C:\Program Files\Epic Games\UE_5.4\Engine\Build\BatchFiles\RunUAT.bat" BuildPlugin -Plugin="E:\Unreal Projects\MUD\Plugins\ClipmapUnrealTerrain\ClipmapUnrealTerrain.uplugin" -Package="D:\plugs\CUT" -TargetPlatforms=Win64 -Rocket -precompile