Debian下使用传感器套件之环境和工具配置
时间:10-02
整理:3721RD
点击:
要想在Dragonboard 410c开发板的Debian系统下使用Grove传感器套件,我们需要搭建所需环境和安装所需工具
首先安装所需的依赖包
首先安装所需的依赖包
- sudo apt-get install arduino-mk arduino git build-essential autoconf libtool
- swig3.0 python-dev nodejs-dev cmake pkg-config libpcre3-dev
- sudo apt-get clean
- git clone https ://github.com/intel-iot-devkit/mraa
- cd mraa
- mkdir build
- cd build
- cmake ..
- make
- sudo make install
- sudo ldconfig /usr/local/lib/
- sudo ln -s /usr/bin/swig3.0 /usr/bin/swig
- git clone https :// github. com/ intel- iot- devkit/upm
- cd upm
- mkdir build
- cd build
- cmake -DBUILDSWIGNODE=OFF ..
- make
- sudo make install
- sudo ldconfig /usr/local/lib/libupm-*
- sudo adduser linaro i2c
- git clone https://github.com/96boards/96boards-tools
- sudo cp 96boards-tools/70-96boards-common.rules /etc/udev/rules.d
- sudo cp /etc/profile.d/96boards-sensors
- sudo reboot