aws / amazon-freertos

DEPRECATED - See README.md
https://aws.amazon.com/freertos/
MIT License
2.54k stars 1.1k forks source link

[General] Error when adding custom component ESP32 #3497

Closed EtienneMdv closed 2 years ago

EtienneMdv commented 2 years ago

Briefly summarize the issue being raised I am trying to setup a new project based on Amazon FreeRTOS for my ESP32 board. After successfully adding amazon-freertos to my project, I am now trying to add LVGL as a custom component. I added LVGL to the components folder and modified the CMakeLists.txt at the top-level of my project as per the instructions (https://docs.aws.amazon.com/freertos/latest/userguide/getting_started_espressif.html).

However, when trying to build with cmake I receive the following errors (idf.py build):

CMake Error at amazon-freertos/vendors/espressif/esp-idf/tools/cmake/build.cmake:16 (get_property):
  get_property could not find TARGET __idf_build_target.  Perhaps it has not
  yet been created.
Call Stack (most recent call first):
  components/lvgl/env_support/cmake/esp.cmake:3 (idf_build_get_property)
  components/lvgl/CMakeLists.txt:10 (include)

CMake Error at amazon-freertos/vendors/espressif/esp-idf/tools/cmake/component.cmake:425 (message):
  Called idf_component_register from a non-component directory.
Call Stack (most recent call first):
  components/lvgl/env_support/cmake/esp.cmake:24 (idf_component_register)
  components/lvgl/CMakeLists.txt:10 (include)

Describe the desired outcome Successful build.

System information

horsemann07 commented 2 years ago

Hello @EtienneMdv

Please refer this discussion might be you will get all solutions.

aggarg commented 2 years ago

@EtienneMdv Were you able to resolve your issue?

aggarg commented 2 years ago

I am closing this issue. Feel free to reopen or create a new one if you still face any issue.