[FieldTrip] emotiv2ft OSX?

Karl Doron karl.doron at gmail.com
Wed Jun 4 03:28:36 CEST 2014


Hello,

I’m wondering if anyone has been able to compile emotiv2ft on for OSX (64 bit) yet. From some other threads related to the subject, the issue seemed to be a conio.h file that was DOS only. However, this may have been corrected with newer versions of Xcode which have curses.h.

The error I’m getting seems to be with the GDF writer (pasted below)

Thanks,
karl doron



-> llvm-g++ -c  -I/Applications/MATLAB_R2012b.app/extern/include -I/Applications/MATLAB_R2012b.app/simulink/include -DMATLAB_MEX_FILE -fno-common -no-cpp-precomp -fexceptions -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/ -mmacosx-version-min=10.5  -DMX_COMPAT_32 -O2 -DNDEBUG  "emotiv2ft.cc"

In file included from emotiv2ft.cc:7:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk//usr/include/OnlineDataManager.h:5:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk//usr/include/GDF_BackgroundWriter.h:1:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk//usr/include/GdfWriter.h:103:10: error: 
      cannot initialize return object of type
      'GDF_Type' with an rvalue of type 'int'
                return 0; 
                       ^
emotiv2ft.cc:114:3: error: use of undeclared
      identifier 'Sleep'; did you mean 'sleep'?
                Sleep(10);
                ^~~~~
                sleep
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk//usr/include/unistd.h:475:3: note: 
      'sleep' declared here
         sleep(unsigned int) __DARWIN_ALIAS_C(sleep);
         ^
2 errors generated.

    mex: compile of ' "emotiv2ft.cc"' failed.


---
Karl Doron, PhD
University of California, San Diego





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20140603/f59b64d8/attachment.html>


More information about the fieldtrip mailing list