summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-09-26 17:39:07 +0200
committerGitHub <noreply@github.com>2023-09-26 17:39:07 +0200
commitff23f84bceb9b286846cb40ac4df6f640e38426b (patch)
treead32d8bf4a5a0a3f1e0276a1b82a4f953136502b
parenta123bb65e10dab56f32f0a4ed015b366d23615da (diff)
parent0c69daa55f0f70255c8f2450b3aeef3f0f1bb542 (diff)
Merge pull request #1725 from khoanguyen-3fc/feature/tobii-tracker
-rw-r--r--tracker-tobii/CMakeLists.txt10
-rw-r--r--tracker-tobii/tobii.cpp2
2 files changed, 9 insertions, 3 deletions
diff --git a/tracker-tobii/CMakeLists.txt b/tracker-tobii/CMakeLists.txt
index c70a874c..7787a7dd 100644
--- a/tracker-tobii/CMakeLists.txt
+++ b/tracker-tobii/CMakeLists.txt
@@ -3,10 +3,16 @@ set(SDK_TOBII "" CACHE PATH "Tobii Stream Engine path")
if(WIN32 AND SDK_TOBII)
otr_module(tracker-tobii)
+ if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "4")
+ set(arch "x86")
+ else()
+ set(arch "x64")
+ endif()
+
target_include_directories(${self} SYSTEM PRIVATE "${SDK_TOBII}/include")
- target_link_directories(${self} PRIVATE "${SDK_TOBII}/lib/tobii")
+ target_link_directories(${self} PRIVATE "${SDK_TOBII}/lib/${arch}")
- set(dll "${SDK_TOBII}/lib/tobii/tobii_stream_engine.dll")
+ set(dll "${SDK_TOBII}/lib/${arch}/tobii_stream_engine.dll")
set(lib tobii_stream_engine.lib)
target_link_libraries(${self} ${lib})
diff --git a/tracker-tobii/tobii.cpp b/tracker-tobii/tobii.cpp
index e25cf52a..8cf59335 100644
--- a/tracker-tobii/tobii.cpp
+++ b/tracker-tobii/tobii.cpp
@@ -64,7 +64,7 @@ module_status tobii_tracker::start_tracker(QFrame*)
return error("No stream engine compatible device(s) found.");
}
- tobii_error = tobii_device_create(api, url, TOBII_FIELD_OF_USE_INTERACTIVE, &device);
+ tobii_error = tobii_device_create(api, url, &device);
if (tobii_error != TOBII_ERROR_NO_ERROR)
{
tobii_api_destroy(api);