Missing hardware library file?

Hello
I have just bought an Uno R4 Wifi and having difficulty compiling. It appears I have a missing file in Arduino/libraries/hardware. Would be grateful for some help. Here is the log.

FQBN: arduino:renesas_uno:unor4wifi
Using board 'unor4wifi' from platform in folder: C:\Users\Nigel\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.0.2
Using core 'arduino' from platform in folder: C:\Users\Nigel\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.0.2

loading library from c:\Users\Nigel\Documents\Arduino\libraries\hardware: invalid library: no header files found

I then get 100+ lines showing that key defines are not set up.

Here are the last few lines.
c:\Users\Nigel\Documents\Arduino\libraries\Elegoo_TFTLCD\pin_magic.h:384:33: note: suggested alternative: 'bitSet'
#define CD_DATA *cdPort |= cdPinSet
^
c:\Users\Nigel\Documents\Arduino\libraries\Elegoo_TFTLCD\Elegoo_TFTLCD.cpp:1093:3: note: in expansion of macro 'CD_DATA'
CD_DATA;
^~~~~~~
c:\Users\Nigel\Documents\Arduino\libraries\Elegoo_TFTLCD\pin_magic.h:386:33: error: 'csPinSet' was not declared in this scope
#define CS_IDLE *csPort |= csPinSet
^
c:\Users\Nigel\Documents\Arduino\libraries\Elegoo_TFTLCD\Elegoo_TFTLCD.cpp:1102:3: note: in expansion of macro 'CS_IDLE'
CS_IDLE;
^~~~~~~
c:\Users\Nigel\Documents\Arduino\libraries\Elegoo_TFTLCD\pin_magic.h:386:33: note: suggested alternative: 'bitSet'
#define CS_IDLE *csPort |= csPinSet
^
c:\Users\Nigel\Documents\Arduino\libraries\Elegoo_TFTLCD\Elegoo_TFTLCD.cpp:1102:3: note: in expansion of macro 'CS_IDLE'
CS_IDLE;
^~~~~~~

Using library Elegoo GFX Library at version 1.0.2 in folder: C:\Users\Nigel\Documents\Arduino\libraries\Elegoo_GFX_Library
Using library Elegoo_TFTLCD in folder: C:\Users\Nigel\Documents\Arduino\libraries\Elegoo_TFTLCD (legacy)
Using library TouchScreen in folder: C:\Users\Nigel\Documents\Arduino\libraries\TouchScreen (legacy)
exit status 1

Compilation error: exit status 1

Which IDE version are you using? Thank you.

Hi xfpd, I'm using 2.1.1.

It appears that you are having issue with using 3rd party library. To start a new, try:

  1. Do complete Uninstall Arduino IDE and then re-install the Arduino IDE (use Arduino IDE 2.1.1). Make sure that you install all the dependencies that shows up after the installation. If your machine is running Windows 11, check How to Fix Arduino Problem on Windows 11 and grant the IDE admin right.

  2. Install your board's Package Core, it contains the board's driver.

  3. Add the 3rd party library you want to use following Add libraries to Arduino IDE

  4. Use a good quality data USB cable to connect the board to the computer without anything connected or wired to the board. Charging/bad USB cable will make it impossible for your computer to detect your board or upload a sktech.

  5. Double tap the reset button fast and check the status of the onboard "L" LED. If the onboard LED fade in and out slowly (pulsating), upload an example sketch (Blink LED) from the IDE to the board to reset your board.