====================[ Build | flash | Debug ]===================================
/usr/local/bin/cmake --build /Users/vp/esp/Pebble_ESP32_Firmware/build --target flash
[0/2] Re-checking globbed directories...
[1/2] Re-running CMake...
-- Submodule update
-- Checking Python dependencies...
Python requirements from /Users/vp/esp/Pebble_ESP32_Firmware/amazon-freertos/vendors/espressif/esp-idf/requirements.txt are satisfied.
-- Building for target esp32
CMake Error at /Users/vp/esp/Pebble_ESP32_Firmware/amazon-freertos/vendors/espressif/esp-idf/tools/cmake/component_utils.cmake:20 (message):
Required component esp-tls is not found in any of the provided
COMPONENT_DIRS
Call Stack (most recent call first):
/Users/vp/esp/Pebble_ESP32_Firmware/amazon-freertos/vendors/espressif/esp-idf/tools/cmake/scripts/expand_requirements.cmake:95 (find_component_path)
/Users/vp/esp/Pebble_ESP32_Firmware/amazon-freertos/vendors/espressif/esp-idf/tools/cmake/scripts/expand_requirements.cmake:114 (expand_component_requirements)
/Users/vp/esp/Pebble_ESP32_Firmware/amazon-freertos/vendors/espressif/esp-idf/tools/cmake/scripts/expand_requirements.cmake:217 (expand_component_requirements)
CMake Error at amazon-freertos/vendors/espressif/esp-idf/tools/cmake/idf_functions.cmake:338 (message):
Failed to expand component requirements
Call Stack (most recent call first):
amazon-freertos/vendors/espressif/boards/esp32/CMakeLists.txt:437 (idf_import_components)
amazon-freertos/CMakeLists.txt:49 (include)
-- Configuring incomplete, errors occurred!
See also "/Users/vp/esp/Pebble_ESP32_Firmware/build/CMakeFiles/CMakeOutput.log".
See also "/Users/vp/esp/Pebble_ESP32_Firmware/build/CMakeFiles/CMakeError.log".
FAILED: build.ninja
/usr/local/Cellar/cmake/3.16.2/bin/cmake -S/Users/vp/esp/Pebble_ESP32_Firmware -B/Users/vp/esp/Pebble_ESP32_Firmware/build
ninja: error: rebuilding 'build.ninja': subcommand failed
Please let me know if you need any more information. Thanks!
Notes Compiler:
– The C compiler identification is GNU 5.2.0
– The CXX compiler identification is GNU 5.2.0
Our project layout:
/components
----/wifi
--------/include
------------dns.h
--------/src
------------dns.c
--------CMakeLists.txt < this is the file that tries to include the esp_http_client
/src
----main.c
@isnore As mbedtls component is already available in Amazon FreeRTOS, it should not be copied from release/v3.3.
To build application using esp_http_client, a change is required in mbedtls port layer. I have added the change in the same branch. Please try building the application using this branch with LwIP stack. Feel free to post if you face any issues.