Following approach A from this Arduino SE answer, I managed to kick off an Arduino CLI compilation in a Docker environment.
However, the project I am trying to compile has a dependency on a LCD control library.
Error output:
...../OpenSourceVentilator/OpenSourceVentilator.ino:494:116:
fatal error: LiquidCrystal_PCF8574.h:
No such file or directory
compilation terminated.
What is the proper way to link dependencies to the compilation environment of an Arduino project?
While the source suggests a direct compiler call, maybe I need a Makefile instead of the following?
arduino-cli compile --fqbn esp32:esp32:esp32 -o ignored.bin OpenSourceVentilator.ino
-
1The tutorial, that you linked to as approach A from the other question, also has a part, which explains how to install extra librarieschrisl– chrisl2020年04月09日 12:39:02 +00:00Commented Apr 9, 2020 at 12:39
-
@chrisl is that also an "Arduino-like" way or is there a more standard approach/package manager?J. Doe– J. Doe2020年04月09日 13:04:31 +00:00Commented Apr 9, 2020 at 13:04
-
Why do you expect a non-Arduino like or more standard approach, when using the Arduino CLI?chrisl– chrisl2020年04月09日 13:12:29 +00:00Commented Apr 9, 2020 at 13:12
-
I just wonder there is no management for external libraries Golang-style, but maybe it's even good.J. Doe– J. Doe2020年04月09日 13:19:23 +00:00Commented Apr 9, 2020 at 13:19
1 Answer 1
If the library is installed the Arduino IDE (or CLI I assume too) just finds it and compiles/links it for you.
-
so what activities does installation of a library include if the library is on GitHub?J. Doe– J. Doe2020年04月09日 12:14:37 +00:00Commented Apr 9, 2020 at 12:14
-
arduino.cc/en/guide/librariesMajenko– Majenko2020年04月09日 12:33:14 +00:00Commented Apr 9, 2020 at 12:33