Find the answer to your Linux question:
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 27
HI! I'm an italian student that's making a project for an exam of the university. I'm trying to install a usb driver to talk with an instrument that my prof. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2010
    Posts
    23

    [SOLVED] USB driver installation


    HI!
    I'm an italian student that's making a project for an exam of the university.
    I'm trying to install a usb driver to talk with an instrument that my prof. give to me.
    also the drivers were given by my prof.
    the driver now I'm trying to install is called:
    libhid-0.2.12.orig
    I've opened it and I have run the programm called configure.
    I had the same problem of Gabyx (in a topic in the section linux Programming & Scripting) but I think I've resolved it in the same way suggested by Lakerdonald....

    now after I run configure appears:

    Code:
    configure: Using db2man stylesheet: /usr/share/kde4/apps/ksgmltools2/docbook/xsl/html/docbook.xsl
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating src/Makefile
    config.status: creating hidparser/Makefile
    config.status: creating swig/Makefile
    config.status: creating test/Makefile
    config.status: creating doc/doxygen.rc
    config.status: creating doc/Makefile
    config.status: creating doc/man/Makefile
    config.status: creating doc/www/Makefile
    config.status: creating pkgconfig/libhid.pc
    config.status: creating config.h
    config.status: config.h is unchanged
    config.status: executing depfiles commands
    
    .------------------------------------------------------------------------------
    | Configuration to be used:
    |
    |   CPP     : gcc -E
    |   CPPFLAGS: -I../include -I../hidparser -DNDEBUG
    |   CC      : gcc
    |   CFLAGS  : -O2 -Wall -W -Werror
    |   CXX     : g++
    |   CXXFLAGS: -O2 -Wall -W -Werror
    |   LD      : /usr/bin/ld
    |   LDFLAGS : 
    `------------------------------------------------------------------------------
    (I've cutted some pieces before it but I think they were not important.)


    now, following the installation instructions, I've typed make

    Code:
    In file included from linux.c:6:
    ../include/hid.h:5:17: error: usb.h: No such file or directory
    cc1: warnings being treated as errors
    In file included from linux.c:9:
    ../include/debug.h:23: error: 'struct usb_bus' declared inside parameter list
    ../include/debug.h:23: error: its scope is only this definition or declaration, which is probably not what you want
    ../include/debug.h:25: error: 'struct usb_device_descriptor' declared inside parameter list
    ../include/debug.h:26: error: 'struct usb_config_descriptor' declared inside parameter list
    ../include/debug.h:27: error: expected declaration specifiers or '...' before 'usb_dev_handle'
    linux.c: In function 'hid_os_force_claim':
    linux.c:45: error: implicit declaration of function 'usb_claim_interface'
    linux.c:52: error: implicit declaration of function 'usb_detach_kernel_driver_np'
    make[2]: *** [linux.lo] Errore 1
    make[2]: uscita dalla directory «/home/gabriele/work/mcc/libhid-0.2.12.orig/src»
    make[1]: *** [all-recursive] Errore 1
    make[1]: uscita dalla directory «/home/gabriele/work/mcc/libhid-0.2.12.orig»
    make: *** [all] Errore 2
    I've reported where it start to have errors...
    Now I'm trying to understand where is the problem...can you help me?

  2. #2
    Linux Engineer Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    878
    usb.h: No such file or directory

    usb.h comes with usblib dev package, it should be also in kernel headers. And kernel sources.

  3. #3
    Just Joined!
    Join Date
    Aug 2010
    Posts
    23
    my prof gave to me also a package called
    libusb_0.1.12.orig
    do you think I might install it before the one I'm trying to install?

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Engineer Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    878
    I think it may be just what is needed.

  6. #5
    Just Joined!
    Join Date
    Aug 2010
    Posts
    23
    ok.
    I've installed libusb_0.1.12.orig and now typing make it find usb.h!
    when I installed it I've also installed Doxygen and SWIG (this last one was searched by the the configure file of libhid that I've run before type make but it didn't seem necessary)
    now when i run the make of libhid it's a SWIG file that creates problem:
    Code:
    gabriele@Paolo:~/work/mcc/libhid-0.2.12.orig$ make
    make  all-recursive
    make[1]: ingresso nella directory «/home/gabriele/work/mcc/libhid-0.2.12.orig»
    Making all in hidparser
    make[2]: ingresso nella directory «/home/gabriele/work/mcc/libhid-0.2.12.orig/hidparser»
    make[2]: Non c'č da fare nulla per «all»
    make[2]: uscita dalla directory «/home/gabriele/work/mcc/libhid-0.2.12.orig/hidparser»
    Making all in src
    make[2]: ingresso nella directory «/home/gabriele/work/mcc/libhid-0.2.12.orig/src»
    make[2]: uscita dalla directory «/home/gabriele/work/mcc/libhid-0.2.12.orig/src»
    Making all in swig
    make[2]: ingresso nella directory «/home/gabriele/work/mcc/libhid-0.2.12.orig/swig»
    if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/include/python2.3/ -I../include -DHID_INTERNAL -DSWIG -I../include -I../hidparser -DNDEBUG -fPIC -fno-strict-aliasing -I/usr/local/include -O2 -Wall -W  -MT hid_wrap.lo -MD -MP -MF ".deps/hid_wrap.Tpo" -c -o hid_wrap.lo hid_wrap.c; \
            then mv -f ".deps/hid_wrap.Tpo" ".deps/hid_wrap.Plo"; else rm -f ".deps/hid_wrap.Tpo"; exit 1; fi
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/python2.3/ -I../include -DHID_INTERNAL -DSWIG -I../include -I../hidparser -DNDEBUG -fPIC -fno-strict-aliasing -I/usr/local/include -O2 -Wall -W -MT hid_wrap.lo -MD -MP -MF .deps/hid_wrap.Tpo -c hid_wrap.c  -fPIC -DPIC -o .libs/hid_wrap.o
    hid_wrap.c:126:20: error: Python.h: No such file or directory
    hid_wrap.c:757: error: expected ')' before '*' token
    hid_wrap.c:781: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:807: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:861: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:882: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c: In function 'SWIG_Python_AddErrorMsg':
    hid_wrap.c:929: error: 'PyObject' undeclared (first use in this function)
    hid_wrap.c:929: error: (Each undeclared identifier is reported only once
    hid_wrap.c:929: error: for each function it appears in.)
    hid_wrap.c:929: error: 'type' undeclared (first use in this function)
    hid_wrap.c:930: error: 'value' undeclared (first use in this function)
    hid_wrap.c:931: error: 'traceback' undeclared (first use in this function)
    hid_wrap.c:933: warning: implicit declaration of function 'PyErr_Occurred'
    hid_wrap.c:933: warning: implicit declaration of function 'PyErr_Fetch'
    hid_wrap.c:936: error: 'old_str' undeclared (first use in this function)
    hid_wrap.c:936: warning: implicit declaration of function 'PyObject_Str'
    hid_wrap.c:937: warning: implicit declaration of function 'PyErr_Clear'
    hid_wrap.c:938: warning: implicit declaration of function 'Py_XINCREF'
    hid_wrap.c:940: warning: implicit declaration of function 'PyErr_Format'
    hid_wrap.c:940: warning: implicit declaration of function 'SWIG_Python_str_AsChar'
    hid_wrap.c:942: warning: implicit declaration of function 'Py_DECREF'
    hid_wrap.c:945: warning: implicit declaration of function 'PyErr_SetString'
    hid_wrap.c:945: error: 'PyExc_RuntimeError' undeclared (first use in this function)
    hid_wrap.c: At top level:
    hid_wrap.c:1050: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:1125: error: expected ')' before '*' token
    hid_wrap.c:1133: error: expected ')' before '*' token
    hid_wrap.c:1144: error: expected ')' before '*' token
    hid_wrap.c:1151: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:1197: error: expected ')' before '*' token
    hid_wrap.c:1299: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:1310: error: expected specifier-qualifier-list before 'PyObject'
    hid_wrap.c: In function 'SWIG_Python_CheckImplicit':
    hid_wrap.c:1322: error: 'SwigPyClientData' has no member named 'implicitconv'
    hid_wrap.c: At top level:
    hid_wrap.c:1325: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:1334: error: expected ')' before '*' token
    hid_wrap.c: In function 'SwigPyClientData_Del':
    hid_wrap.c:1389: warning: implicit declaration of function 'Py_XDECREF'
    hid_wrap.c:1389: error: 'SwigPyClientData' has no member named 'newraw'
    hid_wrap.c:1390: error: 'SwigPyClientData' has no member named 'newargs'
    hid_wrap.c:1391: error: 'SwigPyClientData' has no member named 'destroy'
    hid_wrap.c: At top level:
    hid_wrap.c:1397: error: expected specifier-qualifier-list before 'PyObject_HEAD'
    hid_wrap.c:1404: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:1410: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:1432: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:1438: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:1444: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:1472: error: expected declaration specifiers or '...' before 'FILE'
    hid_wrap.c: In function 'SwigPyObject_print':
    hid_wrap.c:1478: error: 'PyObject' undeclared (first use in this function)
    hid_wrap.c:1478: error: 'repr' undeclared (first use in this function)
    hid_wrap.c:1478: warning: implicit declaration of function 'SwigPyObject_repr'
    hid_wrap.c:1482: warning: implicit declaration of function 'fputs'
    hid_wrap.c:1482: error: 'fp' undeclared (first use in this function)
    hid_wrap.c: At top level:
    hid_wrap.c:1491: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c: In function 'SwigPyObject_compare':
    hid_wrap.c:1502: error: 'SwigPyObject' has no member named 'ptr'
    hid_wrap.c:1503: error: 'SwigPyObject' has no member named 'ptr'
    hid_wrap.c: At top level:
    hid_wrap.c:1508: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:1525: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:1527: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:1534: error: expected ')' before '*' token
    hid_wrap.c:1539: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:1543: error: expected ')' before '*' token
    hid_wrap.c:1577: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:1594: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:1610: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:1622: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:1634: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:1682: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'swigobject_methods'
    hid_wrap.c:1694: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:1701: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:1834: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:1852: error: expected specifier-qualifier-list before 'PyObject_HEAD'
    hid_wrap.c:1859: error: expected declaration specifiers or '...' before 'FILE'
    hid_wrap.c: In function 'SwigPyPacked_print':
    hid_wrap.c:1862: error: 'fp' undeclared (first use in this function)
    hid_wrap.c:1863: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1863: error: 'SwigPyPacked' has no member named 'size'
    hid_wrap.c:1867: error: 'SwigPyPacked' has no member named 'ty'
    hid_wrap.c: At top level:
    hid_wrap.c:1872: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:1883: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c: In function 'SwigPyPacked_compare':
    hid_wrap.c:1897: error: 'SwigPyPacked' has no member named 'size'
    hid_wrap.c:1898: error: 'SwigPyPacked' has no member named 'size'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'size'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'size'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'size'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: warning: left-hand operand of comma expression has no effect
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: warning: left-hand operand of comma expression has no effect
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: warning: left-hand operand of comma expression has no effect
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: warning: left-hand operand of comma expression has no effect
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'pack'
    hid_wrap.c:1900: error: 'SwigPyPacked' has no member named 'size'
    hid_wrap.c: At top level:
    hid_wrap.c:1903: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:1905: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:1912: error: expected ')' before '*' token
    hid_wrap.c:1918: error: expected ')' before '*' token
    hid_wrap.c:1927: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:2009: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:2029: error: expected ')' before '*' token
    hid_wrap.c:2045: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:2051: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:2066: error: expected ')' before '*' token
    hid_wrap.c:2117: error: expected ')' before '*' token
    hid_wrap.c:2132: error: expected ')' before '*' token
    hid_wrap.c:2223: error: expected ')' before '*' token
    hid_wrap.c:2255: error: expected ')' before '*' token
    hid_wrap.c:2277: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:2347: error: expected ')' before '*' token
    hid_wrap.c:2368: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:2386: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:2407: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c: In function 'SWIG_Python_GetModule':
    hid_wrap.c:2428: warning: implicit declaration of function 'PyCObject_Import'
    hid_wrap.c:2429: warning: assignment makes pointer from integer without a cast
    hid_wrap.c: At top level:
    hid_wrap.c:2443: error: expected ')' before '*' token
    hid_wrap.c: In function 'SWIG_Python_DestroyModule':
    hid_wrap.c:2484: warning: implicit declaration of function 'SWIG_This'
    hid_wrap.c: In function 'SWIG_Python_SetModule':
    hid_wrap.c:2489: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'swig_empty_runtime_method_table'
    hid_wrap.c:2489: error: 'swig_empty_runtime_method_table' undeclared (first use in this function)
    hid_wrap.c:2489: error: expected expression before ']' token
    hid_wrap.c:2495: error: 'PyObject' undeclared (first use in this function)
    hid_wrap.c:2495: error: 'module' undeclared (first use in this function)
    hid_wrap.c:2495: warning: implicit declaration of function 'Py_InitModule'
    hid_wrap.c:2498: error: 'pointer' undeclared (first use in this function)
    hid_wrap.c:2498: warning: implicit declaration of function 'PyCObject_FromVoidPtr'
    hid_wrap.c:2500: warning: implicit declaration of function 'PyModule_AddObject'
    hid_wrap.c: At top level:
    hid_wrap.c:2507: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c: In function 'SWIG_Python_TypeQuery':
    hid_wrap.c:2516: error: 'PyObject' undeclared (first use in this function)
    hid_wrap.c:2516: error: 'cache' undeclared (first use in this function)
    hid_wrap.c:2516: warning: implicit declaration of function 'SWIG_Python_TypeCache'
    hid_wrap.c:2517: error: 'key' undeclared (first use in this function)
    hid_wrap.c:2517: warning: implicit declaration of function 'SWIG_Python_str_FromChar'
    hid_wrap.c:2518: error: 'obj' undeclared (first use in this function)
    hid_wrap.c:2518: warning: implicit declaration of function 'PyDict_GetItem'
    hid_wrap.c:2521: warning: implicit declaration of function 'PyCObject_AsVoidPtr'
    hid_wrap.c:2527: warning: implicit declaration of function 'PyDict_SetItem'
    hid_wrap.c: In function 'SWIG_Python_AddErrMesg':
    hid_wrap.c:2546: error: 'PyObject' undeclared (first use in this function)
    hid_wrap.c:2546: error: 'type' undeclared (first use in this function)
    hid_wrap.c:2547: error: 'value' undeclared (first use in this function)
    hid_wrap.c:2548: error: 'traceback' undeclared (first use in this function)
    hid_wrap.c:2552: error: 'old_str' undeclared (first use in this function)
    hid_wrap.c: In function 'SWIG_Python_ArgFail':
    hid_wrap.c:2575: warning: implicit declaration of function 'snprintf'
    hid_wrap.c:2575: warning: incompatible implicit declaration of built-in function 'snprintf'
    hid_wrap.c: At top level:
    hid_wrap.c:2583: error: expected ')' before '*' token
    hid_wrap.c:2591: error: expected declaration specifiers or '...' before 'PyObject'
    hid_wrap.c: In function 'SWIG_Python_TypeError':
    hid_wrap.c:2605: error: 'obj' undeclared (first use in this function)
    hid_wrap.c:2607: error: 'PyObject' undeclared (first use in this function)
    hid_wrap.c:2607: error: 'str' undeclared (first use in this function)
    hid_wrap.c:2610: error: 'PyExc_TypeError' undeclared (first use in this function)
    hid_wrap.c: At top level:
    hid_wrap.c:2630: error: expected ')' before '*' token
    hid_wrap.c:2690:4: error: #error "This python version requires swig to be run with the '-classic' option"
    hid_wrap.c:2721: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:2739: error: expected ')' before '*' token
    hid_wrap.c: In function 'SWIG_CanCastAsInteger':
    hid_wrap.c:2795: error: 'errno' undeclared (first use in this function)
    hid_wrap.c:2795: error: 'EDOM' undeclared (first use in this function)
    hid_wrap.c:2795: error: 'ERANGE' undeclared (first use in this function)
    hid_wrap.c: At top level:
    hid_wrap.c:2819: error: expected ')' before '*' token
    hid_wrap.c:2858: error: expected ')' before '*' token
    hid_wrap.c:2887: error: expected ')' before '*' token
    hid_wrap.c:2963: error: expected ')' before '*' token
    hid_wrap.c:2986: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3008: error: expected ')' before '*' token
    hid_wrap.c:3052: error: expected ')' before '*' token
    hid_wrap.c:3067: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3075: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3083: error: expected ')' before '*' token
    hid_wrap.c:3098: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3110: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3140: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3162: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3192: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3214: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3244: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3266: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3297: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3325: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3355: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3377: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3407: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3429: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3442: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3463: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3470: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3500: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3522: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3552: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3574: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3603: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3625: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3653: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3675: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3705: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3727: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3740: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3761: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3768: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3789: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3810: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3831: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3844: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3865: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3886: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3899: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3912: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3925: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:3965: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:4014: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:4036: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:4058: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:4119: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:4180: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:4211: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:4242: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'SwigMethods'
    hid_wrap.c:4630: error: expected specifier-qualifier-list before 'PyObject'
    hid_wrap.c:4636: error: expected specifier-qualifier-list before 'PyObject_HEAD'
    hid_wrap.c:4640: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:4649: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c: In function 'swig_varlink_print':
    hid_wrap.c:4690: error: 'PyObject' undeclared (first use in this function)
    hid_wrap.c:4690: error: 'str' undeclared (first use in this function)
    hid_wrap.c:4690: warning: implicit declaration of function 'swig_varlink_str'
    hid_wrap.c: In function 'swig_varlink_dealloc':
    hid_wrap.c:4700: error: 'swig_varlinkobject' has no member named 'vars'
    hid_wrap.c:4702: error: 'swig_globalvar' has no member named 'next'
    hid_wrap.c: At top level:
    hid_wrap.c:4709: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:4727: error: expected declaration specifiers or '...' before 'PyObject'
    hid_wrap.c: In function 'swig_varlink_setattr':
    hid_wrap.c:4729: error: 'swig_varlinkobject' has no member named 'vars'
    hid_wrap.c:4732: error: 'swig_globalvar' has no member named 'set_attr'
    hid_wrap.c:4732: error: 'p' undeclared (first use in this function)
    hid_wrap.c:4735: error: 'swig_globalvar' has no member named 'next'
    hid_wrap.c:4738: error: 'PyExc_NameError' undeclared (first use in this function)
    hid_wrap.c: At top level:
    hid_wrap.c:4743: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:4803: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:4813: error: expected ')' before '*' token
    hid_wrap.c:4829: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    hid_wrap.c:4842: error: expected ')' before '*' token
    hid_wrap.c:4869: error: expected ')' before '*' token
    hid_wrap.c: In function 'init_hid':
    hid_wrap.c:4929: error: 'PyObject' undeclared (first use in this function)
    hid_wrap.c:4929: error: 'm' undeclared (first use in this function)
    hid_wrap.c:4929: error: 'd' undeclared (first use in this function)
    hid_wrap.c:4929: warning: left-hand operand of comma expression has no effect
    hid_wrap.c:4945: warning: implicit declaration of function 'SWIG_Python_FixMethods'
    hid_wrap.c:4945: error: 'SwigMethods' undeclared (first use in this function)
    hid_wrap.c:4952: warning: implicit declaration of function 'PyModule_GetDict'
    hid_wrap.c:4955: warning: implicit declaration of function 'SWIG_Python_InstallConstants'
    hid_wrap.c:4958: warning: implicit declaration of function 'SWIG_Python_SetConstant'
    hid_wrap.c:4958: warning: implicit declaration of function 'SWIG_From_int'
    make[2]: *** [hid_wrap.lo] Errore 1
    make[2]: uscita dalla directory «/home/gabriele/work/mcc/libhid-0.2.12.orig/swig»
    make[1]: *** [all-recursive] Errore 1
    make[1]: uscita dalla directory «/home/gabriele/work/mcc/libhid-0.2.12.orig»
    make: *** [all] Errore 2
    I think that remove SWIG can be a possible way to solve the problem but I don't know how to do it.
    Another possibility is to find Python.h but now I don't know where to find it.
    Have you something to suggest?

  7. #6
    Linux Engineer Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    878
    hid_wrap.c:126:20: error: Python.h: No such file or directory

    You need Python development package.

  8. #7
    Just Joined!
    Join Date
    Aug 2010
    Posts
    23
    but how can I download it?
    I've tried with
    Code:
    sudo apt-get install Python
    but the terminal says that it's impossible to find it in E:

  9. #8
    Linux Engineer Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    878
    See your distro documentation how to set up repositories.
    If you need help with this describe your setup. What distro, running on virtual machine or not, etc.

  10. #9
    Just Joined!
    Join Date
    Aug 2010
    Posts
    23
    ehm I don't know exactly what is a repository, I've read something on wikipedia but I don't have any idea of where and what to search...
    on my pc it's installed Kubuntu 10.4 LTS Lucid Lynx.
    it's running on my pc (a laptop DELL INSPIRON 1564) in dual boot with windows 7, so not on a virtual machine...

  11. #10
    Just Joined!
    Join Date
    Aug 2010
    Posts
    23
    or I can try to download the Python Development Package from the Python official site?

Page 1 of 3 1 2 3 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •