[Leap Motion Development Series] win32 application environment Configuration

Source: Internet
Author: User
Tags visual studio 2010

Continuous maintenance address: http://52coding.com/leap-motion-dev-win32-config

This article is used to provide cainiao literacy that does not configure the LeapMotion Win32 application. If you do not know where to download the SDK, you can go to this address or the official address (if this article is more than a month old, please download it from the official address ).

0. Find out where your Leap Motion SDK is installed, and put it under F: \ Leap Motion \ LeapSDK. Remember this address and use it later.

1. Find the computer's "Environment configuration" and enable it

 

2. Create a new user variable named LeapMotionSDK

3. Modify the Path of the user variable (if there is no Path variable, create a new one) and add the Path of the dll in the SDK. (Add a semicolon at the end)

4. Save, close all programs, log off the current user of the Computer (you can also restart), and log on again. In this way, the environment variable just set takes effect.

5. Open Visual Studio 2010, Visual Studio 2012, or other. Create a Win32 application named LeapSample.

 

Click Finish directly:

6. After a new project is created, modify the project attributes.

7. Add the executable directory address (you can leave it blank and add it as an insurance)

8. Add "include directory" $ (LeapMotionSDK) include

9. Add a library directory

$ (VCInstallDir) lib

$ (VCInstallDir) atlmfc \ lib

$ (WindowsSDK_LibraryPath_x86)

$ (LeapMotionSDK) lib \ x86

10. Add additional dependencies (linker --> input --> additional dependencies)

Leapd. lib
Kernel32.lib
User32.lib
Gdi32.lib
Winspool. lib
Comdlg32.lib
Advapi32.lib
Shell32.lib
Ole32.lib
Oleaut32.lib
Uuid. lib
Odbc32.lib
Odbccp32.lib

11. Save, copy and paste the code shown in the article to the LeapSample. cpp file, compile F7, and run Ctrl + F5. See the output, which indicates that the program configuration is correct (LeapMotion naturally needs to be connected)

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.