Install Cross-Compile ToolChain
TIYCam is arm based CPU, and the host development is X86. To develop arm based application on x86 based PC, we need cross compile, and use the cross-compilation toolchain.
On the host development PC, download the Toolchain and put under the directory /opt/ of host PC.
$sudo cp gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf.tgz /opt/
$sudo tar xzf gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf.tgz
Edit file /etc/profile and append the environmental variable PATH:
$sudo nano /etc/profile
Append the following line to the end of the file:
export PATH="/opt/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/bin:$PATH"
Run the command to activate:
$source /etc/profile
Verify the version of the toolchain:
$arm-linux-gnueabihf-gcc --version
It should print out:
arm-linux-gnueabihf-gcc (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36) ) 8.3.0
Last updated