When trying to build an ESP32 project using this component, I get this error:
C:/Users/Calando/source/repos/ec_spinning/managed_components/nopnop2002__ssd1306/ssd1306.h:4:10: fatal error: driver/spi_master.h: No such file or directory
My idf_component.yml contains:
dependencies:
pid_ctrl: "^0.1.1"
bdc_motor: "^0.2.0"
nopnop2002/ssd1306:
path: components/ssd1306/
git: https://github.com/nopnop2002/esp-idf-ssd1306.git
The component is cloned into managed_components, but it seems that the PRIV_REQUIRES does not lead the the include path for esp_driver_spi to be included into the compiler command for the main.c file (I am using ESP-IDF V6.0.2 and the latest ESP-IDF VS Code extension).
In my main.c file, I include ssd1306.h which in turn includes driver/spi_master.h; this should work due to the CMakeLists.txt in managed_components/nopnop2002__ssd1306. When looking in the c:\esp directory, the include file is present (C:\esp\v6.0.2\esp-idf\components\esp_driver_spi\include\driver\spi_master.h), however.
I found no workaround for that problem up to now.
When trying to build an ESP32 project using this component, I get this error:
C:/Users/Calando/source/repos/ec_spinning/managed_components/nopnop2002__ssd1306/ssd1306.h:4:10: fatal error: driver/spi_master.h: No such file or directory
My idf_component.yml contains:
dependencies:
pid_ctrl: "^0.1.1"
bdc_motor: "^0.2.0"
nopnop2002/ssd1306:
path: components/ssd1306/
git: https://github.com/nopnop2002/esp-idf-ssd1306.git
The component is cloned into managed_components, but it seems that the PRIV_REQUIRES does not lead the the include path for esp_driver_spi to be included into the compiler command for the main.c file (I am using ESP-IDF V6.0.2 and the latest ESP-IDF VS Code extension).
In my main.c file, I include ssd1306.h which in turn includes driver/spi_master.h; this should work due to the CMakeLists.txt in managed_components/nopnop2002__ssd1306. When looking in the c:\esp directory, the include file is present (C:\esp\v6.0.2\esp-idf\components\esp_driver_spi\include\driver\spi_master.h), however.
I found no workaround for that problem up to now.