I’m trying to get a code plugin to compile (using the “Recompile” button of the Modules window), and I keep getting this mysterious “OtherCompilationError (5)” error. Here’s the error log (open image in new tab to see better):
Also here’s an overview of my plugin’s files. Basically I’m trying to make a custom animation node:
I tried all kinds of combinations of deleting the ‘Intermediate’ folder of the plugin, rebuilding the project in Visual Studio, restarting the editor, hitting the “Refresh Visual Studio Project” button and recompiling, but it didn’t change anything.
Here’s the content of the .generated.h.conflict file mentioned in the log:
And here is some of the rest of my plugin’s code:
AnimNodeTest.Build.cs: http://pastebin.com/xPWXeZkY
AnimNode_TranslateWith.h: http://pastebin.com/iRnYZxQ4
AnimNode.TranslateWith.cpp: http://pastebin.com/MC98mjpG
What I notice in the .conflict file is that it says the .generated.h is already included, and it’s missing #pragma once. But #pragma once is there in the .h file… and if I remove the .generated.h include as it suggests, it gives me an error saying I need to include the .generated.h. I dunno what to make of this error message
And don’t mind the name “TranslateWith”. It’s just a name I got from following a tutorial on custom animation nodes, but then I changed all the code to try and copy AnimNode_Root which is already included in UE4. (just to see if I could get it working)