GithubHelp home page GithubHelp logo

preble / pypinproc Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 9.0 118 KB

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

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

C 21.18% C++ 76.97% Python 1.85%

pypinproc's People

Contributors

gstellenberg avatar koenheltzel avatar preble avatar toomanybrians avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pypinproc's Issues

Errors building on OSX

Here is the output I get on osx 10.6.8:

sudo python setup.py install
running install
running build
running build_ext
building 'pinproc' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -arch x86_64 -pipe -I/usr/local/include/p-roc -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c pypinproc.cpp -o build/temp.macosx-10.6-universal-2.6/pypinproc.o -O0 -g -Wno-write-strings
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
llvm-gcc-4.2: error trying to exec '/usr/bin/../llvm-gcc-4.2/bin/powerpc-apple-darwin10-llvm-gcc-4.2': execvp: No such file or directory
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
fatal error: lipo: can't figure out the architecture type of: /var/tmp//ccUDwdZg.out

I have installed libproc 32-bit (i386) so I've updated the path like so:

module1 = Extension("pinproc",
                    # include_dirs = ['../libpinproc/include'],
                    include_dirs = ['/usr/local/include/p-roc'],
                    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'])

How can I carry on compiling/installing pypinproc ?

Thanks

Errors building on Windows 8

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.