How to build the esp32 azure iot kit example?

didiercoyman
Posts: 1
Joined: Fri Aug 07, 2020 6:28 am

How to build the esp32 azure iot kit example?

Postby didiercoyman » Fri Aug 07, 2020 7:02 am

Hi, I am new to IDF and struggle to build the azure iot kit example on Windows 10.
I have installed the IDF 4.0.1 as per the documentation and were able to build the "hello world" example.
I have tried to follow the instruction in https://github.com/espressif/esp-iot-so ... ample-make but without success, I get a compilation error as followed (I have attached the CMakeOutput log as well). Any advise?

Checking Python dependencies...
Python requirements from C:\Users\didie\Desktop\esp-idf\requirements.txt are satisfied.
Executing action: all (aliases: build)
Running cmake in directory c:\users\didie\desktop\esp-idf\examples\esp-iot-solution\examples\esp32_azure_iot_kit\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 --warn-uninitialized -DWARN_UNINITIALIZED=1 -DCCACHE_ENABLE=1 c:\users\didie\desktop\esp-idf\examples\esp-iot-solution\examples\esp32_azure_iot_kit"...
Warn about uninitialized values.
CMake Warning (dev) at CMakeLists.txt:6 (set):
uninitialized variable 'IOT_SOLUTION_PATH'
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:10 (get_filename_component):
uninitialized variable 'PROJECT_PATH'
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Error at CMakeLists.txt:15 (include):
include could not find load file:

//CMakeLists.txt


-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.28.0.windows.1")
-- mconf-idf version mconf-v4.6.0.0-idf-20190628-win32
-- IDF_TARGET not set, using default target: esp32
-- ccache will be used for faster recompilation
-- The C compiler identification is GNU 8.2.0
-- The CXX compiler identification is GNU 8.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/didie/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/Users/didie/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/Users/didie/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Users/didie/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe
-- Check for working CXX compiler: C:/Users/didie/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Project version: 40cec13
-- Building ESP-IDF components for target esp32
-- Found PythonInterp: C:/Users/didie/.espressif/python_env/idf4.0_py3.8_env/Scripts/python.exe (found version "3.8.5")
-- Could NOT find Perl (missing: PERL_EXECUTABLE)
-- Adding linker script C:/Users/didie/Desktop/esp-idf/examples/esp-iot-solution/examples/esp32_azure_iot_kit/build/esp-idf/esp32/esp32_out.ld
-- Adding linker script C:/Users/didie/Desktop/esp-idf/components/esp32/ld/esp32.project.ld.in
-- Adding linker script C:/Users/didie/Desktop/esp-idf/components/esp32/ld/esp32.peripherals.ld
-- Adding linker script C:/Users/didie/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script C:/Users/didie/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script C:/Users/didie/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script C:/Users/didie/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script C:/Users/didie/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Components: app_trace app_update asio bootloader bootloader_support bt coap console cxx driver efuse esp-tls esp32 esp_adc_cal esp_common esp_eth esp_event esp_gdbstub esp_http_client esp_http_server esp_https_ota esp_https_server esp_local_ctrl esp_ringbuf esp_rom esp_websocket_client esp_wifi espcoredump esptool_py expat fatfs freemodbus freertos heap idf_test jsmn json libsodium log lwip main mbedtls mdns mqtt newlib nghttp nvs_flash openssl partition_table protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter ulp unity vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: C:/Users/didie/Desktop/esp-idf/components/app_trace C:/Users/didie/Desktop/esp-idf/components/app_update C:/Users/didie/Desktop/esp-idf/components/asio C:/Users/didie/Desktop/esp-idf/components/bootloader C:/Users/didie/Desktop/esp-idf/components/bootloader_support C:/Users/didie/Desktop/esp-idf/components/bt C:/Users/didie/Desktop/esp-idf/components/coap C:/Users/didie/Desktop/esp-idf/components/console C:/Users/didie/Desktop/esp-idf/components/cxx C:/Users/didie/Desktop/esp-idf/components/driver C:/Users/didie/Desktop/esp-idf/components/efuse C:/Users/didie/Desktop/esp-idf/components/esp-tls C:/Users/didie/Desktop/esp-idf/components/esp32 C:/Users/didie/Desktop/esp-idf/components/esp_adc_cal C:/Users/didie/Desktop/esp-idf/components/esp_common C:/Users/didie/Desktop/esp-idf/components/esp_eth C:/Users/didie/Desktop/esp-idf/components/esp_event C:/Users/didie/Desktop/esp-idf/components/esp_gdbstub C:/Users/didie/Desktop/esp-idf/components/esp_http_client C:/Users/didie/Desktop/esp-idf/components/esp_http_server C:/Users/didie/Desktop/esp-idf/components/esp_https_ota C:/Users/didie/Desktop/esp-idf/components/esp_https_server C:/Users/didie/Desktop/esp-idf/components/esp_local_ctrl C:/Users/didie/Desktop/esp-idf/components/esp_ringbuf C:/Users/didie/Desktop/esp-idf/components/esp_rom C:/Users/didie/Desktop/esp-idf/components/esp_websocket_client C:/Users/didie/Desktop/esp-idf/components/esp_wifi C:/Users/didie/Desktop/esp-idf/components/espcoredump C:/Users/didie/Desktop/esp-idf/components/esptool_py C:/Users/didie/Desktop/esp-idf/components/expat C:/Users/didie/Desktop/esp-idf/components/fatfs C:/Users/didie/Desktop/esp-idf/components/freemodbus C:/Users/didie/Desktop/esp-idf/components/freertos C:/Users/didie/Desktop/esp-idf/components/heap C:/Users/didie/Desktop/esp-idf/components/idf_test C:/Users/didie/Desktop/esp-idf/components/jsmn C:/Users/didie/Desktop/esp-idf/components/json C:/Users/didie/Desktop/esp-idf/components/libsodium C:/Users/didie/Desktop/esp-idf/components/log C:/Users/didie/Desktop/esp-idf/components/lwip C:/Users/didie/Desktop/esp-idf/examples/esp-iot-solution/examples/esp32_azure_iot_kit/main C:/Users/didie/Desktop/esp-idf/components/mbedtls C:/Users/didie/Desktop/esp-idf/components/mdns C:/Users/didie/Desktop/esp-idf/components/mqtt C:/Users/didie/Desktop/esp-idf/components/newlib C:/Users/didie/Desktop/esp-idf/components/nghttp C:/Users/didie/Desktop/esp-idf/components/nvs_flash C:/Users/didie/Desktop/esp-idf/components/openssl C:/Users/didie/Desktop/esp-idf/components/partition_table C:/Users/didie/Desktop/esp-idf/components/protobuf-c C:/Users/didie/Desktop/esp-idf/components/protocomm C:/Users/didie/Desktop/esp-idf/components/pthread C:/Users/didie/Desktop/esp-idf/components/sdmmc C:/Users/didie/Desktop/esp-idf/components/soc C:/Users/didie/Desktop/esp-idf/components/spi_flash C:/Users/didie/Desktop/esp-idf/components/spiffs C:/Users/didie/Desktop/esp-idf/components/tcp_transport C:/Users/didie/Desktop/esp-idf/components/tcpip_adapter C:/Users/didie/Desktop/esp-idf/components/ulp C:/Users/didie/Desktop/esp-idf/components/unity C:/Users/didie/Desktop/esp-idf/components/vfs C:/Users/didie/Desktop/esp-idf/components/wear_levelling C:/Users/didie/Desktop/esp-idf/components/wifi_provisioning C:/Users/didie/Desktop/esp-idf/components/wpa_supplicant C:/Users/didie/Desktop/esp-idf/components/xtensa
-- Configuring incomplete, errors occurred!
See also "C:/Users/didie/Desktop/esp-idf/examples/esp-iot-solution/examples/esp32_azure_iot_kit/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1
Attachments
CMakeOutput.log
(46.64 KiB) Downloaded 36 times

Who is online

Users browsing this forum: No registered users and 3 guests