Code Monkey home page Code Monkey logo

Comments (4)

lkishfy avatar lkishfy commented on July 3, 2024 6

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!

from ofxleapmotion2.

JairoJs avatar JairoJs commented on July 3, 2024

Can you help me out with the set ups, im getting compiler errors from LeapMath.h saying that is mising a ';'

from ofxleapmotion2.

johanjohan avatar johanjohan commented on July 3, 2024

@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

	}

from ofxleapmotion2.

gtb8 avatar gtb8 commented on July 3, 2024

@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.

from ofxleapmotion2.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.