This repository provides a compilation framework for developing and running applications on the ReCamera platform. It includes setup instructions, compilation steps, and installation guidelines.
.
├── cmake # Build scripts
├── components # Functional components
├── docs # Documentation
├── images # Images
├── scripts # Scripts
├── solutions # Applications
├── test # Tests
└── tools # Tools
This project depends on ReCamera-OS, which provides the necessary toolchain, SDK, and runtime environment. Ensure you have cloned and set up ReCamera-OS from the following repository:
🔗 ReCamera-OS GitHub Repository
git clone https://github.com/Seeed-Studio/reCamera-OS.git
cd reCamera-OS
# Follow the setup instructions in the repository
If you do not wish to build ReCamera-OS manually, you can download a prebuilt SDK package:
-
Visit ReCamera-OS Releases.
-
Download the latest reCamera_OS_SDK_x.x.x.tar.gz package.
-
Extract the package and set the SDK path:
export SG200X_SDK_PATH=<PATH_TO_RECAMERA-OS-SDK>/sg2002_recamera_emmc/
Follow these steps to set up the environment, compile the project, and generate the necessary application package.
git clone https://github.com/Seeed-Studio/sscma-example-sg200x
cd sscma-example-sg200x
git submodule update --init
Set up the required paths before building the application:
export SG200X_SDK_PATH=<PATH_TO_RECAMERA-OS>/output/sg2002_recamera_emmc/
export PATH=<PATH_TO_RECAMERA-OS>/host-tools/gcc/riscv64-linux-musl-x86_64/bin:$PATH
Navigate to the project directory and compile:
cd solutions/helloworld
cmake -B build -DCMAKE_BUILD_TYPE=Release .
cmake --build build
If the build process completes successfully, the executable binary should be available in the build
directory.
To prepare the application for distribution, package it using cpack
:
cd build && cpack
This will generate a .deb package, which can be installed on the device.
Use scp or other file transfer methods to copy the package to the ReCamera device:
scp build/helloworld-1.0.0-1.deb recamera@192.168.42.1:/tmp/
Replace recamera@192.168.42.1
with the actual username and IP address of your device.
Log into the device via SSH and install the package using opkg
:
ssh recamera@192.168.42.1
sudo opkg install /tmp/helloworld-1.0.0-1.deb
Note: sudo password is the same as the WEB UI password. default is recamera
.
Once installed, you can run the application:
helloworld
Hello, ReCamera!
For more information, go to the specific solution's README.