My ESP build is unable to find include files from libraries.
I can build the same code in Arduino IDE just fine, whether it is for ESP or Arduino Uno.
But in VS+VM if I set the board to Arduino Uno it builds fine.
If I set it to any ESP variant the build fails at library header include. This is example test.ino contains just #include <LiquidCrystal_I2C.h> with empty setup() and loop().
Compiling 'Test' for 'WeMos D1(Retired)'
Test.ino: 2:31: fatal error: LiquidCrystal_I2C.h: No such file or directory
#include <LiquidCrystal_I2C.h>
compilation terminated
An error was encountered during the 'Deep Search' library discovery process.
Build failed for project 'Test'
I have Arduino 1.8.5 installed.
Visual Studio 2015 community.
That library (if it matters) is the dfrobot I2CLCD lib here:-
https://github.com/marcoschwartz/LiquidCrystal_I2C My sketchbook location in arduino is set to "D:\SVN\Code\Arduino"
I have directories "libraries" and "Sketches" below this location. Everything builds just fine in Arduino IDE.
I have tried setting the same sketchbook location in vMicro but it does not help.
A similar setup but without a modified sketchbook location in Arduino setup works fine so it looks like it is something to do with this.
I tried duplicating all the library directories at the usual place (ie...documents/Arduino) but that did not help.
Rescan toolchain and libraries does not help.
Doing a rescan in Visual Micro Explorer does not help either.
Any suggestions?