Home Forums Software Development Using Tobii EyeX with QT creator ? Reply To: Using Tobii EyeX with QT creator ?

#3049
LIAGRE
Participant

Hi Thomas, Hi Jenny,

I just wanted to inform that I successfully used the Tobii EyeX SDK with Qt Creator 3.3.1 (with Qt 5.4.1).
Jenny was right, it didn’t work because of a missing CONFIG flag.
Add CONFIG += c++11 to your .pro file, copy the content of the sample “MinimalGazeDataStream.c” and paste it to your “main”.
It should run without error.

I am still trying to make it work with Qt 4.8.4 (it should be compatible with c++11), I still have some errors (13), but I still have hope 🙂 .
The errors I come up against are :
– In ‘EyeXUtils.h’ line 82
resultCode = fnGetBuf(nullptr, &size);
‘nullptr’ was not declared in this scope

– In ‘EyeXUtils.h’ line 105
std::function<TX_RESULT (TElement1*, TX_SIZE*)> fnGetBuf = [handle, pFn](TElement1* pBuf, TX_SIZE* pSize)
‘pBuf’ was not declared in this scope
‘pSize’ was not declared in this scope

– In ‘EyeXUtils.h’ line 127
auto fnGetString = [handle, pFn](TX_STRING pStr, TX_SIZE* pSize)
‘pSize’ was not declared in this scope

The other errors are linked to these one, for example line 105 :
– expected primary-expression before ‘[‘ token
– expected primary-expression before ‘*’ token