espressif / esp-mdf

Espressif Mesh Development Framework, limited maintain, recommend to use https://github.com/espressif/esp-mesh-lite
Other
774 stars 253 forks source link

Windows toolchain problem #85

Open zilizii opened 5 years ago

zilizii commented 5 years ago

Hello,

I installed the ESP-IDF and the ESP-MDF packages as well. Based on the instuctions the ESP-IDF examples seems worked. The ESP-MDF seems not.

I got the following error after the idf.py build command:

C:\Users\Dell\esp\esp-mdf\examples\get-started>idf.py build Note: You are using Python 3.7.3. Python 3 support is new, please report any problems you encounter. Search for 'Setting the Python Interpreter' in the ESP-IDF docs if you want to use Python 2.7. Checking Python dependencies... Python requirements from C:\Users\Dell\esp\esp-idf\requirements.txt are satisfied. Running ninja in directory C:\Users\Dell\esp\esp-mdf\examples\get-started\build Executing "ninja all"... [0/1] Re-running CMake... -- Building empty aws_iot component due to configuration -- Building empty aliyun iot sdk component due to configuration -- Building empty aws_iot component due to configuration -- Component names: soc log heap xtensa-debug-module app_trace freertos vfs newlib esp_ringbuf driver esp_event ethernet lwip tcpip_adapter partition_table app_update spi_flash mbedtls micro-ecc bootloader_support nvs_flash pthread smartconfig_ack wpa_supplicant esp32 cxx nghttp esp-tls tcp_transport esp_http_client json mcommon bt mespnow miniz mwifi mconfig console mdns esp_http_server mupgrade mlink main esp-aliyun maliyun_linkkit wear_levelling sdmmc fatfs mdebug asio jsmn aws_iot bootloader coap esp_adc_cal esp_https_ota esptool_py expat freemodbus idf_test libsodium mqtt openssl protobuf-c protocomm spiffs ulp wifi_provisioning -- Component paths: C:/Users/Dell/esp/esp-mdf/esp-idf/components/soc;C:/Users/Dell/esp/esp-mdf/esp-idf/components/log;C:/Users/Dell/esp/esp-mdf/esp-idf/components/heap;C:/Users/Dell/esp/esp-mdf/esp-idf/components/xtensa-debug-module;C:/Users/Dell/esp/esp-mdf/esp-idf/components/app_trace;C:/Users/Dell/esp/esp-mdf/esp-idf/components/freertos;C:/Users/Dell/esp/esp-mdf/esp-idf/components/vfs;C:/Users/Dell/esp/esp-mdf/esp-idf/components/newlib;C:/Users/Dell/esp/esp-mdf/esp-idf/components/esp_ringbuf;C:/Users/Dell/esp/esp-mdf/esp-idf/components/driver;C:/Users/Dell/esp/esp-mdf/esp-idf/components/esp_event;C:/Users/Dell/esp/esp-mdf/esp-idf/components/ethernet;C:/Users/Dell/esp/esp-mdf/esp-idf/components/lwip;C:/Users/Dell/esp/esp-mdf/esp-idf/components/tcpip_adapter;C:/Users/Dell/esp/esp-mdf/esp-idf/components/partition_table;C:/Users/Dell/esp/esp-mdf/esp-idf/components/app_update;C:/Users/Dell/esp/esp-mdf/esp-idf/components/spi_flash;C:/Users/Dell/esp/esp-mdf/esp-idf/components/mbedtls;C:/Users/Dell/esp/esp-mdf/esp-idf/components/micro-ecc;C:/Users/Dell/esp/esp-mdf/esp-idf/components/bootloader_support;C:/Users/Dell/esp/esp-mdf/esp-idf/components/nvs_flash;C:/Users/Dell/esp/esp-mdf/esp-idf/components/pthread;C:/Users/Dell/esp/esp-mdf/esp-idf/components/smartconfig_ack;C:/Users/Dell/esp/esp-mdf/esp-idf/components/wpa_supplicant;C:/Users/Dell/esp/esp-mdf/esp-idf/components/esp32;C:/Users/Dell/esp/esp-mdf/esp-idf/components/cxx;C:/Users/Dell/esp/esp-mdf/esp-idf/components/nghttp;C:/Users/Dell/esp/esp-mdf/esp-idf/components/esp-tls;C:/Users/Dell/esp/esp-mdf/esp-idf/components/tcp_transport;C:/Users/Dell/esp/esp-mdf/esp-idf/components/esp_http_client;C:/Users/Dell/esp/esp-mdf/esp-idf/components/json;C:/Users/Dell/esp/esp-mdf/components/mcommon;C:/Users/Dell/esp/esp-mdf/esp-idf/components/bt;C:/Users/Dell/esp/esp-mdf/components/mespnow;C:/Users/Dell/esp/esp-mdf/components/third_party/miniz;C:/Users/Dell/esp/esp-mdf/components/mwifi;C:/Users/Dell/esp/esp-mdf/components/mconfig;C:/Users/Dell/esp/esp-mdf/esp-idf/components/console;C:/Users/Dell/esp/esp-mdf/esp-idf/components/mdns;C:/Users/Dell/esp/esp-mdf/esp-idf/components/esp_http_server;C:/Users/Dell/esp/esp-mdf/components/mupgrade;C:/Users/Dell/esp/esp-mdf/components/mlink;C:/Users/Dell/esp/esp-mdf/examples/get-started/main;C:/Users/Dell/esp/esp-mdf/components/third_party/esp-aliyun;C:/Users/Dell/esp/esp-mdf/components/maliyun_linkkit;C:/Users/Dell/esp/esp-mdf/esp-idf/components/wear_levelling;C:/Users/Dell/esp/esp-mdf/esp-idf/components/sdmmc;C:/Users/Dell/esp/esp-mdf/esp-idf/components/fatfs;C:/Users/Dell/esp/esp-mdf/components/mdebug;C:/Users/Dell/esp/esp-mdf/esp-idf/components/asio;C:/Users/Dell/esp/esp-mdf/esp-idf/components/jsmn;C:/Users/Dell/esp/esp-mdf/esp-idf/components/aws_iot;C:/Users/Dell/esp/esp-mdf/esp-idf/components/bootloader;C:/Users/Dell/esp/esp-mdf/esp-idf/components/coap;C:/Users/Dell/esp/esp-mdf/esp-idf/components/esp_adc_cal;C:/Users/Dell/esp/esp-mdf/esp-idf/components/esp_https_ota;C:/Users/Dell/esp/esp-mdf/esp-idf/components/esptool_py;C:/Users/Dell/esp/esp-mdf/esp-idf/components/expat;C:/Users/Dell/esp/esp-mdf/esp-idf/components/freemodbus;C:/Users/Dell/esp/esp-mdf/esp-idf/components/idf_test;C:/Users/Dell/esp/esp-mdf/esp-idf/components/libsodium;C:/Users/Dell/esp/esp-mdf/esp-idf/components/mqtt;C:/Users/Dell/esp/esp-mdf/esp-idf/components/openssl;C:/Users/Dell/esp/esp-mdf/esp-idf/components/protobuf-c;C:/Users/Dell/esp/esp-mdf/esp-idf/components/protocomm;C:/Users/Dell/esp/esp-mdf/esp-idf/components/spiffs;C:/Users/Dell/esp/esp-mdf/esp-idf/components/ulp;C:/Users/Dell/esp/esp-mdf/esp-idf/components/wifi_provisioning -- ccache will be used for faster builds -- Adding linker script C:/Users/Dell/esp/esp-mdf/examples/get-started/build/esp32/esp32_out.ld -- Adding linker script C:/Users/Dell/esp/esp-mdf/esp-idf/components/esp32/ld/esp32.common.ld -- Adding linker script C:/Users/Dell/esp/esp-mdf/esp-idf/components/esp32/ld/esp32.rom.ld -- Adding linker script C:/Users/Dell/esp/esp-mdf/esp-idf/components/esp32/ld/esp32.peripherals.ld -- Adding linker script C:/Users/Dell/esp/esp-mdf/esp-idf/components/esp32/ld/esp32.rom.libgcc.ld -- Adding linker script C:/Users/Dell/esp/esp-mdf/esp-idf/components/esp32/ld/esp32.rom.spiram_incompatible_fns.ld -- Building empty aliyun iot sdk component due to configuration -- Building empty aws_iot component due to configuration -- Building empty aws_iot component due to configuration -- Component libraries: soc;log;heap;xtensa-debug-module;app_trace;freertos;vfs;newlib;esp_ringbuf;driver;esp_event;ethernet;lwip;tcpip_adapter;app_update;spi_flash;mbedtls;micro-ecc;bootloader_support;nvs_flash;pthread;smartconfig_ack;wpa_supplicant;esp32;cxx;nghttp;esp-tls;tcp_transport;esp_http_client;json;mcommon;bt;mespnow;miniz;mwifi;mconfig;console;mdns;esp_http_server;mupgrade;mlink;main;esp-aliyun;maliyun_linkkit;wear_levelling;sdmmc;fatfs;mdebug;asio;jsmn;aws_iot;coap;esp_adc_cal;esp_https_ota;expat;freemodbus;idf_test;libsodium;mqtt;openssl;protobuf-c;protocomm;spiffs;ulp;wifi_provisioning -- Configuring done -- Generating done -- Build files have been written to: C:/Users/Dell/esp/esp-mdf/examples/get-started/build [200/772] Performing configure step for 'bootloader' FAILED: bootloader-prefix/src/bootloader-stamp/bootloader-configure cmd.exe /C "cd /D C:\Users\Dell\esp\esp-mdf\examples\get-started\build\bootloader && C:\Users\Dell.espressif\tools\cmake\3.13.4\bin\cmake.exe -DSDKCONFIG=C:/Users/Dell/esp/esp-mdf/examples/get-started/sdkconfig -DIDF_PATH=C:/Users/Dell/esp/esp-mdf/esp-idf -DEXTRA_COMPONENT_DIRS=C:/Users/Dell/esp/esp-mdf/esp-idf/components/bootloader -GNinja C:/Users/Dell/esp/esp-mdf/esp-idf/components/bootloader/subproject && C:\Users\Dell.espressif\tools\cmake\3.13.4\bin\cmake.exe -E touch C:/Users/Dell/esp/esp-mdf/examples/get-started/build/bootloader-prefix/src/bootloader-stamp/bootloader-configure" -- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.14.1.windows.1") -- IDF_TARGET not set, using default target: esp32 -- Building for target esp32 CMake Error at C:/Users/Dell/esp/esp-mdf/esp-idf/tools/cmake/project.cmake:57 (idf_set_global_variables): Unknown CMake command "idf_set_global_variables". Call Stack (most recent call first): CMakeLists.txt:20 (project)

-- Configuring incomplete, errors occurred! [205/772] Building C object spi_flash/CMakeFiles/spi_flash.dir/flash_ops.c.obj ninja: build stopped: subcommand failed. ninja failed with exit code 1

I set the MDF_PATH as variable and I add also the Path : %MDF_PATH%\esp-idf\tools\

Sorry this is my first trial, I used the IDF in past in many of my projects, I just would like to try the MESH as well....

EspHuifeng commented 5 years ago

You can try to export the MDF_PATH and PATH environment variables in cmd manually instead of the configuration file. Usually this problem is caused by an environment variable setting error if you clone the esp-mdf repository correctly. Please create a pure environment (only contain the system environment variable) if you try again.