I tried the same example code on a windows machine. win 7 64bit, Matlab 2015a 64bit, sdk is the latest download from GitHub.
I touched edk.dll, edk.h, and other .h files to the same directory of the example code I was running. then I received similar error like the one from Mac Matlab. If anyone solved similar issue could you shed some light please?
attached error code below:
>> facialexpression
Error loading library intermediate output follows.
The actual error is at the end of this output.
*********
Type 'size_t' was not found. Defaulting to type error.
Found on line 588 of input from line 267 of file c:\\users\\abc\\desktop\\community-sdk-master\\examples_basic\\matlab\\IEmoStateDLL.h
Failed to parse type 'char * strDevID = " Emotiv Systems - 5 "' original input 'const char * strDevID = " Emotiv Systems - 5 "'
Found on line 3342 of input from line 194 of file C:\\Users\\abc\\Desktop\\community-sdk-master\\examples_basic\\Matlab\\Iedk.h
Error parsing argument for function IEE_EngineConnect function may be invalid.
*********
Error using loadlibrary (line 395)
Building edk_thunk_pcwin64 failed. Compiler output is:
cl -I"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\extern\include" /W3 /nologo -I"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\extern\include" -I"C:\Program Files\MATLAB\MATLAB
Production Server\R2015a\simulink\include" /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 -I"C:\Users\abc\Desktop\community-sdk-master\examples_basic\Matlab"
-I"C:\Users\abc\Desktop\community-sdk-master\examples_basic\Matlab" "edk_thunk_pcwin64.c" -LD -Fe"edk_thunk_pcwin64.dll"
edk_thunk_pcwin64.c
c:\users\abc\desktop\community-sdk-master\examples_basic\matlab\IEmotivProfile.h(171) : error C2059: syntax error : '}'
C:\Users\abc\Desktop\community-sdk-master\examples_basic\Matlab\Iedk.h(194) : error C2143: syntax error : missing ')' before '='
C:\Users\abc\Desktop\community-sdk-master\examples_basic\Matlab\Iedk.h(194) : error C2072: 'IEE_EngineConnect' : initialization of a function
C:\Users\abc\Desktop\community-sdk-master\examples_basic\Matlab\Iedk.h(194) : error C2059: syntax error : ')'
edk_thunk_pcwin64.c(171) : error C2143: syntax error : missing '{' before '*'
edk_thunk_pcwin64.c(171) : warning C4133: 'initializing' : incompatible types - from 'char [16]' to 'int *'
edk_thunk_pcwin64.c(171) : error C2146: syntax error : missing ';' before identifier 'Thunk'
edk_thunk_pcwin64.c(173) : error C2146: syntax error : missing ';' before identifier 'p0'
edk_thunk_pcwin64.c(173) : error C2065: 'p0' : undeclared identifier
edk_thunk_pcwin64.c(174) : error C2065: 'p0' : undeclared identifier
edk_thunk_pcwin64.c(174) : error C2146: syntax error : missing ')' before identifier 'strDevID'
edk_thunk_pcwin64.c(174) : warning C4047: '=' : 'char' differs in levels of indirection from 'char [21]'
edk_thunk_pcwin64.c(174) : error C2143: syntax error : missing ';' before 'const'
edk_thunk_pcwin64.c(174) : error C2059: syntax error : ')'
edk_thunk_pcwin64.c(175) : error C2065: 'p0' : undeclared identifier
edk_thunk_pcwin64.c(175) : error C2065: 'p0' : undeclared identifier
edk_thunk_pcwin64.c(175) : error C2065: 'p0' : undeclared identifier
edk_thunk_pcwin64.c(176) : error C2143: syntax error : missing ')' before '='
edk_thunk_pcwin64.c(176) : error C2143: syntax error : missing ')' before '='
edk_thunk_pcwin64.c(176) : error C2059: syntax error : '='
edk_thunk_pcwin64.c(180) : error C2061: syntax error : identifier 'int32cstringuint16Thunk'
edk_thunk_pcwin64.c(180) : error C2059: syntax error : ';'
edk_thunk_pcwin64.c(180) : error C2059: syntax error : 'type'
Error in facialexpression (line 20)
[nf, w] = loadlibrary('edk.dll','Iedk.h', 'addheader', 'IEmoStateDLL.h', 'addheader', 'IedkErrorCode.h');
>>