Coder Social home page Coder Social logo

stephensurlin / ofxleapmotion2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from genekogan/ofxleapmotion2

0.0 2.0 0.0 8.08 MB

A wrapper for the Leap Motion SDK compatible with Leap 2.0 Beta with skeletal tracking

License: MIT License

Makefile 0.16% C++ 99.84%

ofxleapmotion2's Introduction

ofxLeapMotion2

ofxLeapMotion2 is an OpenFrameworks addon for the second version of the LeapMotion SDK supporting skeleton tracking (beta 2.1). It is tested on Mac OSX, and should support Linux and Windows as well.

It is based on Theo Watson's original ofxLeapMotion addon.

Installation

git clone git://github.com/genekogan/ofxLeapMotion2.git

  • The addon should sit in openFrameworks/addons/ofxLeapMotion2/.

Running the Example Project

OSX

Xcode4: Open the Xcode project, select the "leapMotionExample Debug" scheme, and hit "Run".

How to Create a New ofxLeapMotion Project

To develop your own project based on ofxLeapMotion, simply copy the example project and rename it. You probably want to put it in your apps folder, for example, after copying:

openFrameworks/addons/ofxLeapMotion2/example_leap/ => openFrameworks/apps/myApps/example_leap/

Then after renaming:

openFrameworks/apps/myApps/myLeapProject/

Mac (Xcode):

Rename the project in Xcode (do not rename the .xcodeproj file in Finder!): Slow double click the project name and rename (Xcode4)

Adding ofxLeapMotion to an Existing Project

Mac (Xcode):

In the Xcode project browser:

  • add the ofxLeapMotion2 sources to the project:

    • create a new group "ofxLeapMotion2"
    • drag these directories from ofxLeapMotion into this new group: ofxLeapMotion2/src & ofxLeapMotion2/libs
  • IMPORTANT!

  • On OS X, you must have this in the Run Script Build Phase of your Xcode project. where the first path ../../../addons/ofxLeapMotion2/ is the path to the ofxLeapMotion addon.

cp -f ../../../addons/ofxLeapMotion2/libs/lib/osx/libLeap.dylib "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/MacOS/libLeap.dylib"; install_name_tool -change ./libLeap.dylib @executable_path/libLeap.dylib "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/MacOS/$PRODUCT_NAME";

If you don't have this you'll see an error in the console: dyld: Library not loaded: @loader_path/libLeap.dylib

Developing ofxLeapMotion

Feel free to log bug reports and issues to the ofxLeapMotion Github page: https://github.com/genekogan/ofxLeapMotion2/issues

ofxleapmotion2's People

Contributors

genekogan avatar

Watchers

 avatar  avatar

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.