[Tutorial] - Environment Setup Guide
(Note: This tutorial uses Visual Studio 2015/2017 version and Voxon SDK v2.8)
Tutorial Video: https://drive.google.com/file/d/1RvV0048e-wtGQ5SvW4h4JMXTH63YpAJx/view
voxiesimp.exe: voxiesimp.c voxiebox.h; cl /TP voxiesimp.c /Ox /MT /link user32.lib
del voxiesimp.obj
To compile the code, enter the following command in the x64 command prompt:
cl /TP voxiesimp.c /Ox /MT /link user32.lib
or
nmake voxiesimp.c
References:
- Copy the voxiesimp.c, voxiebox.h and voxiebox.dll to your project folder.
- These files can be found in runtime_v2.8 folder.
- voxiebox.dll is compiled in 64-bit mode. Make sure the compilation target is also 64-bit or voxie_load() will fail.
- Copy the LeapC.h file (from LeapSDK → include folder) and the LeapC.dll file (from LeapSDK → lib → x64 folder) to your project folder.
- In order to use x64 native tools command prompt, you have to call it from your Windows start menu.
- Start menu → Type "Developer Command Prompt" → Right-click and open the file location → Enter the VC folder → select x64 native tools command prompt for your Visual Studio version).
- We have to use this command prompt because the default command prompt no longer supports some commands, such as cl, which we need to compile our program. Additionally, since we need to compile our program to 64-bit program, we have to use the 64-bit compiler.
- Go to your project folder through the command prompt.
- In voxiesimp.c file, you can see the makefile commands:
voxiesimp.exe: voxiesimp.c voxiebox.h; cl /TP voxiesimp.c /Ox /MT /link user32.lib
del voxiesimp.obj
To compile the code, enter the following command in the x64 command prompt:
cl /TP voxiesimp.c /Ox /MT /link user32.lib
or
nmake voxiesimp.c
References:
- Voxon SDK: http://voxon.co/developer-kit/
- LeapMotion SDK: https://developer.leapmotion.com/get-started/
- Build C/C++ code on the command line on Windows, https://docs.microsoft.com/en-us/cpp/build/building-on-the-command-line
- Usage of CL command, https://msdn.microsoft.com/en-us/library/610ecb4h.aspx
- For mingw:
http://www.mingw.org/wiki/specify_the_libraries_for_the_linker_to_use
http://www.mingw.org/wiki/MSVC_and_MinGW_DLLs - Dynamic-Link Libraries, https://docs.microsoft.com/en-us/windows/desktop/Dlls/dynamic-link-libraries
Comments
Post a Comment