| |||
| Home > Building and Running the Samples > Building and running a sample from the command line > Building and running a sample from a Windows workstation | |||
All of the samples can be built and run from the command line.
To use a terminal to build and run a sample on Microsoft Windows for the Mali OpenGL ES 2.0 Emulator:
Open a Visual Studio command prompt.
Change to the Mali SDK installation directory.
To list the samples, enter:
build-x86-win32.bat --help
Run the batch file to build the samples:
To build all of the samples, enter:
build-x86-win32.bat
To build a single sample named ,
enter: sample_name
build-x86-win32.bat sample_name
The binary for the sample is created in build\x86\sample_name.
Run the binary to execute the OpenGL ES 2.0 code under emulation on your desktop.
To use a terminal to build a sample on Microsoft Windows to run under Linux on an ARM device:
Open a command prompt.
To list the samples, enter:
build-arm-linux.bat --help
Change to the Mali SDK root directory.
Run the batch file:
To build all of the samples, enter:
build-arm-linux.bat
To build a single sample named ,
enter: sample_name
build-arm-linux.bat sample_name
The binary for the sample is created in build\arm\sample_name.
The sample folder contains the binary file and the assets. Copy the folder to the computer with the ARM processor and run it there.