1.首先安装一个linux。本人使用linuxmint18
然后输入 sudo apt-get install build-essential 安装基本编译库。
然后输入 sudo apt-get install git 安装git
2.到这个https://github.com/pfalcon/esp-open-sdk/ 去逛一圈。如果你懒得逛
直接输入git clone --recursive https://github.com/pfalcon/esp-open-sdk.git
3.到这个https://github.com/SuperHouse/esp-open-rtos 去逛一圈,如果你懒得逛
直接输入git clone --recursive https://github.com/Superhouse/esp-open-rtos.git
话说你都用人家源码了 ,不去逛逛说不过去吧。
4.都git回来以后。按照sdk官网上的继续输入
sudo apt-get install make unrar-free autoconf automake libtool gcc g++ gperf \
flex bison texinfo gawk ncurses-dev libexpat-dev python-dev python python-serial \
sed git unzip bash help2man wget bzip2
sudo apt-get install libtool-bin
5.在esp-open-sdk目录下,命令行输入
make toolchain esptool libhal STANDALONE=n
然后等待。大约1小时?
6.修改path环境变量
sudo gedit /etc/profile
最后一行输入。
export PATH=/home/mmc/Desktop/esp-open-sdk/xtensa-lx106-elf/bin:$PATH
此处路径以你的实际项目路径为准。我反正是放桌面。
改完保存 执行
source /etc/profile
然后重启linux。。为了保险。
7.在esp-open-rtos/include目录下新建private_ssid_config.h文件
输入你的wifi账号密码 比如
#define WIFI_SSID "mywifissid"
#define WIFI_PASS "my secret password"
保存退出。
8.如何编译.下面以mqtt_client为例进行说明
编译方法1,在esp-open-rtos根目录下,执行
make -C examples/mqtt_client/
编译方法2,进入到examples/mqtt_client目录下,直接执行
make
更多资料 请参看http://blog.csdn.net/ydogg/article/details/75194902
然后输入 sudo apt-get install build-essential 安装基本编译库。
然后输入 sudo apt-get install git 安装git
2.到这个https://github.com/pfalcon/esp-open-sdk/ 去逛一圈。如果你懒得逛
直接输入git clone --recursive https://github.com/pfalcon/esp-open-sdk.git
3.到这个https://github.com/SuperHouse/esp-open-rtos 去逛一圈,如果你懒得逛
直接输入git clone --recursive https://github.com/Superhouse/esp-open-rtos.git
话说你都用人家源码了 ,不去逛逛说不过去吧。
4.都git回来以后。按照sdk官网上的继续输入
sudo apt-get install make unrar-free autoconf automake libtool gcc g++ gperf \
flex bison texinfo gawk ncurses-dev libexpat-dev python-dev python python-serial \
sed git unzip bash help2man wget bzip2
sudo apt-get install libtool-bin
5.在esp-open-sdk目录下,命令行输入
make toolchain esptool libhal STANDALONE=n
然后等待。大约1小时?
6.修改path环境变量
sudo gedit /etc/profile
最后一行输入。
export PATH=/home/mmc/Desktop/esp-open-sdk/xtensa-lx106-elf/bin:$PATH
此处路径以你的实际项目路径为准。我反正是放桌面。
改完保存 执行
source /etc/profile
然后重启linux。。为了保险。
7.在esp-open-rtos/include目录下新建private_ssid_config.h文件
输入你的wifi账号密码 比如
#define WIFI_SSID "mywifissid"
#define WIFI_PASS "my secret password"
保存退出。
8.如何编译.下面以mqtt_client为例进行说明
编译方法1,在esp-open-rtos根目录下,执行
make -C examples/mqtt_client/
编译方法2,进入到examples/mqtt_client目录下,直接执行
make
更多资料 请参看http://blog.csdn.net/ydogg/article/details/75194902