Closed
Description
When the arduino IDE is invoked in command line mode to compile a sketch, it does not reference the proper libraries.
When executed in GUI mode it does compile properly.
Either there is a "secret" argument that needs to be passed for the library manager to search in the correct location for a given package, or this is a bug:
/opt/arduino-1.6.5/arduino --verify -v --board esp8266:esp8266:generic --pref sketchbook.path=<path to sketchbook> <path to sketch>
Result:
Using library SPI in folder: /opt/arduino-1.6.5/hardware/arduino/avr/libraries/SPI
WARNING: library SPI claims to run on [avr] architecture(s) and may be incompatible with your current board which runs on [esp8266] architecture(s).