espressif / esp-idf-ci-action

GitHub Action for ESP32 CI
MIT License
59 stars 24 forks source link

FreeRTOS directory cannot be found #16

Closed vinicius-smartme closed 2 years ago

vinicius-smartme commented 2 years ago

Hi.

I am having some issues while running the CI. My workflow has the following action:

Then I get the following error during the action execution:

CMake Error at /opt/esp/idf/tools/cmake/component.cmake:305 (message): Include directory '/SysGCC/esp32/esp-idf/v4.3.2/components/freertos/include/freertos' is not a directory.

In fact, this path is included automatically in the CMakeLists.txt as set(COMPONENT_PRIV_INCLUDEDIRS ../../../../../../SysGCC/esp32/esp-idf/v4.3.2/components/freertos/include/freertos) (I am using some freeRTOS functions).

kumekay commented 2 years ago

Hi @vinicius-smartme

This part of the path looks unusual SysGCC/esp32/esp-idf/v4.3.2. Is it your local path on the development machine? Did you put it to your CMakeLists.txt

freertos is added to all IDF components as a common requirement, so it is unnecessary to add it explicitly.

vinicius-smartme commented 2 years ago

Hi @kumekay

Thank you for your fast reply.

The path SysGCC/esp32/esp-idf/v4.3.2 is due a cross-compiling tool I use called VisualGDB, which manage the esp32 installation and update. It also controls the CMakeLists.txt files. So if I change this file manually, the project gets corrupted.

I followed your hint about the unnecessary need to explicit the path and removed it from project properties (I don't know why it was there) and now it works.

Thanks