Arduino libray (e.g. LiquidCrystal) not found during compilation

Hi,

With v0.12 wich fix usb port enumeration, I was able to upload directly to an Arduino board.
After testing the basic blink example, I wanted to tried using an LCD display, using the node text-lcd-16x2.

This is a really simple hello world test:
xod-lcd-crystal-hello-world

But uploading to the arduino board failed, as it can find the required library:

Error occured during uploading: ChildProcessError: Command failed: "C:\Users\<user>\AppData\Local\Programs\xod-client-electron\resources\arduino-builder\arduino-builder.exe" -hardware="C:\Users\<user>\AppData\Local\Programs\xod-client-electron\resources\arduino-builder\hardware" -hardware="C:\Users\<user>\AppData\Roaming\xod-client-electron\packages" -tools="C:\Users\<user>\AppData\Local\Programs\xod-client-electron\resources\arduino-builder\tools" -tools="C:\Users\<user>\AppData\Roaming\xod-client-electron\packages" -fqbn="arduino:avr:uno" -build-path="C:\Users\<user>\AppData\Roaming\xod-client-electron\upload-temp\build" "C:\Users\<user>\AppData\Roaming\xod-client-electron\upload-temp\xod-arduino-sketch.cpp"
C:\Users\<user>\AppData\Roaming\xod-client-electron\upload-temp\xod-arduino-sketch.cpp:924:27: fatal error: LiquidCrystal.h: No such file or directory
 #include <LiquidCrystal.h>
                           ^
compilation terminated.
exit status 1
 `"C:\Users\<user>\AppData\Local\Programs\xod-client-electron\resources\arduino-builder\arduino-builder.exe" -hardware="C:\Users\<user>\AppData\Local\Programs\xod-client-electron\resources\arduino-builder\hardware" -hardware="C:\Users\<user>\AppData\Roaming\xod-client-electron\packages" -tools="C:\Users\<user>\AppData\Local\Programs\xod-client-electron\resources\arduino-builder\tools" -tools="C:\Users\<user>\AppData\Roaming\xod-client-electron\packages" -fqbn="arduino:avr:uno" -build-path="C:\Users\<user>\AppData\Roaming\xod-client-electron\upload-temp\build" "C:\Users\<user>\AppData\Roaming\xod-client-electron\upload-temp\xod-arduino-sketch.cpp"` (exited with error code 1)

After quickly looking at xod installation and roaming folder, it seems there is no library bundled (except very basic ones for Arduino base in C:\Users\<user>\AppData\Roaming\xod-client-electron\packages\arduino\hardware\avr\libraries.

Is this normal and we need to install the library (but where and how to tell XOD to use the required include path for the compilation)?

Confirm. The build system changed significantly in v0.12.0 and we forgot to handle non-standard Arduino libraries properly. As a temporary workaround you can copy the library from existing Arduino IDE setup:

C:\Users\<user>\Arduino\libraries\LiquidCrystal

to

C:\Users\<user>\AppData\Roaming\xod-client-electron\packages\arduino\hardware\avr\libraries\LiquidCrystal

The same problem affects xod/common-hardware/servo node. To fix it copy Servo library as well.

Meantime, we are solving the issue properly. Thank you for the report!

Thanks for the workaround, it helps.

The bug was fixed in 0.12.1

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.