Home › Forums › Unreal Engine 4 SDK › Compile error in enum
- This topic has 4 replies, 2 voices, and was last updated 2 years, 11 months ago by Grant [Tobii].
- 12/06/2020 at 12:10 #18180
I just downloaded tobii plugin for Unreal 4.24 (we will using 4.25 soon) and it’s having me the next error:
1>C:/Unreal/Projects/Relicta/PAway/Plugins/Tobii/Source/TobiiCore/Public/TobiiTypes.h(222) : LogCompile: Error: ‘ETobiiGazeTrackerCapability’ does not have a 0 entry! (This is a problem when the enum is initalized by default)
And here you have the enum:
enum class ETobiiGazeTrackerCapability : uint8
/** This gaze tracker can deliver combined gaze data. */
CombinedGazeData = 1 UMETA(DisplayName = “Supports Combined Gaze Data”),
/** This gaze tracker can deliver individual gaze data for the left eye. */
LeftGazeData = 2 UMETA(DisplayName = “Supports Left Eye Gaze Data”),
/** This gaze tracker can deliver individual gaze data for the right eye. */
RightGazeData = 4 UMETA(DisplayName = “Supports Right Eye Gaze Data”)
So I just want to know if I can include a none = 0 at the beginning of the enum or if I have to do anything else.
Thanks12/06/2020 at 12:48 #18181
I’m also having problems with tobii_gameintegration.h and tobii_g2om.h due to in the folder ThidParty/GameIntegration/ there’s no *.build.cs file so Unreal doesn’t know that has to include it when generating visual studio files.
As a result I have the errors:
fatal error C1083: Cannot open include file: ‘tobii_g2om.h’: No such file or directory
fatal error C1083: Cannot open include file: ‘tobii_gameintegration.h’: No such file or directory12/06/2020 at 16:21 #18182Grant [Tobii]Keymaster
Hi @mightyluis, thanks for your message.. could you kindly let us know exactly which eye-tracking hardware you are working with and that you are in fact using the Tobii XR SDK? Would also be useful to know your IDE and system specs. Best Wishes.12/06/2020 at 16:26 #18183
I put the None = 0 in the enum and that should fix the problem.
The second problem i had was because I missed the name of Tobii folder inside Plugins. I renamed it and everything worked properly.
Sorry again and thank you.12/06/2020 at 22:32 #18187Grant [Tobii]Keymaster
Hi @mightyluis, no worries! Thanks for letting us know and glad to hear you managed to resolve it.
Please do get in touch should you require any further help or information. Best Wishes.
- You must be logged in to reply to this topic.