thunderace / Esp8266-Arduino-Makefile

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

Doesn't include libraries without a .cpp file #7

Closed chuckwagoncomputing closed 7 years ago

chuckwagoncomputing commented 7 years ago

Some libraries, like Servo, have no .cpp file in their src directory, only .h. These libraries are not found.

thunderace commented 7 years ago

It's because with Servo Library, the source code is under src/esp8266... Try to add these 3 lines in esp8266Arduino.mk at line 108: $(ARDUINO_LIBS:%=$(ARDUINO_HOME)/libraries/%/src//.c) \ $(ARDUINO_LIBS:%=$(ARDUINO_HOME)/libraries/%/src//.cpp) \ $(ARDUINO_LIBS:%=$(ARDUINO_HOME)/libraries/%/src/*.h) \ tested with Servo library

thunderace commented 7 years ago

I have push the modification. Give it a try.

chuckwagoncomputing commented 7 years ago

Works fine now. I'd already made the modification before you suggested it, but I cloned again to test code for #6, so I went ahead and tried using the servo library. No errors, as expected.