Skip to main content
6 of 6
Corrected a line that was not belonging

I would suggest to do things in the "Linux way", which means for me, as less automatic configuration as possible. I would download the required toolchain from the distributor’s site, and set a .CC file in your project's working dir. Your CC file should look something like this:

export PATH=< PATH-TO-TOOLCHAIN-BIN-FOLDER>:${PATH} export CROSS_COMPILE=< TOOLCHAIN PREFIX` i.e "arm-none-gnueabi-" (the last "-" is important) export ARCH=< ARCHITECTURE> 

After doing that, before running any compilation, issue "source .CC", and then compile as you do normally, i.e "gcc/g++/ld... ...". The compilation will automatically use the toolchain (you will see it in the output of the compilation, that the toolchain is being used)