Leap_NoPi.h cannot open include file Leap.h
I have created a cpp file from the LeapController, but I have not added any code to that file yet, but the engine is giving me this error: Leap_NoPi.h cannot open include file Leap.h, even though I have the Include folder, with leap.h file inside of that folder, in the include directory of the project.
Does anyone know how to solve this?
Thanks in advance.
asked Mar 04 '18 at 09:37 PM in C++ Programming
I was having the same problem, but found a really hacky workaround to it. So you can find Leap.h in "UE4_install_folder/Engine/Plugins/LeapMotion/ThirdParty/LeapSDK/Include/" and you can add this include path to your module build rules like such
after that it compiles just fine.
I haven't had the chance to test if it actually works, but I already know the "Blueprint method" (aka. implementing ILeapEventInterface, and adding LeapController component) probably doesn't work, because all events in ILeapEventInterface are declared as BlueprintImplementableEvent (so they supposedly can't have a Blueprint definition).
If you have a workaround for that one I'm all ears/eyes. In the meantime I made a post about this problem. Hope one of us will find a way, and post it here :)
I hope I was of some help.
Follow this question
Once you sign in you will be able to subscribe for any updates here