Won't compile, says library I have is missing

I haven't used it in a few months so I reloaded everything. Arduino UNO R4 WiFi
I have 2.3.6
Arduinographics is 1.1.4. Adafruit Neopixel is 1.13.0.

When I compile I get the error;
In file included from C:\Users\Lee\Documents\Arduino\test_include\test_include.ino:3:0:
C:\Users\Lee\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.4.1\libraries\Arduino_LED_Matrix\src/TextAnimation.h:6:2: error: #error "TextAnimation work only when ArduinoGraphics is installed and used. Include ArduinoGraphics first."
#error "TextAnimation work only when ArduinoGraphics is installed and used. Include ArduinoGraphics first."
^~~~~
exit status 1
Compilation error: exit status 1

I don't know about textanimation, it isn't in my library but it does get included. Not sure why I need it but if i remove it I get lots of errors. I don't get an error about loading ArduinoGraphics so I assume it got loaded.

My code;

#include <Arduino_LED_Matrix.h>
#include <ArduinoGraphics.h>
#include <TextAnimation.h>
#include <gallery.h>


#include <Adafruit_NeoPixel.h>  
 #define PIN 2      // input pin Neopixel is attached to  
 Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);  
 
 void setup() {  
  // Initialize the NeoPixel library.  
  pixels.begin();  
  int i = 0;
  Serial.begin(9600);
  Serial.print ("start");


for (int i = 0; i < 100; i++)   
 {  
   pixels.setPixelColor(i, pixels.Color(0, 0, 0));  
   pixels.show();  
 }  
}

I can't find this on github: <TextAnimation.h>
I guess it is incompatible with , or otherwise doesn't recognise, the current version of ArduinoGraphics.h

TextAnimation.h is part of Arduino_LED_Matrix library.

@leea9 try including ArduinoGraphics.h at the beginning.

I am not sure why TextAnimation.h is included. I created this program some time ago. I assume at the time it was needed. If I comment it out I get lots of errors, here is a sample;

In file included from C:\Users\Lee\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.4.1\libraries\Arduino_LED_Matrix\src/Arduino_LED_Matrix.h:5:0,
                 from C:\Users\Lee\Documents\Arduino\test_include\test_include.ino:1:
C:\Users\Lee\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.4.1\libraries\Arduino_LED_Matrix\src/gallery.h:2:20: note: 'constexpr const uint32_t LEDMATRIX_BLUETOOTH [4]' previously defined here
 constexpr uint32_t LEDMATRIX_BLUETOOTH[]     = { 0x10428, 0xa4517ff0, 0x50088104, 66 };
                    ^~~~~~~~~~~~~~~~~~~

I'm an newbie and don't know much.

You might need to fall back to older versions of the libraries in the sketch if one was improved and the other was not.

Hi @leea9.

You must delete all of these lines from your sketch:

You only need those if you are using them to control the LED matrix that is built in to the UNO R4 WiFi board. Your code does not use the built-in LED matrix, so they are pointless and will only cause confusion and possibly waste memory.

However, your sketch is also missing a definition of NUMPIXELS and the loop function, which will cause compilation to fail. So if this sketch was working at some time in the past you should definitely check to see if you have a backup from before you messed up the code.

Your code sample is incomplete. For example the loop() is missing (as @ptillisch has pointed out) . If you publish a "summary" of your code, because for some reason you don't want to show it all, then make sure that that summary (a) can be compiled or at least (b) it demonstrates the original problem.

I removed 95% of the code (sorry I should have said that) so everything is defined, but not in my sample. I left enough to show the error.

I didn't know those lines are for the built in LED display, I played with that some time ago and did get it to work. For a new project I tend to start with an old one and take out most of it and leave the standard stuff. That way I don't have to go look up a command I forgot how to use.

I removed the matrix stuff and now I get an error;

C:\Users\Lee\AppData\Local\arduino\sketches\51009804DD7B161731DC7F5581699FA1/..\..\cores\arduino_renesas_uno_unor4wifi_c9562f21064d3e39e2be61dc162ecf76\core.a(main.cpp.o): In function `arduino_main()':
C:\Users\Lee\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.4.1\cores\arduino/main.cpp:121: undefined reference to `loop'
collect2.exe: error: ld returned 1 exit status
exit status 1

Compilation error: exit status 1

I don't know where loop comes from.

You write it yourself. Here is an example from the "blink" sketch:

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);  // turn the LED on (HIGH is the voltage level)
  delay(1000);                      // wait for a second
  digitalWrite(LED_BUILTIN, LOW);   // turn the LED off by making the voltage LOW
  delay(1000);                      // wait for a second
}

If it is still not clear then post your complete sketch.