damn this was hard..
Ubuntu is cool and all, but getting the right dependencies from (working) repositories, is sometimes a pain in the ass.
here goes how to use your Wii Remote with your MacBook running Ubuntu 2.6.17 kernel.
first step make sure you have a built in bluetooth adapter (Apple might have ripped you off!
My own mediocre attempt at humor has been highly amusing to myself.!)
root@Bell-Mobile:~#hcitool dev
should see something like this:
Devices:
hci0 00:17:F2:AA:F7:68
trevelyn@Bell-Mobile:~$
Now if you don't see it, you may need to get bluez tools with apt-get, but EVERY ubuntu-kubuntu install i have done has automatically found and configured the bluetooth adapter.
now download the cwiid (wiimote app) from here:
trevelyn@Bell-Mobile:~$mkdir /wiimote
trevelyn@Bell-Mobile:~$cd /wiimote
trevelyn@Bell-Mobile:~$wget http://abstrakraft.org/cwiid/downloads/cwiid-0.5.02.tgz
now unzip it!
trevelyn@Bell-Mobile:~$tar vzxf cwiid-0.5.02.tgz
now, if you ./configure you might see some errors, like you need <dep0>,
then run
trevelyn@Bell-Mobile:~$apt-get install <dep0>
then, run ./configure again and you will see that you need yet another
dependency <dep1> this one also was gettable from my list of repositories (see below)
trevelyn@Bell-Mobile:~$apt-get install <dep1>
note please change the <stuff here> with the actual package name, i.e. if it says you need h0h0.no
then do ((trevelyn@Bell-Mobile:~$apt-get install h0h0.no)) okie?
then the last one, this one was a pain in the ass to find i had to google like 5 strings in quotes dumped by the configure script to actually find it, it will finally end and say:
No package 'gtk+-2.0' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables GTK_CFLAGS
and GTK_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
that's assinine, you need a set of lib files that you dont even know what they are??
heres how i got it (FINALLY)
root@Bell-Mobile:~#apt-get install libgtk2.0-dev
then:
root@Bell-Mobile:~#apt-get install libgtk1.2-dev
then run the configure script with:
root@Bell-Mobile:~#./configure
then make and make install:
root@Bell-Mobile:~#make
root@Bell-Mobile:~#make install
then it's over.. you did it! sike, there will be a cool error once you actually figure out wtf the actual program is called in your usr/bin/ directory! The program is called wmgui btw
root@Bell-Mobile:~#wmgui
wmgui: error while loading shared libraries: libwiimote.so.0: cannot open shared object file: No such file or directory
wow wtf does THAT mean?? well you have to make a symbolic link with "ln" like this:
root@Bell-Mobile:~# ln -s /usr/local/lib/libwiimote.so.0.1 /usr/lib/libwiimote.so.0
then Poof! it works. open an xterm and do:
root@Bell-Mobile:~# wmgui
Hope this helps someone somewhere in the inet.
- trev
list of depositories:
root@Bell-Mobile:/home/trevelyn# cat /etc/apt/sources.list
deb http://us.archive.ubuntu.com/ubuntu/ edgy main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ edgy main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ edgy-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ edgy-updates main restricted
## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://us.archive.ubuntu.com/ubuntu/ edgy universe
deb-src http://us.archive.ubuntu.com/ubuntu/ edgy universe
## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ edgy-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ edgy-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu edgy-security main restricted
deb-src http://security.ubuntu.com/ubuntu edgy-security main restricted
deb http://security.ubuntu.com/ubuntu edgy-security universe
deb-src http://security.ubuntu.com/ubuntu edgy-security universe
deb http://javadesktop.org/lg3d/debian stable contrib
deb http://archive.ubuntu.com/ubuntu breezy-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu breezy-backports main restricted universe multiverse
deb http://ubuntu-backports.mirrormax.net breezy-extras main restricted universe multiverse
#deb http://packages.freecontrib.org/ubuntu/plf breezy free non-free
#deb-src http://packages.freecontrib.org/ubuntu/plf breezy free non-free
deb http://archive.ubuntu.com/ubuntu/ edgy universe multiverse
deb http://bluez.sourceforge.net/download/debian/ ./
root@Bell-Mobile:/home/trevelyn#
pics:
here's me with the application opened up:
go to file and "connect" then press 1+2 simultaneously and click okay
as the wii remote LED's blink:
here's me pressing the "up" button notice the change in colour:
click on "settings" and "acc" then you will see the movement sensors
feeding data via bluetooth to your laptop
Then if you create a handy dandy $3USD IR sensor bar from my last post:
http://zombie.el.cx/bbs/index.php?topic=9.0then you can use The IR to move around the screen. Mine was upstairs
in my computer room atm, so i just pointed it at the lights above me:
Next tutorial: keymapping the wiimote with linux to play ZSNES games
root@Bell-Mobile:~#apt-get install zsnes