getnamo / leap-ue4

Leap Motion plugin for Unreal Engine 4
MIT License
228 stars 73 forks source link

Cannot include Leap.h #22

Open peacememories opened 6 years ago

peacememories commented 6 years ago

Hello and thanks for your work on this plugin.

I have a bit of a problem when trying to use parts of the plugin from C++ I added "LeapMotion" to the dependencies in my projects build.cs file, and including files like LeapEnums.h works like a charm. As soon as I include "LeapController.h" though, the nested include of "Leap.h" errors, because the file cannot be found. I can see that it is in the ThirdParty folder in the Leap plugin, but I do not know how to modify my project settings to include it.

getnamo commented 6 years ago

The preview plugin doesn't have this issue, if you're interested pm me on the unreal forums to get access.

That said if you are keen to use the current version, the easiest approach would be to just copy all 4 headers found here: https://github.com/getnamo/leap-ue4/tree/master/Plugins/LeapMotion/ThirdParty/LeapSDK/Include into your project source.