Page 6 of 6 FirstFirst ... 456
Results 51 to 57 of 57

Thread: Howto Setup Xbox360 Controller in Edgy Elft

  1. #51
    Join Date
    Mar 2009
    Beans
    1

    Re: Howto Setup Xbox360 Controller in Edgy Elft

    I am confused :-/
    I cannot get past this part

    cd /home/pouesum/.xpad360
    sudo make

    for some reason my kernel linux headers are 2.6.27-7-generic, 2.6.27-9-generic, 2.6.27-10-generic, and 2.6.27-11-generic

    How can I have so many different ones?

    pouesum@pouesum-desktop:~/.xpad360$ sudo make
    make modules -C /usr/src/linux-headers-2.6.27-11-generic SUBDIRS=/home/pouesum/.xpad360
    make[1]: Entering directory `/usr/src/linux-headers-2.6.27-11-generic'
    CC [M] /home/pouesum/.xpad360/xpad.o
    /home/pouesum/.xpad360/xpad.c: In function ‘xpad_open’:
    /home/pouesum/.xpad360/xpad.c:382: error: ‘struct input_dev’ has no member named ‘private’
    /home/pouesum/.xpad360/xpad.c: In function ‘xpad_close’:
    /home/pouesum/.xpad360/xpad.c:408: error: ‘struct input_dev’ has no member named ‘private’
    /home/pouesum/.xpad360/xpad.c: In function ‘xpad_probe’:
    /home/pouesum/.xpad360/xpad.c:496: error: ‘struct input_dev’ has no member named ‘cdev’
    /home/pouesum/.xpad360/xpad.c:497: error: ‘struct input_dev’ has no member named ‘private’
    make[2]: *** [/home/pouesum/.xpad360/xpad.o] Error 1
    make[1]: *** [_module_/home/pouesum/.xpad360] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.27-11-generic'
    make: *** [all] Error 2
    pouesum@pouesum-desktop:~/.xpad360$

    :-/ Any ideas?

  2. #52
    Join Date
    Jan 2007
    Beans
    Hidden!

    Re: Howto Setup Xbox360 Controller in Edgy Elft

    Change the lines 382 and 408 in xpad.c from
    Code:
    struct usb_xpad *xpad = dev->private;
    to
    Code:
    struct usb_xpad *xpad = input_get_drvdata(dev);

    line 496 from
    Code:
    input_dev->cdev.dev = &intf->dev;
    to
    Code:
    input_dev->dev.parent = &intf->dev;

    and line 497 from
    Code:
    input_dev->private = xpad;
    to
    Code:
    input_set_drvdata(input_dev, xpad);
    I hope this works for you.

    This way I made the Microsoft XBox360 Gamepad work under Ubuntu 9.04 - Jaunty Jackalope x64.

  3. #53
    Join Date
    Sep 2009
    Location
    Marianna,Florida
    Beans
    33
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Howto Setup Xbox360 Controller in Edgy Elft

    When I try and run:

    sudo apt-get install linux-headers-'uname -r' build-essential

    I get this:

    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Couldn't find package linux-headers-uname -r
    Real new @ linux and trying to get away from windoze. Been trying to get my xbox360 (from GameStop) to work with epsxe160. The emulator is working great...please HELP!!!

  4. #54
    Join Date
    Sep 2009
    Location
    Marianna,Florida
    Beans
    33
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Howto Setup Xbox360 Controller in Edgy Elft

    found the answer, and I see I posted in the wrong place. See you in Absolute Beginner Talk.

    Je Et

  5. #55
    Join Date
    Dec 2009
    Beans
    11

    Re: Howto Setup Xbox360 Controller in Edgy Elft

    I went through the steps with the changes for Jaunty as described by Prof_NARF. I still get an error:

    swygert@Living-Room ~/.xpad360 $ sudo make
    [sudo] password for swygert:
    make modules -C /usr/src/linux-headers-2.6.17-10-generic SUBDIRS=/home/swygert/.xpad360
    make: *** /usr/src/linux-headers-2.6.17-10-generic: No such file or directory. Stop.
    make: *** [all] Error 2


    If it makes any difference I am using Mint 8 x64, which is based on Ubuntu Karmic. So what's wrong?

  6. #56
    Join Date
    Feb 2008
    Beans
    821

    Re: Howto Setup Xbox360 Controller in Edgy Elft

    I get this. im using ubuntu 10-04 and also my xpad.ko is under /lib/modules/2.6.32-25-generic/kernel/drivers/input/joystick/lib/modules/2.6.32-25-generic/kernel/drivers/input/joystick
    Code:
    sudo make
    make modules -C /usr/src/linux-headers-2.6.32-25-generic SUBDIRS=/home/goat/.xpad360
    make[1]: Entering directory `/usr/src/linux-headers-2.6.32-25-generic'
      CC [M]  /home/goat/.xpad360/xpad.o
    /home/goat/.xpad360/xpad.c: In function ‘xpad_wireless_connect’:
    /home/goat/.xpad360/xpad.c:291: error: implicit declaration of function ‘info’
    /home/goat/.xpad360/xpad.c: In function ‘xpad_open’:
    /home/goat/.xpad360/xpad.c:382: error: ‘struct input_dev’ has no member named ‘private’
    /home/goat/.xpad360/xpad.c: In function ‘xpad_close’:
    /home/goat/.xpad360/xpad.c:408: error: ‘struct input_dev’ has no member named ‘private’
    /home/goat/.xpad360/xpad.c: In function ‘xpad_probe’:
    /home/goat/.xpad360/xpad.c:496: error: ‘struct input_dev’ has no member named ‘cdev’
    /home/goat/.xpad360/xpad.c:497: error: ‘struct input_dev’ has no member named ‘private’
    make[2]: *** [/home/goat/.xpad360/xpad.o] Error 1
    make[1]: *** [_module_/home/goat/.xpad360] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-25-generic'
    make: *** [all] Error 2
    Last edited by KEE; November 22nd, 2010 at 03:20 AM.

  7. #57
    Join Date
    Oct 2011
    Beans
    1

    Re: Howto Setup Xbox360 Controller in Edgy Elft

    Mine doesn't want to make due to absence of smp_lock.h in the very recent Oneiric Ocelot. What should I do?

Page 6 of 6 FirstFirst ... 456

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
  •