problems with wire.h libraries

I am trying to set up a program for writing to a LCD with I2C interface. I am using Arduino Create On-line attached to an Arduino uno.

When I run this sketch

/*

*/
#include "Arduino.h"
#include <Wire.h>
#include <LCD.h>
#include <LiquidCrystal_I2C.h>
void setup() {

}

void loop() {

}

I get these errors

arduino-builder/arduino-builder -compile -core-api-version 10611 -build-path /tmp/196398261/build -hardware arduino-builder/hardware -hardware arduino-builder/packages/cores -tools arduino-builder/tools -tools arduino-builder/packages/tools -built-in-libraries arduino-builder/latest -libraries /tmp/196398261/pinned -libraries /tmp/196398261/custom -fqbn arduino:avr:uno -build-cache /tmp -logger humantags -verbose=false -logger humantags /tmp/196398261/sketch_oct20a

Multiple libraries were found for "LCD.h"

Used: /tmp/196398261/custom/LiquidCrystal2

Not used: /home/admin/builder/arduino-builder/latest/jm_LiquidCrystal_I2C-1.0.0

Not used: /home/admin/builder/arduino-builder/latest/jm_LiquidCrystal_I2C-1.0.0

Not used: /home/admin/builder/arduino-builder/latest/jm_LiquidCrystal_I2C-1.0.0

Not used: /home/admin/builder/arduino-builder/latest/jm_LiquidCrystal_I2C-1.0.0

/tmp/196398261/custom/LiquidCrystal2/I2CIO.cpp:35:26: fatal error: ../Wire/Wire.h: No such file or directory

#include <../Wire/Wire.h>

^

compilation terminated.

exit status 1

Is wire.h already included in the other LCD libraries? If I comment out
//#include <Wire.h>

I get the same error messages.

Remove the

#include <LCD.h>

line or define why you need it. It's sometimes not clear for the online compiler where to get the correct libraries. And some libraries are badly written which makes the job of the on- and off-line compiler sometimes quite hard.

You get more control over the compilation process by using the IDE (offline compiler) instead of the online version.

It is a defect in the LiquidCrystal2 library; it's referencing Wire.h incorrectly.

But why are you including two liquid crystal libraries?! You should only include one; if you include both, you will probably find additional incompatibilities. If it's a 1602 or 2004 HD44780-alike with the I2C backpack, LiquidCrystal_I2C should just work.

Also, the online editor is kinda janky. The real IDE works considerably better.

Thanks for the answers. That worked, I removed LCD.h and it compiled correctly.