Open micuat opened 9 years ago
Can you help me out with the set ups, im getting compiler errors from LeapMath.h saying that is mising a ';'
@genekogan thx for the plugin. in close() i need to make following changes to avoid a crash on exit. i am on win10 of098 vs2015
void close() {
if (ourController) {
ourController->removeListener(*this);
}
/// JRW - let's delete our Leap controller
/// call close() on app exit
#ifndef TARGET_WIN32 // 3j
delete ourController;
#endif
}
@johanjohan how did you make the addon work on W10/of098/vs2015? I've tried to copy the leap.lib as suggested in the linker section, but I receive several linker error.
Hi all, I was able to get the example project to compile on Windows 10 Version 1809 with OF 10.1, some notes below:
1.) Use V2 Leap SDK, not the Orion update, which as of now is at V4. Install it first. You will likely get an error about your graphics drivers, but ignore it and continue. You will notice that when it is installed, your Leap will not work. At this point, you need to follow the manual hotfix instructions here: https://forums.leapmotion.com/t/resolved-windows-10-fall-creators-update-bugfix/6585.
2.) Next. copy the 32-bit (x86) .bin and .lib files from LeapDeveloperKit_2.3.1+31549_win folder into the example folder's bin, replacing the ones that are there.
3.) Last, you will want to go to Project -> properties -> linker -> input and copy the full path to the .lib file. for me, it was C:\Users\user\Documents\of_v0.10.1_vs2017_release\addons\ofxLeapMotion2\example\bin\Leap.lib
.
4.) Be sure to add:
void close() {
if (ourController) {
ourController->removeListener(*this);
}
/// JRW - let's delete our Leap controller
/// call close() on app exit
#ifndef TARGET_WIN32 // 3j
delete ourController;
#endif
}
as @johanjohan noted.
Now, the example should compile!
To use the addon with Windows, add only
leap.lib
to Linker->Input->Additional Dependencies, and copyleap.dll
to thebin
directory. I tested with VS2012.