This repository provides a compilation framework to support running applications on the ReCamera platform.
This project depends on the reCamera-OS. Please make sure to clone and set up the reCamera-OS from the following repository:
Follow the steps below to compile and package the project:
git clone https://github.com/Seeed-Studio/sscma-example-sg200x
cd sscma-example-sg200x
git submodule update --init
-
Set the SDK path:
export SG200X_SDK_PATH=<PATH_TO_RECAMERA-OS>/output/sg2002_recamera_emmc/
-
Set the compiler path:
export PATH=<PATH_TO_RECAMERA-OS>/host-tools/gcc/riscv64-linux-musl-x86_64/bin:$PATH
Navigate to the solution directory, configure the build, and compile the project:
cd solutions/helloworld
cmake -B build -DCMAKE_BUILD_TYPE=Release .
cmake --build build
To package the application, run the following command in the build directory:
cd build && cpack
To install the application, run the following command in the device:
You need to upload the package to your device first.
opkg install helloworld-1.0.0-1.deb