Skip to content
Kevin Kellar edited this page Aug 16, 2017 · 4 revisions

Compile Guide (with screenshots)

Make sure g++ and python are installed. If using cygwin for Windows (recommended), these packages may need to be installed from the cygwin installer.

Have openvr cloned somewhere convenient

This example code shows how to build/run the project:

git clone https://github.com/flipturnapps/OpenVR-Tracking-Example.git ViveTrack
cd ViveTrack
python build.py ~/path/to/openvr/
bash build/compile.sh

# Start up SteamVR and connect the Vive

./build/track

These screenshots show the terminal at the different stages of building and running the example:

Linux Windows (Cygwin)
Py script on Linux Python script on Windows
Linux: running compilation command Windows: running complation command
Linux: compiling succeeds Windows: compiling succeeds
Runnning the example on linux Runnning the example on windows

If there are Vive/SteamVR errors with getting the tracking example to work, see the Vive troubleshooting guide.

Clone this wiki locally