Download - C Cross Compile for Linkit Smart 7688
Transcript
![Page 1: C Cross Compile for Linkit Smart 7688](https://reader034.vdocuments.mx/reader034/viewer/2022052217/5878359a1a28abef5d8b7629/html5/thumbnails/1.jpg)
Cross Compile
![Page 2: C Cross Compile for Linkit Smart 7688](https://reader034.vdocuments.mx/reader034/viewer/2022052217/5878359a1a28abef5d8b7629/html5/thumbnails/2.jpg)
Toolchainhttp://labs.mediatek.com/site/global/developer_tools/
mediatek_linkit_smart_7688/sdt_intro/index.gsp
![Page 3: C Cross Compile for Linkit Smart 7688](https://reader034.vdocuments.mx/reader034/viewer/2022052217/5878359a1a28abef5d8b7629/html5/thumbnails/3.jpg)
/opt/openwrt-toolchain/
![Page 4: C Cross Compile for Linkit Smart 7688](https://reader034.vdocuments.mx/reader034/viewer/2022052217/5878359a1a28abef5d8b7629/html5/thumbnails/4.jpg)
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
![Page 5: C Cross Compile for Linkit Smart 7688](https://reader034.vdocuments.mx/reader034/viewer/2022052217/5878359a1a28abef5d8b7629/html5/thumbnails/5.jpg)
Hello, World!
![Page 6: C Cross Compile for Linkit Smart 7688](https://reader034.vdocuments.mx/reader034/viewer/2022052217/5878359a1a28abef5d8b7629/html5/thumbnails/6.jpg)
mipsel-openwrt-linux-gcc
C
C++mipsel-openwrt-linux-g++
![Page 7: C Cross Compile for Linkit Smart 7688](https://reader034.vdocuments.mx/reader034/viewer/2022052217/5878359a1a28abef5d8b7629/html5/thumbnails/7.jpg)
mipsel-openwrt-linux-gcc helloworld.c -o helloworld
Compile
![Page 9: C Cross Compile for Linkit Smart 7688](https://reader034.vdocuments.mx/reader034/viewer/2022052217/5878359a1a28abef5d8b7629/html5/thumbnails/9.jpg)
Add Compiler Add Device Add Kit
![Page 10: C Cross Compile for Linkit Smart 7688](https://reader034.vdocuments.mx/reader034/viewer/2022052217/5878359a1a28abef5d8b7629/html5/thumbnails/10.jpg)
Add Compiler
![Page 11: C Cross Compile for Linkit Smart 7688](https://reader034.vdocuments.mx/reader034/viewer/2022052217/5878359a1a28abef5d8b7629/html5/thumbnails/11.jpg)
Add Device
![Page 12: C Cross Compile for Linkit Smart 7688](https://reader034.vdocuments.mx/reader034/viewer/2022052217/5878359a1a28abef5d8b7629/html5/thumbnails/12.jpg)
Select Generic Linux Device
![Page 13: C Cross Compile for Linkit Smart 7688](https://reader034.vdocuments.mx/reader034/viewer/2022052217/5878359a1a28abef5d8b7629/html5/thumbnails/13.jpg)
![Page 14: C Cross Compile for Linkit Smart 7688](https://reader034.vdocuments.mx/reader034/viewer/2022052217/5878359a1a28abef5d8b7629/html5/thumbnails/14.jpg)
![Page 15: C Cross Compile for Linkit Smart 7688](https://reader034.vdocuments.mx/reader034/viewer/2022052217/5878359a1a28abef5d8b7629/html5/thumbnails/15.jpg)
![Page 16: C Cross Compile for Linkit Smart 7688](https://reader034.vdocuments.mx/reader034/viewer/2022052217/5878359a1a28abef5d8b7629/html5/thumbnails/16.jpg)
Add Kit
![Page 17: C Cross Compile for Linkit Smart 7688](https://reader034.vdocuments.mx/reader034/viewer/2022052217/5878359a1a28abef5d8b7629/html5/thumbnails/17.jpg)
![Page 18: C Cross Compile for Linkit Smart 7688](https://reader034.vdocuments.mx/reader034/viewer/2022052217/5878359a1a28abef5d8b7629/html5/thumbnails/18.jpg)
Build Settings -Build
![Page 19: C Cross Compile for Linkit Smart 7688](https://reader034.vdocuments.mx/reader034/viewer/2022052217/5878359a1a28abef5d8b7629/html5/thumbnails/19.jpg)
Clear Build Settings
![Page 20: C Cross Compile for Linkit Smart 7688](https://reader034.vdocuments.mx/reader034/viewer/2022052217/5878359a1a28abef5d8b7629/html5/thumbnails/20.jpg)
![Page 21: C Cross Compile for Linkit Smart 7688](https://reader034.vdocuments.mx/reader034/viewer/2022052217/5878359a1a28abef5d8b7629/html5/thumbnails/21.jpg)
![Page 22: C Cross Compile for Linkit Smart 7688](https://reader034.vdocuments.mx/reader034/viewer/2022052217/5878359a1a28abef5d8b7629/html5/thumbnails/22.jpg)
Build Settings - Run
![Page 23: C Cross Compile for Linkit Smart 7688](https://reader034.vdocuments.mx/reader034/viewer/2022052217/5878359a1a28abef5d8b7629/html5/thumbnails/23.jpg)
![Page 24: C Cross Compile for Linkit Smart 7688](https://reader034.vdocuments.mx/reader034/viewer/2022052217/5878359a1a28abef5d8b7629/html5/thumbnails/24.jpg)
![Page 25: C Cross Compile for Linkit Smart 7688](https://reader034.vdocuments.mx/reader034/viewer/2022052217/5878359a1a28abef5d8b7629/html5/thumbnails/25.jpg)
![Page 26: C Cross Compile for Linkit Smart 7688](https://reader034.vdocuments.mx/reader034/viewer/2022052217/5878359a1a28abef5d8b7629/html5/thumbnails/26.jpg)