preble / pypinproc

Python module wrapping libpinproc, API for the P-ROC pinball controller board.

Home Page:http://pyprocgame.pindev.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Errors building on Windows 8

orgicus opened this issue · comments

I've tried to compile on Windows and updated the include path to libpinpro:

module1 = Extension("pinproc",
                    include_dirs = ['C:\\Users\\HM\\Downloads\\libpinproc-2.0\\include'],
                    # include_dirs = ['../libpinproc/include'],
                    libraries = ['usb', 'ftdi1', 'pinproc'],
                    library_dirs = ['/usr/local/lib', '../libpinproc/bin'],
                    extra_compile_args = extra_compile_args,
                    extra_link_args = extra_link_args,
                    sources = ['pypinproc.cpp', 'dmdutil.cpp', 'dmd.c'])

and I've got this output:

running install
running build
running build_ext
building 'pinproc' extension
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IC:\Users\HM\Downloads\libpinproc-2.0\include -IC:\Python27\include -IC:\Python27\PC /Tppypinproc.cpp /Fobuild\temp.win32-2.7\Release\pypinproc.obj -O0 -g
pypinproc.cpp
pypinproc.cpp(424) : warning C4244: '=' : conversion from 'long' to 'uint16_t', possible loss of data
pypinproc.cpp(425) : warning C4244: '=' : conversion from 'long' to 'uint8_t', possible loss of data
pypinproc.cpp(430) : warning C4244: '=' : conversion from 'long' to 'uint8_t', possible loss of data
pypinproc.cpp(431) : warning C4244: '=' : conversion from 'long' to 'uint8_t', possible loss of data
pypinproc.cpp(452) : warning C4244: '=' : conversion from 'long' to 'uint16_t', possible loss of data
pypinproc.cpp(453) : warning C4244: '=' : conversion from 'long' to 'uint8_t', possible loss of data
pypinproc.cpp(454) : warning C4244: '=' : conversion from 'long' to 'uint8_t', possible loss of data
pypinproc.cpp(455) : warning C4244: '=' : conversion from 'long' to 'uint8_t', possible loss of data
pypinproc.cpp(456) : warning C4244: '=' : conversion from 'long' to 'uint8_t', possible loss of data
pypinproc.cpp(457) : warning C4244: '=' : conversion from 'long' to 'uint8_t', possible loss of data
pypinproc.cpp(826) : warning C4244: '=' : conversion from 'long' to 'uint16_t', possible loss of data
pypinproc.cpp(863) : warning C4244: '=' : conversion from 'long' to 'unsigned char', possible loss of data
pypinproc.cpp(1115) : warning C4244: 'argument' : conversion from '__int64' to 'uint32_t', possible loss of data
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IC:\Users\HM\Downloads\libpinproc-2.0\include -IC:\Python27\include -IC:\Python27\PC /Tpdmdutil.cpp /Fobuild\temp.win32-2.7\Release\dmdutil.obj -O0 -g
dmdutil.cpp
dmdutil.cpp(92) : warning C4018: '<' : signed/unsigned mismatch
dmdutil.cpp(110) : warning C4018: '>=' : signed/unsigned mismatch
dmdutil.cpp(127) : warning C4018: '>=' : signed/unsigned mismatch
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IC:\Users\HM\Downloads\libpinproc-2.0\include -IC:\Python27\include -IC:\Python27\PC /Tcdmd.c /Fobuild\temp.win32-2.7\Release\dmd.obj -O0 -g
dmd.c
c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(71) : error C2054: expected '(' to follow 'inline'
c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(71) : error C2085: 'DMDPointMake' : not in formal parameter list
c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(71) : error C2143: syntax error : missing ';' before '{'
c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(72) : error C2054: expected '(' to follow 'inline'
c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(72) : error C2085: 'DMDSizeMake' : not in formal parameter list
c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(72) : error C2143: syntax error : missing ';' before '{'
c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(74) : error C2054: expected '(' to follow 'inline'
c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(74) : error C2085: 'DMDRectMake' : not in formal parameter list
c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(74) : error C2143: syntax error : missing ';' before '{'
c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(75) : error C2054: expected '(' to follow 'inline'
c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(75) : error C2085: 'DMDRectGetMinX' : not in formal parameter list
c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(75) : error C2143: syntax error : missing ';' before '{'
c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(76) : error C2054: expected '(' to follow 'inline'
c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(76) : error C2085: 'DMDRectGetMinY' : not in formal parameter list
c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(76) : error C2143: syntax error : missing ';' before '{'
c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(77) : error C2054: expected '(' to follow 'inline'
c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(77) : error C2085: 'DMDRectGetMaxX' : not in formal parameter list
c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(77) : error C2143: syntax error : missing ';' before '{'
c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(78) : error C2054: expected '(' to follow 'inline'
c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(78) : error C2085: 'DMDRectGetMaxY' : not in formal parameter list
c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(78) : error C2143: syntax error : missing ';' before '{'
c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(104) : error C2054: expected '(' to follow 'inline'
c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(104) : error C2085: 'DMDFrameGetDotPointer' : not in formal parameter list
c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(104) : error C2143: syntax error : missing ';' before '{'
c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(105) : error C2054: expected '(' to follow 'inline'
c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(105) : error C2085: 'DMDFrameGetDot' : not in formal parameter list
c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(105) : error C2143: syntax error : missing ';' before '{'
c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(106) : error C2054: expected '(' to follow 'inline'
c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(106) : error C2085: 'DMDFrameSetDot' : not in formal parameter list
c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(106) : error C2143: syntax error : missing ';' before '{'
dmd.c(46) : error C2275: 'DMDFrame' : illegal use of this type as an expression
        c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(90) : see declaration of 'DMDFrame'
dmd.c(46) : error C2065: 'frame' : undeclared identifier
dmd.c(47) : error C2065: 'frame' : undeclared identifier
dmd.c(47) : error C2223: left of '->size' must point to struct/union
dmd.c(48) : error C2065: 'frame' : undeclared identifier
dmd.c(48) : error C2223: left of '->buffer' must point to struct/union
dmd.c(50) : error C2065: 'frame' : undeclared identifier
dmd.c(50) : warning C4047: 'return' : 'DMDFrame *' differs in levels of indirection from 'int'
dmd.c(70) : warning C4013: 'DMDRectMake' undefined; assuming extern returning int
dmd.c(70) : error C2440: 'return' : cannot convert from 'int' to 'DMDRect'
dmd.c(87) : error C2275: 'DMDDimension' : illegal use of this type as an expression
        c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(56) : see declaration of 'DMDDimension'
dmd.c(87) : error C2146: syntax error : missing ';' before identifier 'maxX'
dmd.c(87) : error C2065: 'maxX' : undeclared identifier
dmd.c(87) : warning C4013: 'DMDRectGetMaxX' undefined; assuming extern returning int
dmd.c(88) : error C2275: 'DMDDimension' : illegal use of this type as an expression
        c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(56) : see declaration of 'DMDDimension'
dmd.c(88) : error C2146: syntax error : missing ';' before identifier 'maxY'
dmd.c(88) : error C2065: 'maxY' : undeclared identifier
dmd.c(88) : warning C4013: 'DMDRectGetMaxY' undefined; assuming extern returning int
dmd.c(90) : error C2275: 'DMDDimension' : illegal use of this type as an expression
        c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(56) : see declaration of 'DMDDimension'
dmd.c(90) : error C2146: syntax error : missing ';' before identifier 'x'
dmd.c(90) : error C2065: 'x' : undeclared identifier
dmd.c(90) : error C2065: 'y' : undeclared identifier
dmd.c(93) : error C2065: 'x' : undeclared identifier
dmd.c(93) : warning C4013: 'DMDRectGetMinX' undefined; assuming extern returning int
dmd.c(93) : error C2065: 'maxX' : undeclared identifier
dmd.c(94) : error C2065: 'y' : undeclared identifier
dmd.c(94) : warning C4013: 'DMDRectGetMinY' undefined; assuming extern returning int
dmd.c(94) : error C2065: 'maxY' : undeclared identifier
dmd.c(95) : error C2065: 'y' : undeclared identifier
dmd.c(95) : error C2065: 'x' : undeclared identifier
dmd.c(101) : error C2275: 'DMDRect' : illegal use of this type as an expression
        c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(69) : see declaration of 'DMDRect'
dmd.c(101) : error C2146: syntax error : missing ';' before identifier 'dstRect'
dmd.c(101) : error C2065: 'dstRect' : undeclared identifier
dmd.c(101) : error C2440: 'function' : cannot convert from 'int' to 'DMDRect'
dmd.c(101) : warning C4024: 'DMDRectIntersection' : different types for formal and actual parameter 2
dmd.c(101) : error C2440: '=' : cannot convert from 'DMDRect' to 'int'
dmd.c(116) : error C2275: 'DMDDimension' : illegal use of this type as an expression
        c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(56) : see declaration of 'DMDDimension'
dmd.c(116) : error C2146: syntax error : missing ';' before identifier 'width'
dmd.c(116) : error C2065: 'width' : undeclared identifier
dmd.c(116) : error C2065: 'dstRect' : undeclared identifier
dmd.c(116) : error C2224: left of '.size' must have struct/union type
dmd.c(117) : error C2275: 'DMDDimension' : illegal use of this type as an expression
        c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(56) : see declaration of 'DMDDimension'
dmd.c(117) : error C2146: syntax error : missing ';' before identifier 'height'
dmd.c(117) : error C2065: 'height' : undeclared identifier
dmd.c(117) : error C2065: 'dstRect' : undeclared identifier
dmd.c(117) : error C2224: left of '.size' must have struct/union type
dmd.c(118) : error C2275: 'DMDDimension' : illegal use of this type as an expression
        c:\users\hm\downloads\pypinproc-master\pypinproc\dmd.h(56) : see declaration of 'DMDDimension'
dmd.c(118) : error C2146: syntax error : missing ';' before identifier 'x'
dmd.c(118) : error C2065: 'x' : undeclared identifier
dmd.c(118) : error C2065: 'y' : undeclared identifier
dmd.c(122) : error C2065: 'y' : undeclared identifier
dmd.c(122) : error C2065: 'height' : undeclared identifier
dmd.c(124) : warning C4013: 'DMDFrameGetDotPointer' undefined; assuming extern returning int
dmd.c(124) : warning C4013: 'DMDPointMake' undefined; assuming extern returning int
dmd.c(124) : error C2065: 'y' : undeclared identifier
dmd.c(124) : warning C4047: 'initializing' : 'DMDColor *' differs in levels of indirection from 'int'
dmd.c(125) : error C2065: 'dstRect' : undeclared identifier
dmd.c(125) : error C2224: left of '.origin' must have struct/union type
dmd.c(125) : error C2065: 'y' : undeclared identifier
dmd.c(125) : warning C4047: 'initializing' : 'DMDColor *' differs in levels of indirection from 'int'
dmd.c(126) : error C2065: 'width' : undeclared identifier
dmd.c(131) : error C2065: 'y' : undeclared identifier
dmd.c(131) : error C2065: 'height' : undeclared identifier
dmd.c(133) : error C2065: 'y' : undeclared identifier
dmd.c(133) : warning C4047: 'initializing' : 'DMDColor *' differs in levels of indirection from 'int'
dmd.c(134) : error C2065: 'dstRect' : undeclared identifier
dmd.c(134) : error C2224: left of '.origin' must have struct/union type
dmd.c(134) : error C2065: 'y' : undeclared identifier
dmd.c(134) : warning C4047: 'initializing' : 'DMDColor *' differs in levels of indirection from 'int'
dmd.c(135) : error C2065: 'x' : undeclared identifier
dmd.c(135) : error C2065: 'width' : undeclared identifier
dmd.c(137) : error C2065: 'x' : undeclared identifier
dmd.c(143) : error C2065: 'y' : undeclared identifier
dmd.c(143) : error C2065: 'height' : undeclared identifier
dmd.c(145) : error C2065: 'y' : undeclared identifier
dmd.c(145) : warning C4047: 'initializing' : 'DMDColor *' differs in levels of indirection from 'int'
dmd.c(146) : error C2065: 'dstRect' : undeclared identifier
dmd.c(146) : error C2224: left of '.origin' must have struct/union type
dmd.c(146) : error C2065: 'y' : undeclared identifier
dmd.c(146) : warning C4047: 'initializing' : 'DMDColor *' differs in levels of indirection from 'int'
dmd.c(147) : error C2065: 'x' : undeclared identifier
dmd.c(147) : error C2065: 'width' : undeclared identifier
dmd.c(149) : error C2065: 'x' : undeclared identifier
dmd.c(155) : error C2065: 'y' : undeclared identifier
dmd.c(155) : error C2065: 'height' : undeclared identifier
dmd.c(157) : error C2065: 'y' : undeclared identifier
dmd.c(157) : fatal error C1003: error count exceeds 100; stopping compilation

How can I move on compiling this library ?

Thank you