x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Leap_NoPi.h cannot open include file Leap.h

Hello,

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.

Product Version: UE 4.17
Tags:
more ▼

asked Mar 04 '18 at 09:37 PM in C++ Programming

avatar image

UmeerFI
14 4 4 8

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hi Rama,

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

  PrivateIncludePaths.AddRange(new string[] { "UE4_install_folder/Engine/Plugins/Runtime/LeapMotion/ThirdParty/LeapSDK/Include/" });

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.

more ▼

answered Mar 23 '18 at 02:00 PM

avatar image

defrost256
3 1 3 7

avatar image defrost256 Mar 23 '18 at 07:07 PM

Mind that this only let's you access the same functionality as in Blueprints. if you want everything that is in the LeapMotion SDK you need to specify some more stuff, like loading the appropriate .lib/.dll files.

I haven't experimented with that yet, but UE4_install_folder\Engine\Plugins\Runtime\LeapMotion\Source\LeapMotion\LeapMotion.Build.cs seems like a good starting point / reference.

Oh, yeah, and here's the post I made about a workaround : HERE

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question