git clone https://github.com/industio/ido-sbc2d06-sdk.git
使用以下方法安装:
# cd ido-sbc2d06-sdk/toolchain
# ./install_toolchain.sh
# source ~/.bashrc //使配置的环境生效
# which arm-linux-gnueabihf-gcc
如果是通过百度网盘下载的,可以去官网资料查看,原理是一样的。
# sudo apt-get install libncurses5-dev libncursesw5-dev
# sudo apt-get install lib32z1
# sudo apt-get install lsb-core
# sudo apt-get install libc6-dev-i386
# sudo apt-get install lib32z1
# sudo apt-get install libuuid1:i386
# sudo apt-get install cmake
# sudo apt install bc
# sudo apt-get install xz-utils
# sudo apt-get install automake
# sudo apt-get install libtool
# sudo apt-get install libevdev-dev
# sudo apt-get install pkg-config
#安装ssh,方便调试
sudo apt-get install openssh-server
#安装xz压缩工具
sudo apt-get install xz-utils
#安装 python
sudo apt-get install python
#安装 git
sudo apt-get install git
#安装 make
sudo apt-get install make
#安装 gcc
sudo apt-get install gcc
#安装 g++
sudo apt-get install g++
arm-linux-gnueabihf-gcc HelloWorld.c -o HelloWorld -lpthread
然后将HelloWorld复制到开发板中,我这里是SSH。
更多回帖