Page 20 of 22 FirstFirst ... 101819202122 LastLast
Results 191 to 200 of 218

Thread: Xbox 360 Controller in Feisty

  1. #191
    Join Date
    Sep 2007
    Beans
    144

    Re: Xbox 360 Controller in Feisty

    Quote Originally Posted by ninfomane View Post
    It test twice to install this module. But at each compile process, I get these errors :
    If you are using a recent enough kernel there shouldn't be a need to compile it manually, as the kernel comes with the module. If you are using an older kernel you must patch the xpad.[ch], use on that works with your kernel or use the xboxdrv userspace driver instead:

    http://pingus.seul.org/~grumbel/xboxdrv/

  2. #192
    Join Date
    Apr 2009
    Beans
    3

    Re: Xbox 360 Controller in Feisty

    Well... I find a solution to my issue. Here is some information about my system :
    Ubuntu 8.10 linux-2.6.27-11 (upgrade from previsous Ubuntu version).
    I installed linux-headers with apt-get. But there wasn't any xpad.c.
    I downloaded kernel source from kernel.org (2.26.27.11) and looked for xpad.c
    I use it instead of the archive one and it compile. I've not tried yet to use the guitar.

  3. #193
    Join Date
    Apr 2009
    Beans
    3

    Re: Xbox 360 Controller in Feisty

    OK. I tested it. Unfortunately, It still do not work. I did :
    Code:
    $> sudo rmmod xpad
    $> sudo modprobe xpad
    I ran Joystick Calibrator. It recognize the guitar, but nothing happen when I push buttons.

  4. #194
    Join Date
    May 2009
    Location
    Michigan
    Beans
    1
    Distro
    Edubuntu 6.10 Edgy

    Re: Xbox 360 Controller in Feisty

    i used to play frets on fire

  5. #195
    Join Date
    Jun 2009
    Beans
    6

    Re: Xbox 360 Controller in Feisty

    xbox-linux driver from xbox-linux.sourceforge.net won't work for now ('til I send my contribution). (un)Fortunately, you will always get this error now (according to http://kerneltrap.org/mailarchive/gi...008/2/7/770834) instead of
    Code:
    input_dev->private
    (which was dirty), you will now have to use
    Code:
    dev_get_drvdata(&input_struct)
    and
    Code:
    dev_set_drvdata(&input_struct, &dev_struct)
    (& means to get an adress of an element, but since references are used everywhere, you'll more probably get something like input_get_drvdata(dev) and input_set_drvdata(input_dev, xpad)). In addition, according to http://kerneltrap.org/index.php?q=ma...008/2/7/770914,
    Code:
    input_dev->cdev
    is obsolete and should be removed. if you're unsure, you can comment lines where cdev appears. Doing this, if anything comes bad, you can uncomment them.

    I hope it'll help. See my blog for further information.

    Edit: it seems that this driver freezes at boot when modprobed. I will look into my logs in order to resolve this.
    Also, I saw that my Xbox controller was supported by ubuntu 9.04 live disk (which I used to rescue my "non-booting" linux), but it wasn't supported by my Ubuntu. If someone has a clue 'bout this, I'd be glad to have some informations (I have to go to work, I can't test anything for now).
    Last edited by Bln; June 20th, 2009 at 12:01 PM.

  6. #196
    Join Date
    Aug 2009
    Beans
    2

    Re: Xbox 360 Controller in Feisty

    Hi I get this error, even when I edit the scons config file, and pont to anotheir drectory Im getting a syntax error on LIBS=['boost_signals', 'usb', 'pthread'])


    ::::
    scons: Reading SConscript files ...
    Checking for C++ library X11... yes
    Checking for C++ library usb... yes
    Checking for C++ header file boost/thread/thread.hpp... yes
    Checking for C++ library boost_thread-mt... yes
    scons: done reading SConscript files.
    scons: Building targets ...
    o src/arg_parser.o -c -g -O2 -Wall -ansi -pedantic src/arg_parser.cpp
    sh: o: command not found
    o src/command_line_options.o -c -g -O2 -Wall -ansi -pedantic src/command_line_options.cpp
    sh: o: command not found
    o src/evdev_helper.o -c -g -O2 -Wall -ansi -pedantic src/evdev_helper.cpp
    sh: o: command not found
    o src/firestorm_dual_controller.o -c -g -O2 -Wall -ansi -pedantic src/firestorm_dual_controller.cpp
    sh: o: command not found
    o src/force_feedback_handler.o -c -g -O2 -Wall -ansi -pedantic src/force_feedback_handler.cpp
    sh: o: command not found
    o src/helper.o -c -g -O2 -Wall -ansi -pedantic src/helper.cpp
    sh: o: command not found
    o src/linux_uinput.o -c -g -O2 -Wall -ansi -pedantic src/linux_uinput.cpp
    sh: o: command not found
    o src/modifier.o -c -g -O2 -Wall -ansi -pedantic src/modifier.cpp
    sh: o: command not found
    o src/pretty_printer.o -c -g -O2 -Wall -ansi -pedantic src/pretty_printer.cpp
    sh: o: command not found
    o src/uinput.o -c -g -O2 -Wall -ansi -pedantic src/uinput.cpp
    sh: o: command not found
    o src/usb_read_thread.o -c -g -O2 -Wall -ansi -pedantic src/usb_read_thread.cpp
    sh: o: command not found
    o src/xbox360_controller.o -c -g -O2 -Wall -ansi -pedantic src/xbox360_controller.cpp
    sh: o: command not found
    o src/xbox360_wireless_controller.o -c -g -O2 -Wall -ansi -pedantic src/xbox360_wireless_controller.cpp
    sh: o: command not found
    o src/xbox_controller.o -c -g -O2 -Wall -ansi -pedantic src/xbox_controller.cpp
    sh: o: command not found
    o src/xboxdrv.o -c -g -O2 -Wall -ansi -pedantic src/xboxdrv.cpp
    sh: o: command not found
    o src/xboxmsg.o -c -g -O2 -Wall -ansi -pedantic src/xboxmsg.cpp
    sh: o: command not found
    o src/xpad_device.o -c -g -O2 -Wall -ansi -pedantic src/xpad_device.cpp
    sh: o: command not found
    o xboxdrv src/xboxdrv.o src/xboxmsg.o src/uinput.o src/arg_parser.o src/pretty_printer.o src/helper.o src/modifier.o src/command_line_options.o src/xbox_controller.o src/xpad_device.o src/xbox360_controller.o src/xbox360_wireless_controller.o src/firestorm_dual_controller.o src/evdev_helper.o src/linux_uinput.o src/usb_read_thread.o src/force_feedback_handler.o -lX11 -lX11 -lusb -lusb -lboost_thread-mt -lboost_thread-mt
    sh: o: command not found
    scons: done building targets.
    >scons (9563) returned '116'

  7. #197
    Join Date
    Aug 2009
    Beans
    2

    Re: Xbox 360 Controller in Feisty

    I edit and I get this I delete the comma . off the ends and I get the syntax error on line 74



    >scons (12303)
    scons: Reading SConscript files ...
    Checking for C++ library X11... (cached) yes
    Checking for C++ library usb... (cached) yes
    Checking for C++ header file boost/thread/thread.hpp... (cached) yes
    Checking for C++ library boost_thread-mt... (cached) yes
    scons: done reading SConscript files.
    scons: Building targets ...
    scons: *** [arg_parser.o] Source `arg_parser.cpp' not found, needed by target `arg_parser.o'.
    scons: building terminated because of errors.
    >scons (12303) returned '0'

    # -*- python -*-

    env = Environment(CPPFLAGS=['-g', '-O2', '-Wall', '-ansi', '-pedantic'])
    conf = Configure(env)

    # X11 checks
    if not conf.CheckLibWithHeader('X11', 'X11/Xlib.h', 'C++'):
    print 'libx11-dev must be installed!'
    Exit(1)
    else:
    conf.env.Append(LIBS = 'X11')

    # libusb Checks
    if not conf.CheckLibWithHeader('usb', 'usb.h', 'C++'):
    print 'libusb must be installed!'
    Exit(1)
    else:
    conf.env.Append(LIBS = 'usb')

    # boost-thread checks
    if not conf.CheckCXXHeader('boost/thread/thread.hpp'):
    print 'libboost-thread-dev must be installed!'
    Exit(1)

    boost_thread = None
    for lib in ['boost_thread-mt', 'boost_thread']:
    if conf.CheckLib(lib, language='C++'):
    boost_thread = lib
    break

    if not boost_thread:
    print 'libboost-thread-dev must be installed!'
    Exit(1)
    else:
    conf.env.Append(LIBS = boost_thread)

    env = conf.Finish()

    # env = Environment(CPPFLAGS=['-g', '-O2'], LIBS=['usb', 'X11'])
    env.Program('xboxdrv', ['src/xboxdrv.cpp',
    '/root/joy/xboxdrv-linux-0.4.8/boxmsg.cpp',
    '/root/joy/xboxdrv-linux-0.4.8/uinput.cpp',
    '/root/joy/xboxdrv-linux-0.4.8/arg_parser.cpp',
    '/root/joy/xboxdrv-linux-0.4.8/pretty_printer.cpp',
    '/root/joy/xboxdrv-linux-0.4.8/helper.cpp',
    '/root/joy/xboxdrv-linux-0.4.8/modifier.cpp',
    '/root/joy/xboxdrv-linux-0.4.8/command_line_options.cpp',
    '/root/joy/xboxdrv-linux-0.4.8/xbox_controller.cpp',
    '/root/joy/xboxdrv-linux-0.4.8/xpad_device.cpp',
    '/root/joy/xboxdrv-linux-0.4.8/xbox360_controller.cpp',
    '/root/joy/xboxdrv-linux-0.4.8/xbox360_wireless_controller.cpp',
    '/root/joy/xboxdrv-linux-0.4.8/firestorm_dual_controller.cpp',
    '/root/joy/xboxdrv-linux-0.4.8/evdev_helper.cpp',
    '/root/joy/xboxdrv-linux-0.4.8/linux_uinput.cpp',
    '/root/joy/xboxdrv-linux-0.4.8/usb_read_thread.cpp',
    '/root/joy/xboxdrv-linux-0.4.8/force_feedback_handler.cpp'
    ])

    if False:
    env.Program('inputdrv',
    ['/root/joy/xboxdrv-linux-0.4.8/src/inputdrv/inputdrv.cpp',
    '/root/joy/xboxdrv-linux-0.4.8/src/inputdrv/inputdrv/xbox360_driver.cpp',
    '/root/joy/xboxdrv-linux-0.4.8/src/inputdrv/inputdrv/evdev_driver.cpp',
    '/root/joy/xboxdrv-linux-0.4.8/src/inputdrv/inputdrv/xbox360_usb_thread.cpp',
    '/root/joy/xboxdrv-linux-0.4.8/src/inputdrv/inputdrv/control.cpp',
    '/root/joy/xboxdrv-linux-0.4.8/src/inputdrv/inputdrv/abs_to_rel.cpp',
    '/root/joy/xboxdrv-linux-0.4.8/src/inputdrv/inputdrv/abs_to_btn.cpp',
    '/root/joy/xboxdrv-linux-0.4.8/src/inputdrv/inputdrv/btn_to_abs.cpp',
    '/root/joy/xboxdrv-linux-0.4.8/src/inputdrv/inputdrv/autofire_button.cpp',
    '/root/joy/xboxdrv-linux-0.4.8/src/inputdrv/inputdrv/uinput_driver.cpp',
    '/root/joy/xboxdrv-linux-0.4.8/src/inputdrv/inputdrv/join_axis.cpp',
    '/root/joy/xboxdrv-linux-0.4.8/src/inputdrv/inputdrv/throttle.cpp',
    '/root/joy/xboxdrv-linux-0.4.8/src/inputdrv/inputdrv/toggle_button.cpp'],
    LIBS=['boost_signals', 'usb', 'pthread'])

    # EOF #

    :::::::::::::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::::::::::::::::::::::::
    >scons (12323)
    scons: Reading SConscript files ...
    File "/root/joy/xboxdrv-linux-0.4.8/SConstruct", line 74

    LIBS=['boost_signals', 'usb', 'pthread'])

    ^

    SyntaxError: invalid syntax

    >scons (12323) returned '0'
    >scons (12324)
    scons: Reading SConscript files ...
    File "/root/joy/xboxdrv-linux-0.4.8/SConstruct", line 74

    LIBS=['boost_signals' 'usb' 'pthread'])

    ^

    SyntaxError: invalid syntax

    >scons (12324) returned '107'




    I delete the comma ,,,, off the end and I get syntax erro

    # -*- python -*-

    env = Environment(CPPFLAGS=['-g', '-O2', '-Wall', '-ansi', '-pedantic'])
    conf = Configure(env)

    # X11 checks
    if not conf.CheckLibWithHeader('X11', 'X11/Xlib.h', 'C++'):
    print 'libx11-dev must be installed!'
    Exit(1)
    else:
    conf.env.Append(LIBS = 'X11')

    # libusb Checks
    if not conf.CheckLibWithHeader('usb', 'usb.h', 'C++'):
    print 'libusb must be installed!'
    Exit(1)
    else:
    conf.env.Append(LIBS = 'usb')

    # boost-thread checks
    if not conf.CheckCXXHeader('boost/thread/thread.hpp'):
    print 'libboost-thread-dev must be installed!'
    Exit(1)

    boost_thread = None
    for lib in ['boost_thread-mt', 'boost_thread']:
    if conf.CheckLib(lib, language='C++'):
    boost_thread = lib
    break

    if not boost_thread:
    print 'libboost-thread-dev must be installed!'
    Exit(1)
    else:
    conf.env.Append(LIBS = boost_thread)

    env = conf.Finish()

    # env = Environment(CPPFLAGS=['-g', '-O2'], LIBS=['usb', 'X11'])
    env.Program('xboxdrv', ['src/xboxdrv.cpp',
    '/root/joy/xboxdrv-linux-0.4.8/boxmsg.cpp'
    '/root/joy/xboxdrv-linux-0.4.8/uinput.cpp'
    '/root/joy/xboxdrv-linux-0.4.8/arg_parser.cpp'
    '/root/joy/xboxdrv-linux-0.4.8/pretty_printer.cpp'
    '/root/joy/xboxdrv-linux-0.4.8/helper.cpp'
    '/root/joy/xboxdrv-linux-0.4.8/modifier.cpp'
    '/root/joy/xboxdrv-linux-0.4.8/command_line_options.cpp'
    '/root/joy/xboxdrv-linux-0.4.8/xbox_controller.cpp'
    '/root/joy/xboxdrv-linux-0.4.8/xpad_device.cpp'
    '/root/joy/xboxdrv-linux-0.4.8/xbox360_controller.cpp'
    '/root/joy/xboxdrv-linux-0.4.8/xbox360_wireless_controller.cpp'
    '/root/joy/xboxdrv-linux-0.4.8/firestorm_dual_controller.cpp'
    '/root/joy/xboxdrv-linux-0.4.8/evdev_helper.cpp'
    '/root/joy/xboxdrv-linux-0.4.8/linux_uinput.cpp'
    '/root/joy/xboxdrv-linux-0.4.8/usb_read_thread.cpp'
    '/root/joy/xboxdrv-linux-0.4.8/force_feedback_handler.cpp'
    ])

    if False:
    env.Program('inputdrv',
    ['/root/joy/xboxdrv-linux-0.4.8/src/inputdrv/inputdrv.cpp'
    '/root/joy/xboxdrv-linux-0.4.8/src/inputdrv/inputdrv/xbox360_driver.cpp'
    '/root/joy/xboxdrv-linux-0.4.8/src/inputdrv/inputdrv/evdev_driver.cpp'
    '/root/joy/xboxdrv-linux-0.4.8/src/inputdrv/inputdrv/xbox360_usb_thread.cpp'
    '/root/joy/xboxdrv-linux-0.4.8/src/inputdrv/inputdrv/control.cpp'
    '/root/joy/xboxdrv-linux-0.4.8/src/inputdrv/inputdrv/abs_to_rel.cpp'
    '/root/joy/xboxdrv-linux-0.4.8/src/inputdrv/inputdrv/abs_to_btn.cpp'
    '/root/joy/xboxdrv-linux-0.4.8/src/inputdrv/inputdrv/btn_to_abs.cpp'
    '/root/joy/xboxdrv-linux-0.4.8/src/inputdrv/inputdrv/autofire_button.cpp'
    '/root/joy/xboxdrv-linux-0.4.8/src/inputdrv/inputdrv/uinput_driver.cpp'
    '/root/joy/xboxdrv-linux-0.4.8/src/inputdrv/inputdrv/join_axis.cpp'
    '/root/joy/xboxdrv-linux-0.4.8/src/inputdrv/inputdrv/throttle.cpp'
    '/root/joy/xboxdrv-linux-0.4.8/src/inputdrv/inputdrv/toggle_button.cpp']
    LIBS=['boost_signals', 'usb', 'pthread'])

    # EOF #

  8. #198
    Join Date
    Dec 2008
    Beans
    23

    Re: Xbox 360 Controller in Feisty

    can someone help me with this problem with makefile

    Code:
    devon@devon-laptop:~/xpad$ make
    make modules -C /lib/modules/2.6.28-15-generic/build SUBDIRS=/home/devon/xpad
    make[1]: Entering directory `/usr/src/linux-headers-2.6.28-15-generic'
      CC [M]  /home/devon/xpad/xpad.o
    /home/devon/xpad/xpad.c: In function ‘xpad_open’:
    /home/devon/xpad/xpad.c:337: error: ‘struct input_dev’ has no member named ‘private’
    /home/devon/xpad/xpad.c: In function ‘xpad_close’:
    /home/devon/xpad/xpad.c:348: error: ‘struct input_dev’ has no member named ‘private’
    /home/devon/xpad/xpad.c: In function ‘xpad_probe’:
    /home/devon/xpad/xpad.c:438: error: ‘struct input_dev’ has no member named ‘cdev’
    /home/devon/xpad/xpad.c:439: error: ‘struct input_dev’ has no member named ‘private’
    make[2]: *** [/home/devon/xpad/xpad.o] Error 1
    make[1]: *** [_module_/home/devon/xpad] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-15-generic'
    make: *** [all] Error 2
    devon@devon-laptop:~/xpad$

  9. #199
    Join Date
    Sep 2007
    Beans
    144

    Re: Xbox 360 Controller in Feisty

    Quote Originally Posted by Gek12345 View Post
    Hi I get this error
    I think those obscure errors are the result of not having a g++ installed.

    Also reextract the whole thing from the tarball again as your modification to the SConstruct file seem to have broken it.

  10. #200
    Join Date
    Sep 2007
    Beans
    144

    Re: Xbox 360 Controller in Feisty

    Quote Originally Posted by insanecrazy4 View Post
    can someone help me with this problem with makefile
    Thats not a problem with the makefile but with the source of the module. Just use the xpad module supplied by your kernel instead of trying to compile the module separately.
    Last edited by Grumbel; August 20th, 2009 at 11:01 AM.

Page 20 of 22 FirstFirst ... 101819202122 LastLast

Bookmarks

Posting Permissions

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