C Cross Compile for Linkit Smart 7688

Post on 21-Apr-2017

1.571 views 5 download

Transcript of C Cross Compile for Linkit Smart 7688

Cross Compile

Toolchainhttp://labs.mediatek.com/site/global/developer_tools/

mediatek_linkit_smart_7688/sdt_intro/index.gsp

/opt/openwrt-toolchain/

export PATH=“/opt/openwrt-toolchain/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin:$PATH"

export STAGING_DIR=/opt/openwrt-toolchain/staging_dir

Bash => ~/.bash_profileZSH => ~/.zshrc

echo $PATH

Hello, World!

mipsel-openwrt-linux-gcc

C

C++mipsel-openwrt-linux-g++

mipsel-openwrt-linux-gcc helloworld.c -o helloworld

Compile

Copy to linkitscp helloworld root@appstack.local:/root

Add Compiler Add Device Add Kit

Add Compiler

Add Device

Select Generic Linux Device

Add Kit

Build Settings -Build

Clear Build Settings

Build Settings - Run