Home Forums EyeX Software Development dev C++ include error

This topic contains 9 replies, has 3 voices, and was last updated by Profile photo of Grant [Tobii] Grant [Tobii] 2 months ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #7133
    Profile photo of Ro
    Ro
    Participant

    Hi,

    I have downloaded the SDK for C++ development and followed the walk through at http://developer.tobii.com/walkthrough-setting-cc-project-eyex-c-api/

    I have completed all the steps in the walk through but I am still receiving an error message for the include to say that the source file cannot be opened.

    Is there a more detailed walk through for other options to add the libraries?
    I am new to visual studio so I am finding it difficult to understand what has went wrong!

    #7136
    Profile photo of Grant [Tobii]
    Grant [Tobii]
    Moderator

    Hi @ro1000, it still sounds like a path issue in that the files have not been properly linked
    to the visual studio project. However, in terms of other sources of getting started coding
    with the EyeX/C4 there is separate documentation and tutorials setup for the Tobii Core SDK which
    includes extra samples and some more detailed information on getting up and running.

    You can download the various samples @ https://github.com/Tobii/CoreSDK

    With associated documentation available @ https://tobii.github.io/CoreSDK/articles/intro.html

    I would suggest you first run one of the sample projects included and from there try to build up a project from scratch.
    Also, I would advise using Visual Studio 2015 to make NuGet packages easier to install.

    Please let me know how you get on.

    #7142
    Profile photo of Ro
    Ro
    Participant

    For the Tobii pro SDK I have tried using the NuGet package manager to access the SDK but I am still getting an error message when I try to use
    #include “tobii_research.h”

    If I use NuGet is there anything else needed?
    I tried to also add the SDK manually but when I go to ‘Add References’ there is no option to browse for the dll

    #7143
    Profile photo of Alex [Tobii]
    Alex [Tobii]
    Participant

    Hi!

    1. For Tobii Pro SDK related questions please contact Tobii Pro support at https://www.tobiipro.com/contact/

    2. C/C++ SDKs are native which means you should link them in your C++ project settings. “Add References” only works for managed dlls in C# or C++/CLI projects.

    3. If you are willing to use Tobii C++ SDK (not Tobii Pro), you have two options. One is the legacy Tobii EyeX SDK 1.8 ( http://developer.tobii.com/download-tobii-legacy-sdks/ )

    The second option is the low level Stream Engine API ( http://developer.tobii.com/tobii-core-sdk/ )

    Tobii Core SDK is currently only released for C#.

    #7167
    Profile photo of Ro
    Ro
    Participant

    Hi
    I decided to use the Core SDK and have been following the ‘Getting started’ page.
    I searched for the SDK on NuGet Manager but there seem to be three packages that I need instead of one single package.
    Interaction, Framework and EyeX. I installed all of them and copied in the code from the Streams
    section in Getting Started – https://tobii.github.io/CoreSDK/articles/streams.html

    However I am receiving an error message for this line :

    _unfilteredGazePointDataStream = _host.Streams.CreateGazePointDataStream(GazePointDataMode.Unfiltered);

    cannot convert from ‘Tobii.EyeX.Framework.GazePointDataMode’ to ‘Tobii.Interaction.Framework.GazePointDataMode’

    I suppose it is probably to do with the SDK as I copied and pasted the code directly from the Streams page

    #7170
    Profile photo of Alex [Tobii]
    Alex [Tobii]
    Participant

    Hi!

    You only need Tobii.Interaction package for Core SDK. https://www.nuget.org/packages/Tobii.Interaction/

    #7174
    Profile photo of Ro
    Ro
    Participant

    Oh ok, I was confused as the core SDK ‘getting started’page had the other packages in the sample code.

    I am wondering now is there a way to create a gaze overlay with the core SDK for my program or would this need to be done separately with the actual Tobii software?

    Thanks

    #7175
    Profile photo of Alex [Tobii]
    Alex [Tobii]
    Participant

    It depends what you need it for. Original Gaze overlay is written in C++/DX11

    #7176
    Profile photo of Ro
    Ro
    Participant

    Ok thanks.
    Is there anywhere I can find a brief description of what the methods in the api actually do? I looked on github but it only seems to provide a html file for all of the methods.

    Thanks

    #7206
    Profile photo of Grant [Tobii]
    Grant [Tobii]
    Moderator

    Hi @ro1000, the methods used in the Tobii Core SDK are fully described at the following location:
    https://tobii.github.io/CoreSDK/api/index.html

    Please kindly let us know if you need any further information.

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.