Game Development Reference
In-Depth Information
va_start (argptr, format);
vsprintf (string, format,argptr);
va_end (argptr);
With these bits in mind, you are now ready to test the Wiimote controller app, but before you
do, you must compile the WiiC library using the Android NDK.
Compilation and Test
To compile the WiiC library, open a Cygwin console, change to the folder containing the
Wiimote project that you downloaded from the companion source code, in my case
cd /cygdrive/C/tmp/ch08.Wiimote , and type:
$ ndk-build
Figure 8-8 shows the compilation in progress.
Figure 8-8. WiiC compilation with the Android NDK
Note You must put the root folder of the NDK in your system path so the ndk-build command
can be located. In Windows, edit the Environment Variables within the System Properties of My
Computer, and add the NDK root to the system Path variable.
 
Search WWH ::




Custom Search