thunderace / Esp8266-Arduino-Makefile

Makefile to build arduino code for ESP8266/ESP32x under linux (tested on debian X64)
34 stars 20 forks source link

Support For recursive libraries #27

Open swapnil823 opened 5 years ago

swapnil823 commented 5 years ago

Some of the ESP32 libraries are dependent on other ESP32 libraries. An example would be SPIFFS which uses FS library. This makefile fails to recognise such usage. Causing build to fail with following error:

In file included from configUtils.h:6:0, from configUtils.cpp:1: ../espMakefile/esp32-1.0.2/libraries/SPIFFS/src/SPIFFS.h:17:16: fatal error: FS.h: No such file or directory compilation terminated.

swapnil823 commented 5 years ago

Workaround as of now is to add the referenced library in USER src files so that it is included for compilation.

thunderace commented 5 years ago

Hello, look at the SPIFFS examples : The first two lines are

include "FS.h"

include "SPIFFS.h"