topfs2 Wrote:Seems like this is related to cwiid, it doesn't behave well under x64. there is a wiiuse client available in svn which should work.
Hi, thanks for your quick reply.
Here's what I tried:
kwyxz@ollie:/usr/local/src/xbmc/tools/EventClients/Clients/WiiRemote$ make
make[1]: Entering directory `/usr/local/src/xbmc/tools/EventClients/Clients/WiiRemote/wiiuse_v0.12/src'
gcc -Wall -pipe -fPIC -funroll-loops -O2 -I. -c classic.c -o release-x86_64-linux-gnu/classic.o
gcc -Wall -pipe -fPIC -funroll-loops -O2 -I. -c dynamics.c -o release-x86_64-linux-gnu/dynamics.o
gcc -Wall -pipe -fPIC -funroll-loops -O2 -I. -c events.c -o release-x86_64-linux-gnu/events.o
gcc -Wall -pipe -fPIC -funroll-loops -O2 -I. -c io.c -o release-x86_64-linux-gnu/io.o
gcc -Wall -pipe -fPIC -funroll-loops -O2 -I. -c io_nix.c -o release-x86_64-linux-gnu/io_nix.o
gcc -Wall -pipe -fPIC -funroll-loops -O2 -I. -c ir.c -o release-x86_64-linux-gnu/ir.o
ir.c: In function 'interpret_ir_data':
ir.c:628: warning: array subscript is above array bounds
ir.c:628: warning: array subscript is above array bounds
ir.c:628: warning: array subscript is above array bounds
ir.c:628: warning: array subscript is above array bounds
gcc -Wall -pipe -fPIC -funroll-loops -O2 -I. -c nunchuk.c -o release-x86_64-linux-gnu/nunchuk.o
gcc -Wall -pipe -fPIC -funroll-loops -O2 -I. -c guitar_hero_3.c -o release-x86_64-linux-gnu/guitar_hero_3.o
gcc -Wall -pipe -fPIC -funroll-loops -O2 -I. -c wiiuse.c -o release-x86_64-linux-gnu/wiiuse.o
gcc -Wall -pipe -fPIC -funroll-loops -O2 -shared -lm -lbluetooth release-x86_64-linux-gnu/classic.o release-x86_64-linux-gnu/dynamics.o release-x86_64-linux-gnu/events.o release-x86_64-linux-gnu/io.o release-x86_64-linux-gnu/io_nix.o release-x86_64-linux-gnu/ir.o release-x86_64-linux-gnu/nunchuk.o release-x86_64-linux-gnu/guitar_hero_3.o release-x86_64-linux-gnu/wiiuse.o -o ./release-x86_64-linux-gnu/libwiiuse.so
make[1]: Leaving directory `/usr/local/src/xbmc/tools/EventClients/Clients/WiiRemote/wiiuse_v0.12/src'
g++ -Wall -pipe -fPIC -funroll-loops WiiUse_WiiRemote.cpp wiiuse_v0.12/src/release-x86_64-linux-gnu/libwiiuse.so -o WiiUse_WiiRemote
In file included from WiiUse_WiiRemote.cpp:18:
WiiUse_WiiRemote.h: In constructor 'CWiiController::CWiiController()':
WiiUse_WiiRemote.h:106: warning: deprecated conversion from string constant to 'char*'
I then ran the resulting binary WiiUse_WiiRemote and got the following (I of course pressed 1+2 to sync the Wii Remote):
kwyxz@ollie:/usr/local/src/xbmc/tools/EventClients/Clients/WiiRemote$ ./WiiUse_WiiRemote
wiiuse v0.12 loaded.
By: Michael Laforest <thepara[at]gmail{dot}com>
http://wiiuse.net http://wiiuse.sf.net
[INFO] Found 1 bluetooth device(s).
[INFO] Found wiimote (00:22:4C:8D:F9:4A) [id 1].
connect() output sock: Invalid argument
[INFO] Found 2 bluetooth device(s).
[INFO] Found wiimote (00:22:4C:8D:F9:4A) [id 1].
connect() output sock: Invalid argument
[INFO] Found 2 bluetooth device(s).
[INFO] Found wiimote (00:22:4C:8D:F9:4A) [id 1].
connect() output sock: Invalid argument
[INFO] Found 2 bluetooth device(s).
[INFO] Found wiimote (00:22:4C:8D:F9:4A) [id 1].
connect() output sock: Invalid argument
^C
Am I missing something here ? Thanks again.