打印
[嵌入式linux]

ubuntu 18.04 开发ESP8266 编译提示make:python:command not found

[复制链接]
3109|2
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
yijianshechuan|  楼主 | 2018-5-22 16:34 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
小弟新手,在vmware 下 安装了ubuntu 18.04 最新版本,安装了xtensa编译器 能通过-v 查看xtensa 版本  gcc version 4.8.2(crosstool NG..)
make 版本 gun make 4.1
python 版本(虽然不知道为啥报ptthon的错关它什么事~~) python 3.6.5
编译截图过程如下,烦请过路大神指点迷津!!
czp@ubuntu:/mnt/hgfs/share/ESP8266_NONOS_SDK-2.2.0/ESP8266_NONOS_SDK-2.2.0/IoT_Demo$ ./gen_misc.sh
gen_misc.sh version 20150511

Please follow below steps(1-5) to generate specific bin(s):
STEP 1: choose boot version(0=boot_v1.1, 1=boot_v1.2+, 2=none)
enter(0/1/2, default 2):
0
boot mode: old

STEP 2: choose bin generate(0=eagle.flash.bin+eagle.irom0text.bin, 1=user1.bin, 2=user2.bin)
enter (0/1/2, default 0):
0
ignore boot
generate bin: eagle.flash.bin+eagle.irom0text.bin

STEP 3: choose spi speed(0=20MHz, 1=26.7MHz, 2=40MHz, 3=80MHz)
enter (0/1/2/3, default 2):
0
spi speed: 20 MHz

STEP 4: choose spi mode(0=QIO, 1=QOUT, 2=DIO, 3=DOUT)
enter (0/1/2/3, default 0):
0
spi mode: QIO

STEP 5: choose spi size and map
    0= 512KB( 256KB+ 256KB)
    2=1024KB( 512KB+ 512KB)
    3=2048KB( 512KB+ 512KB)
    4=4096KB( 512KB+ 512KB)
    5=2048KB(1024KB+1024KB)
    6=4096KB(1024KB+1024KB)
    7=4096KB(2048KB+2048KB) not support ,just for compatible with nodeMCU board
    8=8192KB(1024KB+1024KB)
    9=16384KB(1024KB+1024KB)
enter (0/2/3/4/5/6/7/8/9, default 0):
0
spi size: 512KB
spi ota map:  256KB + 256KB

start...

make[1]: Entering directory '/mnt/hgfs/share/ESP8266_NONOS_SDK-2.2.0/ESP8266_NONOS_SDK-2.2.0/IoT_Demo/user'
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -fno-builtin-printf -DICACHE_FLASH -I include -I ./ -I ../../include/ets -I ../include -I ../../include -I ../../include/eagle -I ../../driver_lib/include user_main.c
xtensa-lx106-elf-gcc -Os -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -fno-builtin-printf  -DICACHE_FLASH   -I include -I ./ -I ../../include/ets -I ../include -I ../../include -I ../../include/eagle -I ../../driver_lib/include  -o .output/eagle/debug/obj/user_main.o -c user_main.c
xtensa-lx106-elf-ar ru .output/eagle/debug/lib/libuser.a .output/eagle/debug/obj/user_main.o
make[1]: Leaving directory '/mnt/hgfs/share/ESP8266_NONOS_SDK-2.2.0/ESP8266_NONOS_SDK-2.2.0/IoT_Demo/user'
make[1]: Entering directory '/mnt/hgfs/share/ESP8266_NONOS_SDK-2.2.0/ESP8266_NONOS_SDK-2.2.0/IoT_Demo/driver'
make[1]: Leaving directory '/mnt/hgfs/share/ESP8266_NONOS_SDK-2.2.0/ESP8266_NONOS_SDK-2.2.0/IoT_Demo/driver'
xtensa-lx106-elf-gcc  -L../lib -nostdlib -T../ld/eagle.app.v6.ld -Wl,--no-check-sections -Wl,--gc-sections -u call_user_start -Wl,-static -Wl,--start-group -lc -lgcc -lhal -lphy -lpp -lnet80211 -llwip -lwpa -lcrypto -lmain -ljson -lupgrade -lssl -lpwm -lsmartconfig user/.output/eagle/debug/lib/libuser.a driver/.output/eagle/debug/lib/libdriver.a -Wl,--end-group -o .output/eagle/debug/image/eagle.app.v6.out

!!!
make: python: Command not found?????
../Makefile:257: recipe for target '.output/eagle/debug/bin/eagle.app.v6.bin' failed
make: *** [.output/eagle/debug/bin/eagle.app.v6.bin] Error 127
czp@ubuntu:/mnt/hgfs/share/ESP8266_NONOS_SDK-2.2.0/ESP8266_NONOS_SDK-2.2.0/IoT_Demo$


相关帖子

沙发
6665| | 2018-8-25 10:22 | 只看该作者
楼主找到解决方法了吗,我也是这样报错的

使用特权

评论回复
板凳
夜中行舟| | 2019-1-2 23:37 | 只看该作者
下载python

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

12

主题

26

帖子

1

粉丝