Develop with c&cpp
recamera has limited resources and no compilation environment for C code is configured. If you want to use C&CPP
to develop applications on the recamera, you need to configure the cross-compilation environment on a linux machine.
Step1:Configuring the build environment
mkdir recamera && cd recamera
wget https://github.com/Seeed-Studio/reCamera-OS/releases/download/0.1.5/reCameraOS_sdk_v0.1.5.tar.gz
tar -xzvf reCameraOS_sdk_v0.1.5.tar.gz
git clone https://github.com/sophgo/host-tools.git
git clone https://github.com/Seeed-Studio/sscma-example-sg200x.git
export SG200X_SDK_PATH=$HOME/recamera/sg2002_recamera_emmc/
export PATH=$HOME/recamera/host-tools/gcc/riscv64-linux-musl-x86_64/bin:$PATH
Step2:Compiling the instance program
cd $HOME/recamera/sscma-example-sg200x/solutions/helloworld
mkdir build && cd build
cmake ..
make
You can view the file properties by typing file helloworld
.

scp helloworld recamera@{recamera_IP}:/home/recamera/
Transfer the file to your recamera device to run, as shown in the figure below, and the cross-compile environment for your C code is configured.

Tech Support & Product Discussion
Thank you for choosing our products! We are here to provide you with different support to ensure that your experience with our products is as smooth as possible. We offer several communication channels to cater to different preferences and needs.