SyNAP runtime libraries and utilities
Clone the Astra cross-compilation toolchain for your board from the SDK releases:
wget https://github.com/synaptics-astra/sdk/releases/download/v1.5.0/sl1680-poky-glibc-x86_64-astra-media-cortexa73-sl1680-toolchain-4.0.17.shRun the toolchain setup script
chmod 755 poky-glibc-x86_64-astra-media-cortexa73-sl1680-toolchain-4.0.17.sh
./poky-glibc-x86_64-astra-media-cortexa73-sl1680-toolchain-4.0.17.shFor convenience, set up an alias to activate the toolchain environment
alias toolchain='source /opt/poky/4.0.17/environment-setup-cortexa73-poky-linux'Tip
To check if the cross-compilation environment is active, use the following command in your Ubuntu terminal:
echo $CC
You should see an output similar to:
aarch64-poky-linux-gcc -mcpu=cortex-a73 -march=armv8-a+crc -mbranch-protection=standard -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/poky/4.0.17/sysroots/cortexa73-poky-linux
git clone https://github.com/synaptics-synap/runtime.git
cd runtimemkdir -p build
cd buildUsing Ninja:
cmake .. -G Ninja
ninjaUsing Unix Makefiles:
cmake .. -G "Unix Makefiles"
makeThis shared library object is generated at build/lib/synapnb/libsynapnb.so.
To apply updates to the runtime, replace the existing system library on your board at /usr/lib/libsynapnb.so with the new one. This ensures that any applications using the SyNAP runtime will link to the updated version.
Each compiled application binary will be placed in its respective folder at build/app/<app name>/.
To deploy an application, copy the generated binary to the system binary directory /usr/bin/ on your board.
Warning
It is highly recommended to make backups before replacing library files and/or binaries in /usr/lib/ and /usr/bin/