C Cross Compile for Linkit Smart 7688
26
Cross Compile
-
Upload
nattapong-rodmuang -
Category
Devices & Hardware
-
view
1.571 -
download
5
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 [email protected]:/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