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)