SmartMatrix/Teensy 4.1 compiling issues

Using this code by: SmartMatrix Library written by Louis Beaudoin at pixelmatix.com
*

  • Written by: Craig A. Lindley
    I get this compiling error: decoder.setFileSizeCallback(fileSizeCallback);
    Stated in the docs it says: See the examples for a reference.
    Okay, where are they?

Thanks in advance.

Please show compiler error message in full

I’ve copied and sent the error codes but I don’t know if they’re sent because I get this message:
An error occurred: Body is limited to 32000 characters; you entered 148692.

try to copy last 30-40 lines of the output

Here is where the issue is:

// Setup method runs once, when the sketch starts
void setup() {
    decoder.setScreenClearCallback(screenClearCallback);
    decoder.setUpdateScreenCallback(updateScreenCallback);
    decoder.setDrawPixelCallback(drawPixelCallback);

    decoder.setFileSeekCallback(fileSeekCallback);
    decoder.setFilePositionCallback(filePositionCallback);
    decoder.setFileReadCallback(fileReadCallback);
    decoder.setFileReadBlockCallback(fileReadBlockCallback);

    // NOTE: new callback function required after we moved to using the external AnimatedGIF library to decode GIFs
    decoder.setFileSizeCallback(fileSizeCallback);

…and here is the lower portion of the errors page

Compiling sketch…
“/private/var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/AppTranslocation/B009F51A-62D4-4785-9044-2D140C3D2BA3/d/Arduino 3.app/Contents/Java/hardware/teensy/…/tools/precompile_helper” “/private/var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/AppTranslocation/B009F51A-62D4-4785-9044-2D140C3D2BA3/d/Arduino 3.app/Contents/Java/hardware/teensy/avr/cores/teensy4” /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_build_1780 “/private/var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/AppTranslocation/B009F51A-62D4-4785-9044-2D140C3D2BA3/d/Arduino 3.app/Contents/Java/hardware/teensy/…/tools/arm/bin/arm-none-eabi-g++” -x c+±header -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=156 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH “-I/private/var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/AppTranslocation/B009F51A-62D4-4785-9044-2D140C3D2BA3/d/Arduino 3.app/Contents/Java/hardware/teensy/avr/cores/teensy4” /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_build_1780/pch/Arduino.h -o /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_build_1780/pch/Arduino.h.gch
Using previously compiled file: /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_build_1780/pch/Arduino.h.gch
“/private/var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/AppTranslocation/B009F51A-62D4-4785-9044-2D140C3D2BA3/d/Arduino 3.app/Contents/Java/hardware/teensy/…/tools/arm/bin/arm-none-eabi-g++” -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=156 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_build_1780/pch “-I/private/var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/AppTranslocation/B009F51A-62D4-4785-9044-2D140C3D2BA3/d/Arduino 3.app/Contents/Java/hardware/teensy/avr/cores/teensy4” -I/Users/alfredolivas/Desktop/Arduino/Sketchbook/libraries/SmartMatrix-master/src “-I/private/var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/AppTranslocation/B009F51A-62D4-4785-9044-2D140C3D2BA3/d/Arduino 3.app/Contents/Java/hardware/teensy/avr/libraries/SD/src” “-I/private/var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/AppTranslocation/B009F51A-62D4-4785-9044-2D140C3D2BA3/d/Arduino 3.app/Contents/Java/hardware/teensy/avr/libraries/SdFat/src” “-I/private/var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/AppTranslocation/B009F51A-62D4-4785-9044-2D140C3D2BA3/d/Arduino 3.app/Contents/Java/hardware/teensy/avr/libraries/SPI” -I/Users/alfredolivas/Desktop/Arduino/Sketchbook/libraries/GifDecoder/src -I/Users/alfredolivas/Desktop/Arduino/Sketchbook/libraries/AnimatedGIF/src -I/Users/alfredolivas/Desktop/Arduino/Sketchbook/libraries/AnimatedGIFs_SD-master /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_build_1780/sketch/sketch_mar13a.ino.cpp -o /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_build_1780/sketch/sketch_mar13a.ino.cpp.o
In file included from /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_modified_sketch_937854/sketch_mar13a.ino:82:0:
/Users/alfredolivas/Desktop/Arduino/Sketchbook/libraries/SmartMatrix-master/src/MatrixHardware_Teensy4_ShieldV5.h:41:17: note: #pragma message: MatrixHardware: SmartLED Shield for Teensy 4 (V5)
#pragma message “MatrixHardware: SmartLED Shield for Teensy 4 (V5)”
^
In file included from /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_modified_sketch_937854/sketch_mar13a.ino:87:0:
/Users/alfredolivas/Desktop/Arduino/Sketchbook/libraries/SmartMatrix-master/src/SmartMatrix.h:40:21: note: #pragma message: SmartMatrix Library version 4.000.003

pragma message “SmartMatrix Library version 4.000.003”

                 ^

sketch_mar13a: In function ‘void setup()’:
sketch_mar13a:178: error: ‘fileSizeCallback’ was not declared in this scope
decoder.setFileSizeCallback(fileSizeCallback);
^
sketch_mar13a:221: error: ‘initFileSystem’ was not declared in this scope
if(initFileSystem(SD_CS) < 0) {
^
Multiple libraries were found for “MatrixHardware_Teensy4_ShieldV5.h”
Used: /Users/alfredolivas/Desktop/Arduino/Sketchbook/libraries/SmartMatrix-master
Not used: /Users/alfredolivas/Desktop/Arduino/Sketchbook/libraries/SmartMatrix-4.0.3
Multiple libraries were found for “SD.h”
Used: /private/var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/AppTranslocation/B009F51A-62D4-4785-9044-2D140C3D2BA3/d/Arduino 3.app/Contents/Java/hardware/teensy/avr/libraries/SD
Not used: /private/var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/AppTranslocation/B009F51A-62D4-4785-9044-2D140C3D2BA3/d/Arduino 3.app/Contents/Java/libraries/SD
Not used: /Users/alfredolivas/Desktop/Arduino/Sketchbook/libraries/SD-master
Multiple libraries were found for “SdFat.h”
Used: /private/var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/AppTranslocation/B009F51A-62D4-4785-9044-2D140C3D2BA3/d/Arduino 3.app/Contents/Java/hardware/teensy/avr/libraries/SdFat
Not used: /Users/alfredolivas/Desktop/Arduino/Sketchbook/libraries/SdFat_-_Adafruit_Fork
Multiple libraries were found for “GifDecoder.h”
Used: /Users/alfredolivas/Desktop/Arduino/Sketchbook/libraries/GifDecoder
Not used: /Users/alfredolivas/Desktop/Arduino/Sketchbook/libraries/AnimatedGIFs-master
Not used: /Users/alfredolivas/Desktop/Arduino/Sketchbook/libraries/GifDecoder-master
Not used: /Users/alfredolivas/Desktop/Arduino/Sketchbook/libraries/AnimatedGIFs_SD-master
Using library SmartMatrix-master at version 4.0.3 in folder: /Users/alfredolivas/Desktop/Arduino/Sketchbook/libraries/SmartMatrix-master
Using library SD at version 2.0.0 in folder: /private/var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/AppTranslocation/B009F51A-62D4-4785-9044-2D140C3D2BA3/d/Arduino 3.app/Contents/Java/hardware/teensy/avr/libraries/SD
Using library SdFat at version 2.1.0 in folder: /private/var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/AppTranslocation/B009F51A-62D4-4785-9044-2D140C3D2BA3/d/Arduino 3.app/Contents/Java/hardware/teensy/avr/libraries/SdFat
Using library SPI at version 1.0 in folder: /private/var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/AppTranslocation/B009F51A-62D4-4785-9044-2D140C3D2BA3/d/Arduino 3.app/Contents/Java/hardware/teensy/avr/libraries/SPI
Using library GifDecoder at version 1.1.0 in folder: /Users/alfredolivas/Desktop/Arduino/Sketchbook/libraries/GifDecoder
Using library AnimatedGIF at version 1.4.7 in folder: /Users/alfredolivas/Desktop/Arduino/Sketchbook/libraries/AnimatedGIF
Using library AnimatedGIFs_SD-master in folder: /Users/alfredolivas/Desktop/Arduino/Sketchbook/libraries/AnimatedGIFs_SD-master (legacy)
‘fileSizeCallback’ was not declared in this scope