Page 1 of 1

esp32 build problem (not found python)

Posted: Sun Jan 07, 2018 9:06 am
by Dougl Wang
Hi,guys:
i follow the guide step by step ,but when i excute "make all" ,wrong rise up,I can't find a way to make it.
i use windows10_64bit .



$ make all
E:/msys32/home/46071/esp32/esp-idf/make/project.mk:56: esp-idf build system only supports MSYS2 in "MINGW32" mode. Consult the ESP-IDF documentation for details.
/home/46071/esp32/esp-idf/make/project.mk:56: esp-idf build system only supports MSYS2 in "MINGW32" mode. Consult the ESP-IDF documentation for details.
CC build/bootloader/bootloader_support/src/bootloader_random.o
CC build/bootloader/bootloader_support/src/flash_encrypt.o
CC build/bootloader/bootloader_support/src/bootloader_sha.o
CC build/bootloader/bootloader_support/src/esp_image_format.o
CC build/bootloader/bootloader_support/src/flash_partitions.o
CC build/bootloader/bootloader_support/src/secure_boot_signatures.o
CC build/bootloader/bootloader_support/src/bootloader_clock.o
CC build/bootloader/bootloader_support/src/secure_boot.o
CC build/bootloader/bootloader_support/src/efuse.o
CC build/bootloader/bootloader_support/src/bootloader_flash.o
AR build/bootloader/bootloader_support/libbootloader_support.a
CC build/bootloader/log/log.o
AR build/bootloader/log/liblog.a
CC build/bootloader/spi_flash/spi_flash_rom_patch.o
AR build/bootloader/spi_flash/libspi_flash.a
CC build/bootloader/micro-ecc/micro-ecc/uECC.o
AR build/bootloader/micro-ecc/libmicro-ecc.a
CC build/bootloader/soc/esp32/rtc_clk.o
CC build/bootloader/soc/esp32/rtc_time.o
CC build/bootloader/soc/esp32/rtc_sleep.o
CC build/bootloader/soc/esp32/rtc_init.o
CC build/bootloader/soc/esp32/soc_memory_layout.o
CC build/bootloader/soc/esp32/cpu_util.o
CC build/bootloader/soc/esp32/rtc_pm.o
AR build/bootloader/soc/libsoc.a
CC build/bootloader/main/flash_qio_mode.o
CC build/bootloader/main/bootloader_start.o
AR build/bootloader/main/libmain.a
LD build/bootloader/bootloader.elf
/bin/sh: python2: 未找到命令
make[1]: *** [/home/46071/esp32/esp-idf/components/esptool_py/Makefile.projbuild:51:/home/46071/esp32/esp-idf/examples/get-started/hello_world/build/bootloader/bootloader.bin] 错误 127
make: *** [/home/46071/esp32/esp-idf/components/bootloader/Makefile.projbuild:40:/home/46071/esp32/esp-idf/examples/get-started/hello_world/build/bootloader/bootloader.bin] 错误 2

Re: esp32 build problem (not found python)

Posted: Sun Jan 07, 2018 10:57 pm
by ESP_Angus
Hi Doug,
Dougl Wang wrote: $ make all
E:/msys32/home/46071/esp32/esp-idf/make/project.mk:56: esp-idf build system only supports MSYS2 in "MINGW32" mode. Consult the ESP-IDF documentation for details.
This warning suggests that the terminal shell you're running isn't "mingw32.exe" but maybe "msys2.exe" or something else. This is why the build system can't find Python. Load the terminal shell via mingw32.exe and it should work.