Compile Esp8266/Esp32 Arduino Code with gmake on FreeBSD

This is inspired by Raffeale from FreeBSD forum. The original link is here. Yet when following the step of Raffeale’s post, I bumped into some trouble. So, with a little trial and error myself. I\’v figured out a way to compile code for Esp8266 with gmake. System and Board This is tested on FreeBSD 12.2…

Arduino Servo.h no such file or directory on FreeBSD

So, here is the THING. I try to compile codes with Servo.h, but get No such file or directorys. Take a look at the compiling message, it looks like this. … -I/usr/local/arduino/libraries//usr/local/arduino/libraries -I/home/username/sketchbook/libraries//usr/local/arduino/libraries … This is funny. It is generated by the vanilla arduino-mk file. So it has to be modified. Check out CPPFLAGS. CPPFLAGS…