qdot/emokit — Issue #12: Emokit Setup on Windows 7 64-bit using MSVC 2008
Author: razano1
Created: 2012-02-22 17:45:42+00:00
State: open

I am trying to setup Emokit using MSVC 2008, I have installed the prerequisites like WDK and libmcrypt. include paths are set as well. But still i am getting too many strange errors, which i am trying to figure out, Any help regarding that would really be great.

There is also confusion regarding C implementation of Emokit on windows . as it is mentioned in the readme file that

"
The C library is currently supported on:

OS X/Linux - Via libusb-1.0
Windows - Coming soon (via good ol' Win32 HID calls)

"
Is it kind of old readme or what??? , kindly confirm me that Emokit C implementation works on Windows platform or not .
i am using Win 7 64-bit, i have a Research Emotive headset, although i have access to raw data but i want to compare the data rates provided by Emotiv SDK and from the USB interface directly.

here are the Errors

2>Compiling...
2>epoc.c
2>epoc_win32.c
2>c:\winddk\7600.16385.1\inc\api\hidpi.h(307) : error C2085: 'HidP_GetCaps' : not in formal parameter list
2>c:\winddk\7600.16385.1\inc\api\hidpi.h(323) : error C2061: syntax error : identifier '__drv_maxIRQL'
2>c:\winddk\7600.16385.1\inc\api\hidpi.h(360) : error C2085: 'HidP_GetSpecificButtonCaps' : not in formal parameter list
2>c:\winddk\7600.16385.1\inc\api\hidpi.h(413) : error C2061: syntax error : identifier '__drv_maxIRQL'
2>c:\winddk\7600.16385.1\inc\api\hidpi.h(433) : error C2085: 'HidP_GetSpecificValueCaps' : not in formal parameter list
2>c:\winddk\7600.16385.1\inc\api\hidpi.h(488) : error C2061: syntax error : identifier '__drv_maxIRQL'
2>c:\winddk\7600.16385.1\inc\api\hidpi.h(506) : error C2085: 'HidP_GetExtendedAttributes' : not in formal parameter list
2>c:\winddk\7600.16385.1\inc\api\hidpi.h(531) : error C2061: syntax error : identifier '__drv_maxIRQL'
2>c:\winddk\7600.16385.1\inc\api\hidpi.h(653) : error C2085: 'HidP_GetData' : not in formal parameter list
2>c:\winddk\7600.16385.1\inc\api\hidpi.h(699) : error C2061: syntax error : identifier '__drv_maxIRQL'
2>c:\winddk\7600.16385.1\inc\api\hidpi.h(1012) : error C2085: 'HidP_GetUsagesEx' : not in formal parameter list
2>c:\winddk\7600.16385.1\inc\api\hidpi.h(1077) : error C2061: syntax error : identifier '__drv_maxIRQL'
2>c:\winddk\7600.16385.1\inc\api\hidpi.h(1672) : error C2085: 'HidP_UsageListDifference' : not in formal parameter list
2>c:\winddk\7600.16385.1\inc\api\hidpi.h(1697) : error C2061: syntax error : identifier '__drv_maxIRQL'
2>C:\WinDDK\7600.16385.1\inc\api/hidsdi.h(80) : error C2143: syntax error : missing ')' before '('
2>C:\WinDDK\7600.16385.1\inc\api/hidsdi.h(80) : error C2081: '__drv_when' : name in formal parameter list illegal
2>C:\WinDDK\7600.16385.1\inc\api/hidsdi.h(80) : error C2143: syntax error : missing ')' before 'return'
2>C:\WinDDK\7600.16385.1\inc\api/hidsdi.h(80) : error C2091: function returns function
2>C:\WinDDK\7600.16385.1\inc\api/hidsdi.h(80) : error C2143: syntax error : missing '{' before 'return'
2>C:\WinDDK\7600.16385.1\inc\api/hidsdi.h(80) : error C2059: syntax error : 'return'
2>C:\WinDDK\7600.16385.1\inc\api/hidsdi.h(104) : error C2143: syntax error : missing ')' before '('
2>C:\WinDDK\7600.16385.1\inc\api/hidsdi.h(104) : error C2091: function returns function
2>C:\WinDDK\7600.16385.1\inc\api/hidsdi.h(105) : error C2059: syntax error : ')'
2>C:\WinDDK\7600.16385.1\inc\api/hidsdi.h(105) : error C2085: 'PreparsedData' : not in formal parameter list
2>C:\WinDDK\7600.16385.1\inc\api/hidsdi.h(110) : error C2085: 'HidD_FlushQueue' : not in formal parameter list
2>C:\WinDDK\7600.16385.1\inc\api/hidsdi.h(130) : error C2085: 'HidD_GetConfiguration' : not in formal parameter list
2>C:\WinDDK\7600.16385.1\inc\api/hidsdi.h(156) : error C2085: 'HidD_SetConfiguration' : not in formal parameter list
2>C:\WinDDK\7600.16385.1\inc\api/hidsdi.h(186) : error C2085: 'HidD_GetFeature' : not in formal parameter list
2>C:\WinDDK\7600.16385.1\inc\api/hidsdi.h(212) : error C2085: 'HidD_SetFeature' : not in formal parameter list
2>C:\WinDDK\7600.16385.1\inc\api/hidsdi.h(238) : error C2085: 'HidD_GetInputReport' : not in formal parameter list
2>C:\WinDDK\7600.16385.1\inc\api/hidsdi.h(264) : error C2085: 'HidD_SetOutputReport' : not in formal parameter list
2>C:\WinDDK\7600.16385.1\inc\api/hidsdi.h(289) : error C2085: 'HidD_GetNumInputBuffers' : not in formal parameter list
2>C:\WinDDK\7600.16385.1\inc\api/hidsdi.h(312) : error C2085: 'HidD_SetNumInputBuffers' : not in formal parameter list
2>C:\WinDDK\7600.16385.1\inc\api/hidsdi.h(337) : error C2085: 'HidD_GetPhysicalDescriptor' : not in formal parameter list
2>C:\WinDDK\7600.16385.1\inc\api/hidsdi.h(363) : error C2085: 'HidD_GetManufacturerString' : not in formal parameter list
2>C:\WinDDK\7600.16385.1\inc\api/hidsdi.h(389) : error C2085: 'HidD_GetProductString' : not in formal parameter list
2>C:\WinDDK\7600.16385.1\inc\api/hidsdi.h(416) : error C2085: 'HidD_GetIndexedString' : not in formal parameter list
2>C:\WinDDK\7600.16385.1\inc\api/hidsdi.h(443) : error C2085: 'HidD_GetSerialNumberString' : not in formal parameter list
2>C:\WinDDK\7600.16385.1\inc\api/hidsdi.h(470) : error C2085: 'HidD_GetMsGenreDescriptor' : not in formal parameter list
2>..\c\src\epoc_win32.c(17) : error C2085: 'ActualBytesRead' : not in formal parameter list
2>..\c\src\epoc_win32.c(18) : error C2085: 'BytesRead' : not in formal parameter list
2>..\c\src\epoc_win32.c(19) : error C2085: 'Capabilities' : not in formal parameter list
2>..\c\src\epoc_win32.c(20) : error C2085: 'cbBytesRead' : not in formal parameter list
2>..\c\src\epoc_win32.c(21) : error C2085: 'detailData' : not in formal parameter list
2>..\c\src\epoc_win32.c(22) : error C2085: 'dwError' : not in formal parameter list
2>..\c\src\epoc_win32.c(23) : error C2085: 'FeatureReport' : not in formal parameter list
2>..\c\src\epoc_win32.c(24) : error C2085: 'hEventObject' : not in formal parameter list
2>..\c\src\epoc_win32.c(25) : error C2085: 'hDevInfo' : not in formal parameter list
2>..\c\src\epoc_win32.c(26) : error C2085: 'HidGuid' : not in formal parameter list
2>..\c\src\epoc_win32.c(27) : error C2085: 'HIDOverlapped' : not in formal parameter list
2>..\c\src\epoc_win32.c(28) : error C2085: 'InputReport' : not in formal parameter list
2>..\c\src\epoc_win32.c(29) : error C2085: 'Length' : not in formal parameter list
2>..\c\src\epoc_win32.c(30) : error C2085: 'lpOverLap' : not in formal parameter list
2>..\c\src\epoc_win32.c(31) : error C2085: 'MyDeviceDetected' : not in formal parameter list
2>..\c\src\epoc_win32.c(31) : error C2143: syntax error : missing ';' before '='
2>..\c\src\epoc_win32.c(54) : warning C4013: 'HidD_GetPreparsedData' undefined; assuming extern returning int
2>..\c\src\epoc_win32.c(69) : warning C4013: 'HidP_GetCaps' undefined; assuming extern returning int
2>..\c\src\epoc_win32.c(70) : error C2065: 'Capabilities' : undeclared identifier
2>..\c\src\epoc_win32.c(86) : error C2065: 'Length' : undeclared identifier
2>..\c\src\epoc_win32.c(87) : error C2065: 'detailData' : undeclared identifier
2>..\c\src\epoc_win32.c(87) : warning C4047: '=' : 'int' differs in levels of indirection from 'void *'
2>..\c\src\epoc_win32.c(96) : error C2065: 'HidGuid' : undeclared identifier
2>..\c\src\epoc_win32.c(96) : warning C4133: 'function' : incompatible types - from 'int *' to 'LPGUID'
2>..\c\src\epoc_win32.c(104) : error C2065: 'hDevInfo' : undeclared identifier
2>..\c\src\epoc_win32.c(105) : error C2065: 'HidGuid' : undeclared identifier
2>..\c\src\epoc_win32.c(105) : warning C4133: 'function' : incompatible types - from 'int *' to 'const GUID *'
2>..\c\src\epoc_win32.c(108) : warning C4047: '=' : 'int' differs in levels of indirection from 'HDEVINFO'
2>..\c\src\epoc_win32.c(131) : error C2065: 'hDevInfo' : undeclared identifier
2>..\c\src\epoc_win32.c(131) : warning C4022: 'SetupDiEnumDeviceInterfaces' : pointer mismatch for actual parameter 1
2>..\c\src\epoc_win32.c(133) : error C2065: 'HidGuid' : undeclared identifier
2>..\c\src\epoc_win32.c(133) : warning C4133: 'function' : incompatible types - from 'int *' to 'const GUID *'
2>..\c\src\epoc_win32.c(163) : error C2065: 'hDevInfo' : undeclared identifier
2>..\c\src\epoc_win32.c(163) : warning C4022: 'SetupDiGetDeviceInterfaceDetailA' : pointer mismatch for actual parameter 1
2>..\c\src\epoc_win32.c(167) : error C2065: 'Length' : undeclared identifier
2>..\c\src\epoc_win32.c(172) : error C2065: 'detailData' : undeclared identifier
2>..\c\src\epoc_win32.c(172) : error C2065: 'Length' : undeclared identifier
2>..\c\src\epoc_win32.c(172) : warning C4047: '=' : 'int' differs in levels of indirection from 'PSP_DEVICE_INTERFACE_DETAIL_DATA'
2>..\c\src\epoc_win32.c(176) : error C2065: 'detailData' : undeclared identifier
2>..\c\src\epoc_win32.c(176) : error C2223: left of '->cbSize' must point to struct/union
2>..\c\src\epoc_win32.c(181) : error C2065: 'hDevInfo' : undeclared identifier
2>..\c\src\epoc_win32.c(181) : warning C4022: 'SetupDiGetDeviceInterfaceDetailA' : pointer mismatch for actual parameter 1
2>..\c\src\epoc_win32.c(183) : error C2065: 'detailData' : undeclared identifier
2>..\c\src\epoc_win32.c(183) : warning C4047: 'function' : 'PSP_DEVICE_INTERFACE_DETAIL_DATA_A' differs in levels of indirection from 'int'
2>..\c\src\epoc_win32.c(183) : warning C4024: 'SetupDiGetDeviceInterfaceDetailA' : different types for formal and actual parameter 3
2>..\c\src\epoc_win32.c(184) : error C2065: 'Length' : undeclared identifier
2>..\c\src\epoc_win32.c(185) : fatal error C1903: unable to recover from previous error(s); stopping compilation
2>Generating Code...
2>Build log was saved at "file://c:\AsimRaza\Softwares\EEG\EMOKIT_EmotivReverseEng\qdot-emokit-e72a187\qdot-emokit-e72a187\Bin\epoc.dir\Debug\BuildLog.htm"
2>epoc - 73 error(s), 13 warning(s)
========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========