# 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.&#x20;

On the host development PC, download the [Toolchain](https://linksprite.s3.amazonaws.com/TIYCam/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf.tgz) and put under the directory /opt/ of host PC.

```markdown
$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:

```markdown
$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:

```markdown
$source /etc/profile
```

Verify the version of the toolchain:

```markdown
$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
