LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 01-14-2007, 04:07 AM   #1
mornblade
LQ Newbie
 
Registered: Jan 2007
Posts: 2

Rep: Reputation: 0
USB Missile Launcher in FC5?


I received a Marks&Spencer USB Missile Launcher as a gift for Christmas with the the phrase "I heard that can work in Linux."

I have found software that works in Ubuntu and tried to install it but encountered errors.

Has anyone gotten one of these things to work in FC5 (or any other version of FC)? If so, please tell me how.
 
Old 01-14-2007, 09:26 PM   #2
FnordPerfect
Member
 
Registered: Dec 2006
Location: Germany
Distribution: Kubuntu (Feisty Fawn), Debian (SID)
Posts: 127

Rep: Reputation: 15
A missile launcher, eh? Don't you take this Linux world domination thing a bit too far? ;-)

Anyway, which errors do you get?
As far as I can see this software is written in Python. You may not have all necessary Python modules installed.

Apperently, you need
0. python (>=2.3)
1. libusb (>=0.1.8)
2. pyusb (==0.3.1) python module with patch included below
3. urwid python module
 
Old 01-15-2007, 08:09 AM   #3
mornblade
LQ Newbie
 
Registered: Jan 2007
Posts: 2

Original Poster
Rep: Reputation: 0
I can't seem to get pyusb to install. When I try installing it the get a long readout of errors. Not being much of a command line person and being far from being a coder, I have no idea what I'm looking at. I've not been able to find an RPM of pyusb for Fedora, and besides it appears that a patch to the software is necessary for it to work with the launcher. Here is the readout I get when i try installing as per the instructions from the website of the software coder.


running install
running build
running build_ext
building 'usb' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC -I/usr/include/python2.4 -c pyusb.c -o build/temp.linux-i686-2.4/pyusb.o
In file included from pyusb.c:12:
pyusb.h:4:20: error: Python.h: No such file or directory
pyusb.h:5:26: error: structmember.h: No such file or directory
pyusb.h:6:17: error: usb.h: No such file or directory
In file included from pyusb.c:12:
pyusb.h:46: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
pyusb.h:59: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
pyusb.h:73: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
pyusb.h:87: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
pyusb.h:108: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
pyusb.h:118: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
pyusb.h:130: warning: ‘struct usb_endpoint_descriptor’ declared inside parameter list
pyusb.h:130: warning: its scope is only this definition or declaration, which is probably not what you want
pyusb.h:134: warning: ‘struct usb_endpoint_descriptor’ declared inside parameter list
pyusb.h:139: warning: ‘struct usb_interface_descriptor’ declared inside parameter list
pyusb.h:143: warning: ‘struct usb_interface_descriptor’ declared inside parameter list
pyusb.h:148: warning: ‘struct usb_config_descriptor’ declared inside parameter list
pyusb.h:152: warning: ‘struct usb_config_descriptor’ declared inside parameter list
pyusb.h:154: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pyusb.h:162: warning: ‘struct usb_device’ declared inside parameter list
pyusb.h:166: warning: ‘struct usb_device’ declared inside parameter list
pyusb.h:170: warning: ‘struct usb_bus’ declared inside parameter list
pyusb.h:172: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pyusb.h:178: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pyusb.h:183: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pyusb.h:188: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pyusb.h:193: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pyusb.h:198: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pyusb.h:203: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pyusb.h:208: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pyusb.h:213: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pyusb.h:218: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pyusb.h:223: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pyusb.h:228: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pyusb.h:233: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pyusb.h:242: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pyusb.c:31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pyusb.c:70: error: expected ‘)’ before ‘*’ token
pyusb.c:90: error: expected ‘)’ before ‘*’ token
pyusb.c:125: error: expected ‘)’ before ‘*’ token
pyusb.c:182: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pyusb.c:205: error: expected ‘)’ before ‘*’ token
pyusb.c:223: error: expected ‘)’ before ‘*’ token
pyusb.c:296: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Py_usb_Endpoint_Members’
pyusb.c:332: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Py_usb_Endpoint_Methods’
pyusb.c:336: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Py_usb_Endpoint_Type’
pyusb.c:389: warning: ‘struct usb_endpoint_descriptor’ declared inside parameter list
pyusb.c:390: error: conflicting types for ‘set_Endpoint_fields’
pyusb.h:130: error: previous declaration of ‘set_Endpoint_fields’ was here
pyusb.c: In function ‘set_Endpoint_fields’:
pyusb.c:391: error: ‘Py_usb_Endpoint’ has no member named ‘address’
pyusb.c:391: error: dereferencing pointer to incomplete type
pyusb.c:392: error: ‘Py_usb_Endpoint’ has no member named ‘type’
pyusb.c:392: error: dereferencing pointer to incomplete type
pyusb.c:393: error: ‘Py_usb_Endpoint’ has no member named ‘maxPacketSize’
pyusb.c:393: error: dereferencing pointer to incomplete type
pyusb.c:394: error: ‘Py_usb_Endpoint’ has no member named ‘interval’
pyusb.c:394: error: dereferencing pointer to incomplete type
pyusb.c:395: error: ‘Py_usb_Endpoint’ has no member named ‘refresh’
pyusb.c:395: error: dereferencing pointer to incomplete type
pyusb.c: At top level:
pyusb.c:401: warning: ‘struct usb_endpoint_descriptor’ declared inside parameter list
pyusb.c:402: error: conflicting types for ‘new_Endpoint’
pyusb.h:134: error: previous declaration of ‘new_Endpoint’ was here
pyusb.c: In function ‘new_Endpoint’:
pyusb.c:405: warning: implicit declaration of function ‘PyObject_New’
pyusb.c:405: error: expected expression before ‘Py_usb_Endpoint’
pyusb.c:406: warning: assignment makes pointer from integer without a cast
pyusb.c:409: warning: passing argument 2 of ‘set_Endpoint_fields’ from incompatible pointer type
pyusb.c: At top level:
pyusb.c:414: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Py_usb_Interface_Members’
pyusb.c:458: error: expected ‘)’ before ‘*’ token
pyusb.c:464: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Py_usb_Interface_Methods’
pyusb.c:468: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Py_usb_Interface_Type’
pyusb.c:521: warning: ‘struct usb_interface_descriptor’ declared inside parameter list
pyusb.c:522: error: conflicting types for ‘set_Interface_fields’
pyusb.h:139: error: previous declaration of ‘set_Interface_fields’ was here
pyusb.c: In function ‘set_Interface_fields’:
pyusb.c:525: error: ‘Py_usb_Interface’ has no member named ‘interfaceNumber’
pyusb.c:525: error: dereferencing pointer to incomplete type
pyusb.c:526: error: ‘Py_usb_Interface’ has no member named ‘alternateSetting’
pyusb.c:526: error: dereferencing pointer to incomplete type
pyusb.c:527: error: ‘Py_usb_Interface’ has no member named ‘interfaceClass’
pyusb.c:527: error: dereferencing pointer to incomplete type
pyusb.c:528: error: ‘Py_usb_Interface’ has no member named ‘interfaceSubClass’
pyusb.c:528: error: dereferencing pointer to incomplete type
pyusb.c:529: error: ‘Py_usb_Interface’ has no member named ‘interfaceProtocol’
pyusb.c:529: error: dereferencing pointer to incomplete type
pyusb.c:530: error: ‘Py_usb_Interface’ has no member named ‘iInterface’
pyusb.c:530: error: dereferencing pointer to incomplete type
pyusb.c:532: error: ‘Py_usb_Interface’ has no member named ‘endpoints’
pyusb.c:532: warning: implicit declaration of function ‘PyTuple_New’
pyusb.c:532: error: dereferencing pointer to incomplete type
pyusb.c:534: error: ‘Py_usb_Interface’ has no member named ‘endpoints’
pyusb.c:538: error: dereferencing pointer to incomplete type
pyusb.c:539: warning: implicit declaration of function ‘PyTuple_SET_ITEM’
pyusb.c:539: error: ‘Py_usb_Interface’ has no member named ‘endpoints’
pyusb.c:540: error: ‘PyObject’ undeclared (first use in this function)
pyusb.c:540: error: (Each undeclared identifier is reported only once
pyusb.c:540: error: for each function it appears in.)
pyusb.c:540: error: expected expression before ‘)’ token
pyusb.c: At top level:
pyusb.c:545: warning: ‘struct usb_interface_descriptor’ declared inside parameter list
pyusb.c:546: error: conflicting types for ‘new_Interface’
pyusb.h:143: error: previous declaration of ‘new_Interface’ was here
pyusb.c: In function ‘new_Interface’:
pyusb.c:549: warning: implicit declaration of function ‘PyObject_NEW’
pyusb.c:549: error: expected expression before ‘Py_usb_Interface’
pyusb.c:549: warning: assignment makes pointer from integer without a cast
pyusb.c:552: warning: passing argument 2 of ‘set_Interface_fields’ from incompatible pointer type
pyusb.c:554: warning: implicit declaration of function ‘PyErr_Occurred’
pyusb.c:555: warning: implicit declaration of function ‘Py_XDECREF’
pyusb.c:555: error: ‘PyObject’ undeclared (first use in this function)
pyusb.c:555: error: expected expression before ‘)’ token
pyusb.c: At top level:
pyusb.c:563: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Py_usb_Configuration_Members’
pyusb.c:615: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Py_usb_Configuration_Methods’
pyusb.c:620: error: expected ‘)’ before ‘*’ token
pyusb.c:626: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Py_usb_Configuration_Type’
pyusb.c:679: warning: ‘struct usb_config_descriptor’ declared inside parameter list
pyusb.c:680: error: conflicting types for ‘set_Configuration_fields’
pyusb.h:148: error: previous declaration of ‘set_Configuration_fields’ was here
pyusb.c: In function ‘set_Configuration_fields’:
pyusb.c:682: error: ‘PyObject’ undeclared (first use in this function)
pyusb.c:682: error: ‘t1’ undeclared (first use in this function)
pyusb.c:684: error: ‘Py_usb_Configuration’ has no member named ‘totalLength’
pyusb.c:684: error: dereferencing pointer to incomplete type
pyusb.c:685: error: ‘Py_usb_Configuration’ has no member named ‘value’
pyusb.c:685: error: dereferencing pointer to incomplete type
pyusb.c:686: error: ‘Py_usb_Configuration’ has no member named ‘iConfiguration’
pyusb.c:686: error: dereferencing pointer to incomplete type
pyusb.c:687: error: ‘Py_usb_Configuration’ has no member named ‘selfPowered’
pyusb.c:687: error: dereferencing pointer to incomplete type
pyusb.c:688: error: ‘Py_usb_Configuration’ has no member named ‘remoteWakeup’
pyusb.c:688: error: dereferencing pointer to incomplete type
pyusb.c:689: error: ‘Py_usb_Configuration’ has no member named ‘maxPower’
pyusb.c:689: error: dereferencing pointer to incomplete type
pyusb.c:691: error: ‘Py_usb_Configuration’ has no member named ‘interfaces’
pyusb.c:691: error: dereferencing pointer to incomplete type
pyusb.c:693: error: ‘Py_usb_Configuration’ has no member named ‘interfaces’
pyusb.c:695: error: dereferencing pointer to incomplete type
pyusb.c:696: error: dereferencing pointer to incomplete type
pyusb.c:703: error: expected expression before ‘)’ token
pyusb.c:705: error: ‘Py_usb_Configuration’ has no member named ‘interfaces’
pyusb.c: At top level:
pyusb.c:711: warning: ‘struct usb_config_descriptor’ declared inside parameter list
pyusb.c:712: error: conflicting types for ‘new_Configuration’
pyusb.h:152: error: previous declaration of ‘new_Configuration’ was here
pyusb.c: In function ‘new_Configuration’:
pyusb.c:715: error: expected expression before ‘Py_usb_Configuration’
pyusb.c:715: warning: assignment makes pointer from integer without a cast
pyusb.c:718: warning: passing argument 2 of ‘set_Configuration_fields’ from incompatible pointer type
pyusb.c:721: warning: implicit declaration of function ‘Py_DECREF’
pyusb.c:721: error: ‘PyObject’ undeclared (first use in this function)
pyusb.c:721: error: expected expression before ‘)’ token
pyusb.c: At top level:
pyusb.c:729: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Py_usb_Device_Members’
pyusb.c:818: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pyusb.c:826: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Py_usb_Device_Methods’
pyusb.c:838: error: expected ‘)’ before ‘*’ token
pyusb.c:844: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Py_usb_Device_Type’
pyusb.c:897: warning: ‘struct usb_device’ declared inside parameter list
pyusb.c:898: error: conflicting types for ‘set_Device_fields’
pyusb.h:162: error: previous declaration of ‘set_Device_fields’ was here
pyusb.c: In function ‘set_Device_fields’:
pyusb.c:899: error: dereferencing pointer to incomplete type
pyusb.c:902: error: ‘Py_usb_Device’ has no member named ‘usbVersion’
pyusb.c:902: error: dereferencing pointer to incomplete type
pyusb.c:903: error: ‘Py_usb_Device’ has no member named ‘usbVersion’
pyusb.c:903: error: dereferencing pointer to incomplete type
pyusb.c:904: error: ‘Py_usb_Device’ has no member named ‘usbVersion’
pyusb.c:905: error: ‘Py_usb_Device’ has no member named ‘usbVersion’
pyusb.c:905: error: dereferencing pointer to incomplete type
pyusb.c:906: error: ‘Py_usb_Device’ has no member named ‘usbVersion’
pyusb.c:906: error: dereferencing pointer to incomplete type
pyusb.c:907: error: ‘Py_usb_Device’ has no member named ‘usbVersion’
pyusb.c:909: error: ‘Py_usb_Device’ has no member named ‘deviceVersion’
pyusb.c:909: error: dereferencing pointer to incomplete type
pyusb.c:910: error: ‘Py_usb_Device’ has no member named ‘deviceVersion’
pyusb.c:910: error: dereferencing pointer to incomplete type
pyusb.c:911: error: ‘Py_usb_Device’ has no member named ‘deviceVersion’
pyusb.c:912: error: ‘Py_usb_Device’ has no member named ‘deviceVersion’
pyusb.c:912: error: dereferencing pointer to incomplete type
pyusb.c:913: error: ‘Py_usb_Device’ has no member named ‘deviceVersion’
pyusb.c:913: error: dereferencing pointer to incomplete type
pyusb.c:914: error: ‘Py_usb_Device’ has no member named ‘deviceVersion’
pyusb.c:916: error: ‘Py_usb_Device’ has no member named ‘deviceClass’
pyusb.c:916: error: dereferencing pointer to incomplete type
pyusb.c:917: error: ‘Py_usb_Device’ has no member named ‘deviceSubClass’
pyusb.c:917: error: dereferencing pointer to incomplete type
pyusb.c:918: error: ‘Py_usb_Device’ has no member named ‘deviceProtocol’
pyusb.c:918: error: dereferencing pointer to incomplete type
pyusb.c:919: error: ‘Py_usb_Device’ has no member named ‘maxPacketSize’
pyusb.c:919: error: dereferencing pointer to incomplete type
pyusb.c:920: error: ‘Py_usb_Device’ has no member named ‘idVendor’
pyusb.c:920: error: dereferencing pointer to incomplete type
pyusb.c:921: error: ‘Py_usb_Device’ has no member named ‘idProduct’
pyusb.c:921: error: dereferencing pointer to incomplete type
pyusb.c:922: error: ‘Py_usb_Device’ has no member named ‘iManufacturer’
pyusb.c:922: error: dereferencing pointer to incomplete type
pyusb.c:923: error: ‘Py_usb_Device’ has no member named ‘iProduct’
pyusb.c:923: error: dereferencing pointer to incomplete type
pyusb.c:924: error: ‘Py_usb_Device’ has no member named ‘iSerialNumber’
pyusb.c:924: error: dereferencing pointer to incomplete type
pyusb.c:925: warning: implicit declaration of function ‘strcpy’
pyusb.c:925: warning: incompatible implicit declaration of built-in function ‘strcpy’
pyusb.c:925: error: ‘Py_usb_Device’ has no member named ‘filename’
pyusb.c:925: error: dereferencing pointer to incomplete type
pyusb.c:926: error: ‘Py_usb_Device’ has no member named ‘dev’
pyusb.c:928: error: ‘Py_usb_Device’ has no member named ‘configurations’
pyusb.c:928: error: dereferencing pointer to incomplete type
pyusb.c:930: error: ‘Py_usb_Device’ has no member named ‘configurations’
pyusb.c:932: error: dereferencing pointer to incomplete type
pyusb.c:933: error: ‘Py_usb_Device’ has no member named ‘configurations’
pyusb.c:933: error: ‘PyObject’ undeclared (first use in this function)
pyusb.c:933: error: expected expression before ‘)’ token
pyusb.c: At top level:
pyusb.c:938: warning: ‘struct usb_device’ declared inside parameter list
pyusb.c:939: error: conflicting types for ‘new_Device’
pyusb.h:166: error: previous declaration of ‘new_Device’ was here
pyusb.c: In function ‘new_Device’:
pyusb.c:942: error: expected expression before ‘Py_usb_Device’
pyusb.c:942: warning: assignment makes pointer from integer without a cast
pyusb.c:945: warning: passing argument 2 of ‘set_Device_fields’ from incompatible pointer type
pyusb.c:948: error: ‘PyObject’ undeclared (first use in this function)
pyusb.c:948: error: expected expression before ‘)’ token
pyusb.c: At top level:
pyusb.c:956: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Py_usb_Bus_Members’
pyusb.c:978: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Py_usb_Bus_Methods’
pyusb.c:983: error: expected ‘)’ before ‘*’ token
pyusb.c:989: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Py_usb_Bus_Type’
pyusb.c:1041: warning: ‘struct usb_bus’ declared inside parameter list
pyusb.c:1042: error: conflicting types for ‘new_Bus’
pyusb.h:170: error: previous declaration of ‘new_Bus’ was here
pyusb.c: In function ‘new_Bus’:
pyusb.c:1047: error: expected expression before ‘Py_usb_Bus’
pyusb.c:1047: warning: assignment makes pointer from integer without a cast
pyusb.c:1050: error: ‘Py_usb_Bus’ has no member named ‘location’
pyusb.c:1050: error: dereferencing pointer to incomplete type
pyusb.c:1051: warning: incompatible implicit declaration of built-in function ‘strcpy’
pyusb.c:1051: error: ‘Py_usb_Bus’ has no member named ‘dirname’
pyusb.c:1051: error: dereferencing pointer to incomplete type
pyusb.c:1052: error: dereferencing pointer to incomplete type
pyusb.c:1052: warning: left-hand operand of comma expression has no effect
pyusb.c:1052: warning: value computed is not used
pyusb.c:1052: error: dereferencing pointer to incomplete type
pyusb.c:1053: error: ‘Py_usb_Bus’ has no member named ‘devices’
pyusb.c:1055: error: ‘Py_usb_Bus’ has no member named ‘devices’
pyusb.c:1056: error: ‘PyObject’ undeclared (first use in this function)
pyusb.c:1056: error: expected expression before ‘)’ token
pyusb.c:1060: error: dereferencing pointer to incomplete type
pyusb.c:1060: warning: left-hand operand of comma expression has no effect
pyusb.c:1060: warning: value computed is not used
pyusb.c:1060: error: dereferencing pointer to incomplete type
pyusb.c:1060: warning: left-hand operand of comma expression has no effect
pyusb.c:1060: warning: value computed is not used
pyusb.c:1061: error: ‘Py_usb_Bus’ has no member named ‘devices’
pyusb.c:1061: error: expected expression before ‘)’ token
pyusb.c:1064: error: expected expression before ‘)’ token
pyusb.c: At top level:
pyusb.c:1072: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Py_usb_DeviceHandle_Members’
pyusb.c:1079: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pyusb.c:1182: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pyusb.c:1215: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pyusb.c:1251: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pyusb.c:1273: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pyusb.c:1307: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pyusb.c:1340: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pyusb.c:1391: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pyusb.c:1441: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pyusb.c:1492: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pyusb.c:1542: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pyusb.c:1570: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pyusb.c:1583: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pyusb.c:1614: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pyusb.c:1671: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pyusb.c:1727: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Py_usb_DeviceHandle_Methods’
pyusb.c:1881: error: expected ‘)’ before ‘*’ token
pyusb.c:1897: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Py_usb_DeviceHandle_Type’
pyusb.c: In function ‘new_DeviceHandle’:
pyusb.c:1954: error: expected expression before ‘Py_usb_DeviceHandle’
pyusb.c:1954: warning: assignment makes pointer from integer without a cast
pyusb.c:1957: warning: implicit declaration of function ‘usb_open’
pyusb.c:1957: error: ‘Py_usb_Device’ has no member named ‘dev’
pyusb.c:1957: warning: assignment makes pointer from integer without a cast
pyusb.c:1960: warning: implicit declaration of function ‘PyErr_SetString’
pyusb.c:1960: error: ‘PyExc_USBError’ undeclared (first use in this function)
pyusb.c:1960: warning: implicit declaration of function ‘usb_strerror’
pyusb.c:1961: error: ‘PyObject’ undeclared (first use in this function)
pyusb.c:1961: error: expected expression before ‘)’ token
pyusb.c:1965: error: ‘Py_usb_DeviceHandle’ has no member named ‘deviceHandle’
pyusb.c:1966: error: ‘Py_usb_DeviceHandle’ has no member named ‘interfaceClaimed’
pyusb.c: At top level:
pyusb.c:1976: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pyusb.c:2017: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘usb_Methods’
pyusb.c: In function ‘initusb’:
pyusb.c:2031: error: ‘PyObject’ undeclared (first use in this function)
pyusb.c:2031: error: ‘module’ undeclared (first use in this function)
pyusb.c:2033: error: ‘PyExc_USBError’ undeclared (first use in this function)
pyusb.c:2033: warning: implicit declaration of function ‘PyErr_NewException’
pyusb.c:2033: error: ‘PyExc_IOError’ undeclared (first use in this function)
pyusb.c:2036: warning: implicit declaration of function ‘Py_InitModule3’
pyusb.c:2036: error: ‘usb_Methods’ undeclared (first use in this function)
pyusb.c:2039: warning: implicit declaration of function ‘PyType_Ready’
pyusb.c:2039: error: ‘Py_usb_Endpoint_Type’ undeclared (first use in this function)
pyusb.c:2040: warning: implicit declaration of function ‘Py_INCREF’
pyusb.c:2041: warning: implicit declaration of function ‘PyModule_AddObject’
pyusb.c:2041: error: expected expression before ‘)’ token
pyusb.c:2043: error: ‘Py_usb_Interface_Type’ undeclared (first use in this function)
pyusb.c:2045: error: expected expression before ‘)’ token
pyusb.c:2047: error: ‘Py_usb_Configuration_Type’ undeclared (first use in this function)
pyusb.c:2049: error: expected expression before ‘)’ token
pyusb.c:2051: error: ‘Py_usb_Device_Type’ undeclared (first use in this function)
pyusb.c:2053: error: expected expression before ‘)’ token
pyusb.c:2055: error: ‘Py_usb_Bus_Type’ undeclared (first use in this function)
pyusb.c:2057: error: expected expression before ‘)’ token
pyusb.c:2059: error: ‘Py_usb_DeviceHandle_Type’ undeclared (first use in this function)
pyusb.c:2061: error: expected expression before ‘)’ token
pyusb.c:2063: warning: implicit declaration of function ‘installModuleConstants’
pyusb.c:2065: warning: implicit declaration of function ‘usb_init’
error: command 'gcc' failed with exit status 1




Any help will be greatly appreciated. Thank you.
 
Old 01-27-2007, 01:50 PM   #4
nipperchaun
LQ Newbie
 
Registered: Jan 2007
Posts: 1

Rep: Reputation: 0
had the same problem; which looks like missing libraries.

I am using Debian however and just installed
apt-get install python-all-dev
which installed the needed libraries and worked for me..

Last edited by nipperchaun; 01-27-2007 at 01:52 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to mount the USB memory in FC5 Gins Linux - General 4 12-24-2006 04:34 PM
USB webcam for FC5 ear9mrn Linux - Hardware 2 08-04-2006 12:49 AM
FC5 will not USB drives Freehand Fedora 3 05-24-2006 01:50 PM
USB 2.0 CardBus FC5 FunkyRes Fedora 3 04-29-2006 12:56 PM
Creating a launcher (could be java launcher) The_Messiah Linux - Newbie 12 04-06-2005 02:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 04:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration