How to compile wiimote-based programs on Ubuntu

Source: Internet
Author: User

As we all know, Nintendo did not publish its SDK because it was about to sell money!

For amateurs who have no money like me but are interested in wiimoteProgramA viable solution for enthusiasts is to find a third-party library.

Http://wiibrew.org/wiki/wiimote/library# lists many libraries that support wiimoteand C # libraries recommended by Johnny Lee. However, C ++ programmers prefer C/C ++ libraries. I chose WIIC, which is extended by wiiuse. The official homepage is
Http://wiic.sourceforge.net/index.php? N = Main. Homepage

It has only one dynamic library file and can be easily combined with its own program.

The following are simple steps:

First use the svn checkout source code:

 
SVN Co https://wiic.svn.sourceforge.net/svnroot/wiic <wiic_home>
 
Then use cmake to generate the makefile. (cmake is a good thing, which is convenient and cross-platform ):
 
Mkdir build
 
CD build
 
Cmake ../src
Make
 
In this case, after the build is complete, how can we use make install to install the Library to the/usr of the system, but I prefer to put the third-party library in the home directory separately, this is what you like.
 
WIIC comes with example, which can be tested. Everything on our machine is OK. Press-/+ to turn off (enable) motion perception (I .e. shaking wiimote responds), and nunchuk can also be used, press the up/down key to enable (disable) motion plus. I haven't bought this item yet,
 
So we can't test it. If there are other keys, let's explore them.
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.