Native Development Kit Setup

This guide describes how to set up a Native Development Kit (NDK) for 3rd party native apps and services.

NDK is a set of tools that include toolchains, libraries, and header files. To build 3rd party native apps and services for the pre-built webOS target device, you need to set up the NDK on your host machine.

Build the NDK Installer

To use the NDK installer, you must build it first. Go to your build-webos directory and enter the following commands on the shell.

build-webos$ ./mcf -p <number of physical CPU cores / 2> -b <number of physical CPU cores / 2> raspberrypi4
build-webos$ source oe-init-build-env
build-webos$ bitbake -c populate_sdk webos-image
  • build-webos directory and mcf command are explained in Building webOS OSE.
  • OpenEmbedded commands are used to build NDK installer. For more details about using the commands and OpenEmbedded, see Yocto Project SDK Manual.

If the build succeeds, the NDK installer (.sh file) is created in build-webos/BUILD/deploy/sdk/.

build-webos/BUILD/deploy/sdk$ ls

Run the NDK Installer

After building the NDK installer, you must run the installer. Go to your build-webos/BUILD/deploy/sdk directory and enter the following commands on the shell.

build-webos/BUILD/deploy/sdk$ ./
webOS OSE SDK installer version 1.0.g
Enter target directory for SDK (default: /opt/webos-sdk-x86_64/1.0.g):<Press Enter key or type the custom directory>
You are about to install the SDK to `/opt/webos-sdk-x86_64/1.0.g`. Proceed[Y/n]? <Type Y and press Enter key>

If the installation succeeds, an environment setup script file (environment-setup-cortexa7t2hf-neon-vfpv4-webos-linux-gnueabi) is created in the destination directory.

/opt/webos-sdk-x86_64/1.0.g$ ls

Set up the Build Environment

To set up the build environment, enter the following command on the shell.

$ source /opt/webos-sdk-x86_64/1.0.g/environment-setup-cortexa7t2hf-neon-vfpv4-webos-linux-gnueabi
You need to enter source command every time you start a new shell session.