闲人草堂

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

这是我这几天倒腾wii时随手写的log,希望能给想在ubuntu上玩wii游戏的你一点参考:

* How to play wii game with a real wiimote on Ubuntu?

** First,you need a bluetooth adapter.Buy one.

** Second,you should install some packages.

*** step 0 install some package:

   libbluetooth2 (libbluetooth3) 

  bluez-utils    

  original-awk 

  bison 

  flex 

  libbluetooth2-dev (libbluttooth-dev)

  autoconf 

  mouseemu  

  libgtk2.0-dev 

  wminput 

  wmgui 

  lswm

  libwiimote-0.4

  libwiimote-dev  

Now you can connect your wiimote with PC by bluetooth.   In terminal,type: lswm  

then press 1+2 on your wiimote,the bluetooth address will appear in terminal.  

That means your wiimote has been connected with your pc.  

The wmgui will shou you a few message about the wiimote and nunchuk.

*** step 1 install dolphin 

**** step 1.0 install the dependencies:    

      subversion    

      cmake    

      g++    

      wx2.8-headers    

      libwxbase2.8-dev    

      libwxgtk2.8-dev    

      libgtk2.0-dev    

      nvidia-cg-toolkit    

      libbluetooth-dev (optional, for real wiimotes)    

      libxrandr-dev (optional, for switching desktop resolution in fullscreen mode)    

      libxext-dev    

      libreadline-dev    

      libasound-dev (optional, for alsa sound backend)    

      libpulse-dev (optional, for pulseaudio sound backend)    

      libao-dev (optional, for ao sound backend)    

      libopenal-dev (optional, for openal sound backend)    

      libavcodec-dev (optional, for dumping frames in AVI format)    

      libavformat-dev (optional, for dumping frames in AVI format)    

      libswscale-dev (optional, for dumping frames in AVI format)    

      libglew1.5-dev (optional, if not found will be built statically)    

      liblzo2-dev (optional, if not found will be built statically)    

      libsdl1.2-dev (optional, if not found will be built statically)    

      libsoil-dev (optional, if not found will be built statically)    

      libsfml-dev (optional, if not found will be built statically)
**** step 1.1 install dolphin    

 On my pc,only the version 4883 can recognises the real wiimote.    

  svn checkout http://dolphin-emu.googlecode.com/svn/trunk/ -r 4883 dolphin-emu-read-only    

  cd dolphin-emu-read-only     (While the r4883 doesn't have CMakeLists.txt file, there is a SConstruct file. So you can use scons instead of cmake.)    

  scons flavor=release    

After building,then you can start dolphin which maybe in the "Binary" directory.

 ** Now you can play wii game with dolphin.Have fun!

posted on 2011-02-23 10:42  闲人草堂  阅读(379)  评论(0编辑  收藏  举报