Please Select Your Location
Australia
Österreich
België
Canada
Canada - Français
中国
Česká republika
Denmark
Deutschland
France
HongKong
Iceland
Ireland
Italia
日本
Korea
Latvija
Lietuva
Lëtzebuerg
Malta
المملكة العربية السعودية (Arabic)
Nederland
New Zealand
Norge
Polska
Portugal
Russia
Saudi Arabia
Southeast Asia
España
Suisse
Suomi
Sverige
台灣
Ukraine
United Kingdom
United States
Please Select Your Location
België
Česká republika
Denmark
Iceland
Ireland
Italia
Latvija
Lietuva
Lëtzebuerg
Malta
Nederland
Norge
Polska
Portugal
España
Suisse
Suomi
Sverige

For C++ developers

Here’s a simple example of including VIVEPORT SDK in a C++ project.

  1. In Visual Studio 2015, create an empty Visual C++ project and name it as “ viveport_sdk_demo_cpp ”.
    SDKC_NewProject.png

  2. Go to the demo folder, “ viveport_sdk_demo_cpp ”, of the VIVEPORT SDK.
    SDKC_ZipFile.png

  3. Copy the necessary header and source files to the project folder that you’ve just created.
    SDKC_CopySourcetoProject.png

  4. Remove the empty project, viveport_sdk_demo_cpp.cpp , from your project folder. Use the demo sample code, program.cpp , as your main project.
    SDKC_ProjectFolder.png

  5. Using a text editor, copy and paste the sets of source codes below for different Windows environments from viveport_sdk_demo_cpp.vcxproj to your project file “ (.vcxproj) ”.

    • For Windows 32-bit release:
      SDKC_Release32.png

    • For Windows 64-bit release:
      SDKC_Release64.png

    • For Windows 32-bit debug environment:
      SDKC_Debug32.png

    • For Windows 64-bit debug environment:
      SDKC_Debug64.png

    • For necessary header and source files:
      SDKC_include.png

  6. Reload your project and rebuild it.Open Visual Studio 2015.
    When you see the Reload dialog box, click the Reload button, and then rebuild your project.
    Reload.jpg

    If you encounter the errors below, add #include “ stdafx.h ” into the Program.cpp and VIVEPORT.cpp files.
    SDKC_BuildError.png