Installation & Setup¶
Requirements¶
To begin using the SDK, you need:
Windows 10 or later.
The Beam Eye Tracker application installed and setup on your system.
The SDK downloaded and unzipped on your system (If using Python, this is optional).
A development environment for your chosen programming language or framework.
Project configuration¶
Depending on your specific project and language, you need to follow the steps below to integrate the SDK.
Add the
beam_eye_tracker_sdk-2.x.x\includedirectory to your project’s include paths.Note
In case of using CMake, you can use the
target_include_directoriescommand.Add the
beam_eye_tracker_sdk-2.x.x\lib\win64directory to your project’s library directories.Note
In case of using CMake, you can use the
target_link_directoriescommand.Add the
beam_eye_tracker_client.libfile to your project’s linker input dependencies.Note
In case of using CMake, you can use the
target_link_librariescommand.Copy the
beam_eye_tracker_client.dllfrom thebeam_eye_tracker_sdk-2.x.x\bin\win64directory to your project’s output directory.
Note
We also provide an alternative library build with /MT` (beam_eye_tracker_client_MT.lib` and beam_eye_tracker_client_MT.dll) and thus not requiring the Visual C++ Redistributable at the host machine. However, in most cases, it is acceptable and even preferred to use the default library (/MD build).
Install the
beam-eye-trackerpackage:pip install beam-eye-trackerNote
Alternatively, you can download the SDK, unzip it and add the
beam_eye_tracker_sdk-2.x.x\python\packagedirectory to yourPYTHONPATH.Test your installation:
# This should not raise an import error: from eyeware.beam_eye_tracker import API
This assumes the project platform target is x64:
Copy
beam_eye_tracker_sdk-2.x.x\csharp\Eyeware\BeamEyeTracker.csinto your project directory (e.g., root or a subfolder likeEyeware/).Include the
BeamEyeTracker.csfile in your project.Note
For Visual Studio: Right-click the project in Solution Explorer, select
Add > Existing Item, and addBeamEyeTracker.cs.Copy the
beam_eye_tracker_client.dllfrom thebeam_eye_tracker_sdk-2.x.x\bin\win64directory to your project’s output directory.Note
For Visual Studio: Add it to the project (
Add > Existing Item), then setProperties > Copy to Output DirectorytoCopy always.Add the using directive in your code:
using Eyeware.BeamEyeTracker;
Note
A ready to use Unity package is available. See Unity Package Installation for more information.
Now that you have the SDK integrated into your project, you can continue to the next section to get a general explanation of how the API is structured.