To elaborate a little more on what iparra said…
The first time you try to compile for a new target it will generate the headers, and the generated headers have the error. You can simply edit the generated headers and change the word “struct” to “class” on the problematic line. However, this does not work if you are packaging from within the editor because the headers are generated anew every time.
This error comes from the implementation of
FMatrix ULeapHand::RotationMatrix(const ULeapFrame *frame)
in
Plugins\LeapMotion\Source\LeapMotion\Private\LeapHand.cpp
If you comment out that whole function, and the function declaration in the header (i.e. Public\LeapHand.h), then the error goes away. Of course that also means you can’t access the hand’s RotationMatrix anymore. For me this is OK (I only want position), but I guess this would be unacceptable for most.