Code: Select all
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 ...
g++ -o src/usb_read_thread.o -c -g -O2 -Wall -ansi -pedantic src/usb_read_thread.cpp
src/usb_read_thread.cpp: In member function 'int USBReadThread::read(uint8_t*, int, int)':
src/usb_read_thread.cpp:70: error: 'memcpy' was not declared in this scope
scons: *** [src/usb_read_thread.o] Error 1
scons: building terminated because of errors.
https://help.ubuntu.com/community/Xbox360Controller
Code: Select all
make modules -C /usr/src/linux-headers-2.6.31-14-generic SUBDIRS=/home/codedninja/xpad
make[1]: Entering directory `/usr/src/linux-headers-2.6.31-14-generic'
CC [M] /home/codedninja/xpad/xpad.o
/home/codedninja/xpad/xpad.c: In function ‘xpad_wireless_connect’:
/home/codedninja/xpad/xpad.c:291: error: implicit declaration of function ‘info’
/home/codedninja/xpad/xpad.c: In function ‘xpad_open’:
/home/codedninja/xpad/xpad.c:382: error: ‘struct input_dev’ has no member named ‘private’
/home/codedninja/xpad/xpad.c: In function ‘xpad_close’:
/home/codedninja/xpad/xpad.c:408: error: ‘struct input_dev’ has no member named ‘private’
/home/codedninja/xpad/xpad.c: In function ‘xpad_probe’:
/home/codedninja/xpad/xpad.c:496: error: ‘struct input_dev’ has no member named ‘cdev’
/home/codedninja/xpad/xpad.c:497: error: ‘struct input_dev’ has no member named ‘private’
make[2]: *** [/home/codedninja/xpad/xpad.o] Error 1
make[1]: *** [_module_/home/codedninja/xpad] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.31-14-generic'
make: *** [all] Error 2