Page 1 of 1

Compilation Errors

Posted: Tue Jan 09, 2024 8:36 am
by SparkyNZ
I am trying to build the FabGL library that must have been built with an older IDF environment. Try as I may, I cannot see to resolve the following errors:

Code: Select all

C:/esp32/projects/paul_fabgl/components/fabgl/dispdrivers/vga8controller.cpp:483:72: error: 'spi_flash_cache_enabled' was not declared in this scope; did you mean 'spi_flash_cache2phys'?
  483 |     if (scanLine >= height && !ctrl->m_primitiveProcessingSuspended && spi_flash_cache_enabled() && ctrl->m_primitiveExecTask) {
I have:

* REQUIRES spi_flash in my CMakeFiles.txt
* #include "esp_spi_flash.h" in the offending vga8controller.cpp file

Why can't it find spi_flash_cache_enabled() ?

Re: Compilation Errors

Posted: Thu Jan 11, 2024 12:43 pm
by JohnnyZ
Maybe you are missing "idf.py add-dependency <component name>?"