ESP32 - Azure SDK compiling error
ESP32 - Azure SDK compiling error
this requires adding azure sdk and i added it to components. during compling it is showing this error.
---------------------------------------------------------
[683/1106] cmd.exe /C "cd /D C:\OLF\Development\Firmware\OLFirmware-ESP32-LTE-DLC\build\bootloader && C:\OLF\Development\Firmware\ESP-IDF\.espressif\tools\cmake\3.13.4\bin\cmake.exe -DSDKCONFIG=C:/OLF/Development/Firmware/OLFirmware-ESP32-LTE-DLC/sdkconfig -DIDF_PATH=C:/OLF/Development/Firmware/ESP-IDF/esp-idf_4 -DIDF_TARGET=esp32 -DPYTHON=python -DPYTHON_DEPS_CHECKED=1 -DEXTRA_COMPONENT_DIRS=C:/OLF/Development/Firmware/ESP-IDF/esp-idf_4/components/bootloader -DLEGACY_INCLUDE_COMMON_HEADERS=y --warn-uninitialized -GNinja C:/OLF/Development/Firmware/ESP-IDF/esp-idf_4/components/bootloader/subproject && C:\OLF\Development\Firmware\ESP-IDF\.espressif\tools\cmake\3.13.4\bin\cmake.exe -E touch C:/OLF/Development/Firmware/OLFirmware-ESP32-LTE-DLC/build/bootloader-prefix/src/bootloader-stamp/bootloader-configure"
FAILED: bootloader-prefix/src/bootloader-stamp/bootloader-configure
cmd.exe /C "cd /D C:\OLF\Development\Firmware\OLFirmware-ESP32-LTE-DLC\build\bootloader && C:\OLF\Development\Firmware\ESP-IDF\.espressif\tools\cmake\3.13.4\bin\cmake.exe -DSDKCONFIG=C:/OLF/Development/Firmware/OLFirmware-ESP32-LTE-DLC/sdkconfig -DIDF_PATH=C:/OLF/Development/Firmware/ESP-IDF/esp-idf_4 -DIDF_TARGET=esp32 -DPYTHON=python -DPYTHON_DEPS_CHECKED=1 -DEXTRA_COMPONENT_DIRS=C:/OLF/Development/Firmware/ESP-IDF/esp-idf_4/components/bootloader -DLEGACY_INCLUDE_COMMON_HEADERS=y --warn-uninitialized -GNinja C:/OLF/Development/Firmware/ESP-IDF/esp-idf_4/components/bootloader/subproject && C:\OLF\Development\Firmware\ESP-IDF\.espressif\tools\cmake\3.13.4\bin\cmake.exe -E touch C:/OLF/Development/Firmware/OLFirmware-ESP32-LTE-DLC/build/bootloader-prefix/src/bootloader-stamp/bootloader-configure"
Warn about uninitialized values.
-- mconf-idf version mconf-v4.6.0.0-idf-20190628-win32
-- Project version: v4.0.1-dirty
-- Building ESP-IDF components for target esp32
CMake Error at C:/OLF/Development/Firmware/ESP-IDF/esp-idf_4/tools/cmake/component.cmake:222 (message):
CMake Error at
C:/OLF/Development/Firmware/ESP-IDF/esp-idf_4/components/azure-iot-sdk-c/CMakeLists.txt:5
(project):
project command is not scriptable
Call Stack (most recent call first):
C:/OLF/Development/Firmware/ESP-IDF/esp-idf_4/tools/cmake/scripts/component_get_requirements.cmake:60 (include)
C:/OLF/Development/Firmware/ESP-IDF/esp-idf_4/tools/cmake/scripts/component_get_requirements.cmake:76 (__component_get_requirements)
Call Stack (most recent call first):
C:/OLF/Development/Firmware/ESP-IDF/esp-idf_4/tools/cmake/build.cmake:404 (__component_get_requirements)
C:/OLF/Development/Firmware/ESP-IDF/esp-idf_4/tools/cmake/project.cmake:348 (idf_build_process)
CMakeLists.txt:27 (project)
-- Configuring incomplete, errors occurred!
See also "C:/OLF/Development/Firmware/OLFirmware-ESP32-LTE-DLC/build/bootloader/CMakeFiles/CMakeOutput.log".
-
- Posts: 307
- Joined: Wed Feb 20, 2019 7:02 am
Re: ESP32 - Azure SDK compiling error
Hi Sumesh,
Instead of trying to copy esp-azure to esp-idf/components, you can just add the esp-azure path to your CMakeLists.txt file. There could be issues with how path is managed in Windows, so the easiest way I found is to add the path to an environment variable, like
$ export AZURE_PATH=C:\path\to\esp-azure\port
And then, in the project's CMakeLists.txt, add
set (EXTRA_COMPONENT_DIRS "$ENV{AZURE_PATH}")
Regards,
Piyush
Instead of trying to copy esp-azure to esp-idf/components, you can just add the esp-azure path to your CMakeLists.txt file. There could be issues with how path is managed in Windows, so the easiest way I found is to add the path to an environment variable, like
$ export AZURE_PATH=C:\path\to\esp-azure\port
And then, in the project's CMakeLists.txt, add
set (EXTRA_COMPONENT_DIRS "$ENV{AZURE_PATH}")
Regards,
Piyush
Who is online
Users browsing this forum: No registered users and 145 guests