| |||
| Home > Building and Running the Samples > Building an Android sample from the command line > Building and running an Android NDK sample | |||
To use a terminal to build and deploy an Android NDK sample from Microsoft Windows or x86 Linux:
Ensure your path contains the Android NDK as described in Chapter 2 Installing the Mali OpenGL ES 2.0 SDK for Android.
Open a command prompt.
Change to the Mali SDK root directory.
Run the script to build the sample:
To build all of the Android NDK samples, run:
bash build-android-ndk.sh
To build a single sample named ,
run: sample_name
bash build-android-ndk.sh sample_name
Run the script to deploy the sample to a connected Android device:
To deploy all of the Android NDK samples, run:
bash deploy-android-ndk.sh
To deploy a single sample named ,
run: sample_name
bash deploy-android-ndk.sh sample_name
Go to the Android menu screen on the device and run the sample.