Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 25 of 25

Thread: Arduino 1.8.13 complie issues

  1. #1
    Junior Member
    Join Date
    Oct 2021
    Posts
    11

    Arduino 1.8.13 complie issues

    Arduino: 1.8.13 (Mac OS X), TD: 1.55, Board: "Teensy 3.2 / 3.1, Serial, 96 MHz (overclock), Faster, US English"











    /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware -tools /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/tools-builder -tools /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/tools/avr -built-in-libraries /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/libraries -libraries /Users/alfredolivas/Documents/Arduino/libraries -fqbn=teensy:avr:teensy31:usb=serial,speed=96,opt=o 2std,keys=en-us -ide-version=10813 -build-path /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_build_94883 -warnings=none -build-cache /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_cache_669348 -verbose /Users/alfredolivas/Desktop/ARDUINO/AnimatedGifs/AnimatedGifs.ino
    /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware -tools /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/tools-builder -tools /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/tools/avr -built-in-libraries /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/libraries -libraries /Users/alfredolivas/Documents/Arduino/libraries -fqbn=teensy:avr:teensy31:usb=serial,speed=96,opt=o 2std,keys=en-us -ide-version=10813 -build-path /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_build_94883 -warnings=none -build-cache /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_cache_669348 -verbose /Users/alfredolivas/Desktop/ARDUINO/AnimatedGifs/AnimatedGifs.ino
    Using board 'teensy31' from platform in folder: /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr
    Using core 'teensy3' from platform in folder: /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr
    Detecting libraries used...
    "/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -mno-unaligned-access -fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=155 -DARDUINO=10813 -DARDUINO_TEENSY32 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/cores/teensy3" /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_build_94883/sketch/AnimatedGifs.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
    Alternatives for MatrixHardware_Teensy3_ShieldV1toV3.h: [SmartMatrix@4.0.3]
    ResolveLibrary(MatrixHardware_Teensy3_ShieldV1toV3 .h)
    -> candidates: [SmartMatrix@4.0.3]
    "/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -mno-unaligned-access -fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=155 -DARDUINO=10813 -DARDUINO_TEENSY32 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/cores/teensy3" -I/Users/alfredolivas/Documents/Arduino/libraries/SmartMatrix/src /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_build_94883/sketch/AnimatedGifs.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
    Alternatives for SPI.h: [SPI@1.0]
    ResolveLibrary(SPI.h)
    -> candidates: [SPI@1.0]
    "/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -mno-unaligned-access -fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=155 -DARDUINO=10813 -DARDUINO_TEENSY32 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/cores/teensy3" -I/Users/alfredolivas/Documents/Arduino/libraries/SmartMatrix/src "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SPI" /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_build_94883/sketch/AnimatedGifs.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
    Alternatives for SD.h: [SD@1.2.4 SD@2.0.0]
    ResolveLibrary(SD.h)
    -> candidates: [SD@1.2.4 SD@2.0.0]
    "/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -mno-unaligned-access -fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=155 -DARDUINO=10813 -DARDUINO_TEENSY32 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/cores/teensy3" -I/Users/alfredolivas/Documents/Arduino/libraries/SmartMatrix/src "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SPI" "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SD/src" /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_build_94883/sketch/AnimatedGifs.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
    Alternatives for SdFat.h: [SdFat_-_Adafruit_Fork@1.2.4 SdFat@2.0.5-beta.1]
    ResolveLibrary(SdFat.h)
    -> candidates: [SdFat_-_Adafruit_Fork@1.2.4 SdFat@2.0.5-beta.1]
    "/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -mno-unaligned-access -fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=155 -DARDUINO=10813 -DARDUINO_TEENSY32 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/cores/teensy3" -I/Users/alfredolivas/Documents/Arduino/libraries/SmartMatrix/src "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SPI" "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SD/src" "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SdFat/src" /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_build_94883/sketch/AnimatedGifs.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
    Alternatives for GifDecoder.h: [GifDecoder@1.1.0]
    ResolveLibrary(GifDecoder.h)
    -> candidates: [GifDecoder@1.1.0]
    "/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -mno-unaligned-access -fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=155 -DARDUINO=10813 -DARDUINO_TEENSY32 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/cores/teensy3" -I/Users/alfredolivas/Documents/Arduino/libraries/SmartMatrix/src "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SPI" "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SD/src" "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SdFat/src" -I/Users/alfredolivas/Documents/Arduino/libraries/GifDecoder/src /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_build_94883/sketch/AnimatedGifs.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
    Alternatives for AnimatedGIF.h: []
    In file included from /Users/alfredolivas/Desktop/ARDUINO/AnimatedGifs/AnimatedGifs.ino:89:0:ResolveLibrary(AnimatedGIF.h )

    -> candidates: []
    Multiple libraries were found for "SD.h"
    /Users/alfredolivas/Documents/Arduino/libraries/GifDecoder/src/GifDecoder.h:5:25: fatal error: AnimatedGIF.h: No such file or directory
    Used: /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SD
    compilation terminated.
    Not used: /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/libraries/SD
    Multiple libraries were found for "SdFat.h"
    Used: /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SdFat
    Not used: /Users/alfredolivas/Documents/Arduino/libraries/SdFat_-_Adafruit_Fork
    Using library SmartMatrix at version 4.0.3 in folder: /Users/alfredolivas/Documents/Arduino/libraries/SmartMatrix
    Using library SPI at version 1.0 in folder: /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SPI
    Using library SD at version 2.0.0 in folder: /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SD
    Using library SdFat at version 2.0.5-beta.1 in folder: /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SdFat
    Using library GifDecoder at version 1.1.0 in folder: /Users/alfredolivas/Documents/Arduino/libraries/GifDecoder
    Error compiling for board Teensy 3.2 / 3.1.

    Unable to compile Teensy 3.2 code on Arduino IDE and I don't know why. All libraries are included. Please advise as to what's going on.
    Thank you
    FredEBear

  2. #2
    Senior Member
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    9,421
    Code:
    /Users/alfredolivas/Documents/Arduino/libraries/GifDecoder/src/GifDecoder.h:5:25:  fatal error: AnimatedGIF.h: No such file or directory

  3. #3
    Junior Member
    Join Date
    Oct 2021
    Posts
    11
    Arduino: 1.8.13 (Mac OS X), TD: 1.55, Board: "Teensy 3.2 / 3.1, Serial, 96 MHz (overclock), Faster, US English"











    /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware -tools /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/tools-builder -tools /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/tools/avr -built-in-libraries /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/libraries -libraries /Users/alfredolivas/Documents/Arduino/libraries -fqbn=teensy:avr:teensy31:usb=serial,speed=96,opt=o 2std,keys=en-us -ide-version=10813 -build-path /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_build_647331 -warnings=none -build-cache /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_cache_669348 -verbose /Users/alfredolivas/Desktop/ARDUINO/AnimatedGifs/AnimatedGifs.ino
    /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware -tools /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/tools-builder -tools /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/tools/avr -built-in-libraries /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/libraries -libraries /Users/alfredolivas/Documents/Arduino/libraries -fqbn=teensy:avr:teensy31:usb=serial,speed=96,opt=o 2std,keys=en-us -ide-version=10813 -build-path /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_build_647331 -warnings=none -build-cache /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_cache_669348 -verbose /Users/alfredolivas/Desktop/ARDUINO/AnimatedGifs/AnimatedGifs.ino
    Using board 'teensy31' from platform in folder: /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr
    Using core 'teensy3' from platform in folder: /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr
    Detecting libraries used...
    "/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -mno-unaligned-access -fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=155 -DARDUINO=10813 -DARDUINO_TEENSY32 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/cores/teensy3" /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_build_647331/sketch/AnimatedGifs.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
    Alternatives for MatrixHardware_Teensy3_ShieldV1toV3.h: [SmartMatrix@4.0.3]
    ResolveLibrary(MatrixHardware_Teensy3_ShieldV1toV3 .h)
    -> candidates: [SmartMatrix@4.0.3]
    "/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -mno-unaligned-access -fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=155 -DARDUINO=10813 -DARDUINO_TEENSY32 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/cores/teensy3" -I/Users/alfredolivas/Documents/Arduino/libraries/SmartMatrix/src /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_build_647331/sketch/AnimatedGifs.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
    Alternatives for SPI.h: [SPI@1.0]
    ResolveLibrary(SPI.h)
    -> candidates: [SPI@1.0]
    "/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -mno-unaligned-access -fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=155 -DARDUINO=10813 -DARDUINO_TEENSY32 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/cores/teensy3" -I/Users/alfredolivas/Documents/Arduino/libraries/SmartMatrix/src "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SPI" /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_build_647331/sketch/AnimatedGifs.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
    Alternatives for SD.h: [SD@1.2.4 SD@2.0.0]
    ResolveLibrary(SD.h)
    -> candidates: [SD@1.2.4 SD@2.0.0]
    "/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -mno-unaligned-access -fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=155 -DARDUINO=10813 -DARDUINO_TEENSY32 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/cores/teensy3" -I/Users/alfredolivas/Documents/Arduino/libraries/SmartMatrix/src "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SPI" "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SD/src" /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_build_647331/sketch/AnimatedGifs.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
    Alternatives for SdFat.h: [SdFat@2.0.5-beta.1 SdFat_-_Adafruit_Fork@1.2.4]
    ResolveLibrary(SdFat.h)
    -> candidates: [SdFat@2.0.5-beta.1 SdFat_-_Adafruit_Fork@1.2.4]
    "/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -mno-unaligned-access -fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=155 -DARDUINO=10813 -DARDUINO_TEENSY32 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/cores/teensy3" -I/Users/alfredolivas/Documents/Arduino/libraries/SmartMatrix/src "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SPI" "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SD/src" "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SdFat/src" /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_build_647331/sketch/AnimatedGifs.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
    Alternatives for GifDecoder.h: [GifDecoder@1.1.0]
    ResolveLibrary(GifDecoder.h)
    -> candidates: [GifDecoder@1.1.0]
    "/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -mno-unaligned-access -fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=155 -DARDUINO=10813 -DARDUINO_TEENSY32 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/cores/teensy3" -I/Users/alfredolivas/Documents/Arduino/libraries/SmartMatrix/src "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SPI" "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SD/src" "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SdFat/src" -I/Users/alfredolivas/Documents/Arduino/libraries/GifDecoder/src /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_build_647331/sketch/AnimatedGifs.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
    Alternatives for AnimatedGIF.h: [AnimatedGIF-master@1.4.4]
    ResolveLibrary(AnimatedGIF.h)
    -> candidates: [AnimatedGIF-master@1.4.4]
    "/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -mno-unaligned-access -fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=155 -DARDUINO=10813 -DARDUINO_TEENSY32 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/cores/teensy3" -I/Users/alfredolivas/Documents/Arduino/libraries/SmartMatrix/src "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SPI" "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SD/src" "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SdFat/src" -I/Users/alfredolivas/Documents/Arduino/libraries/GifDecoder/src -I/Users/alfredolivas/Documents/Arduino/libraries/AnimatedGIF-master/src /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_build_647331/sketch/AnimatedGifs.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
    Alternatives for FilenameFunctions.h: []
    ResolveLibrary(FilenameFunctions.h)
    -> candidates: []
    /Users/alfredolivas/Desktop/ARDUINO/AnimatedGifs/AnimatedGifs.ino:92:31: fatal error: FilenameFunctions.h: No such file or directory
    Multiple libraries were found for "SD.h"
    compilation terminated.
    Used: /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SD
    Not used: /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/libraries/SD
    Multiple libraries were found for "SdFat.h"
    Used: /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SdFat
    Not used: /Users/alfredolivas/Documents/Arduino/libraries/SdFat_-_Adafruit_Fork
    Using library SmartMatrix at version 4.0.3 in folder: /Users/alfredolivas/Documents/Arduino/libraries/SmartMatrix
    Using library SPI at version 1.0 in folder: /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SPI
    Using library SD at version 2.0.0 in folder: /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SD
    Using library SdFat at version 2.0.5-beta.1 in folder: /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SdFat
    Using library GifDecoder at version 1.1.0 in folder: /Users/alfredolivas/Documents/Arduino/libraries/GifDecoder
    Using library AnimatedGIF-master at version 1.4.4 in folder: /Users/alfredolivas/Documents/Arduino/libraries/AnimatedGIF-master
    Error compiling for board Teensy 3.2 / 3.1.

    Added AnimatedGIF.h into my Arduino/Libraries folder to no avail. Hmmm

  4. #4
    Junior Member
    Join Date
    Oct 2021
    Posts
    11
    Arduino: 1.8.13 (Mac OS X), TD: 1.55, Board: "Teensy 3.2 / 3.1, Serial, 96 MHz (overclock), Faster, US English"











    /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware -tools /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/tools-builder -tools /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/tools/avr -built-in-libraries /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/libraries -libraries /Users/alfredolivas/Documents/Arduino/libraries -fqbn=teensy:avr:teensy31:usb=serial,speed=96,opt=o 2std,keys=en-us -ide-version=10813 -build-path /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_build_647331 -warnings=none -build-cache /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_cache_669348 -verbose /Users/alfredolivas/Desktop/ARDUINO/AnimatedGifs/AnimatedGifs.ino
    /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware -tools /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/tools-builder -tools /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/tools/avr -built-in-libraries /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/libraries -libraries /Users/alfredolivas/Documents/Arduino/libraries -fqbn=teensy:avr:teensy31:usb=serial,speed=96,opt=o 2std,keys=en-us -ide-version=10813 -build-path /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_build_647331 -warnings=none -build-cache /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_cache_669348 -verbose /Users/alfredolivas/Desktop/ARDUINO/AnimatedGifs/AnimatedGifs.ino
    Using board 'teensy31' from platform in folder: /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr
    Using core 'teensy3' from platform in folder: /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr
    Detecting libraries used...
    "/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -mno-unaligned-access -fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=155 -DARDUINO=10813 -DARDUINO_TEENSY32 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/cores/teensy3" /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_build_647331/sketch/AnimatedGifs.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
    Alternatives for MatrixHardware_Teensy3_ShieldV1toV3.h: [SmartMatrix@4.0.3]
    ResolveLibrary(MatrixHardware_Teensy3_ShieldV1toV3 .h)
    -> candidates: [SmartMatrix@4.0.3]
    "/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -mno-unaligned-access -fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=155 -DARDUINO=10813 -DARDUINO_TEENSY32 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/cores/teensy3" -I/Users/alfredolivas/Documents/Arduino/libraries/SmartMatrix/src /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_build_647331/sketch/AnimatedGifs.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
    Alternatives for SPI.h: [SPI@1.0]
    ResolveLibrary(SPI.h)
    -> candidates: [SPI@1.0]
    "/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -mno-unaligned-access -fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=155 -DARDUINO=10813 -DARDUINO_TEENSY32 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/cores/teensy3" -I/Users/alfredolivas/Documents/Arduino/libraries/SmartMatrix/src "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SPI" /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_build_647331/sketch/AnimatedGifs.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
    Alternatives for SD.h: [SD@1.2.4 SD@2.0.0]
    ResolveLibrary(SD.h)
    -> candidates: [SD@1.2.4 SD@2.0.0]
    "/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -mno-unaligned-access -fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=155 -DARDUINO=10813 -DARDUINO_TEENSY32 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/cores/teensy3" -I/Users/alfredolivas/Documents/Arduino/libraries/SmartMatrix/src "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SPI" "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SD/src" /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_build_647331/sketch/AnimatedGifs.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
    Alternatives for SdFat.h: [SdFat_-_Adafruit_Fork@1.2.4 SdFat@2.0.5-beta.1]
    ResolveLibrary(SdFat.h)
    -> candidates: [SdFat_-_Adafruit_Fork@1.2.4 SdFat@2.0.5-beta.1]
    "/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -mno-unaligned-access -fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=155 -DARDUINO=10813 -DARDUINO_TEENSY32 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/cores/teensy3" -I/Users/alfredolivas/Documents/Arduino/libraries/SmartMatrix/src "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SPI" "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SD/src" "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SdFat/src" /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_build_647331/sketch/AnimatedGifs.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
    Alternatives for GifDecoder.h: [GifDecoder@1.1.0]
    ResolveLibrary(GifDecoder.h)
    -> candidates: [GifDecoder@1.1.0]
    "/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -mno-unaligned-access -fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=155 -DARDUINO=10813 -DARDUINO_TEENSY32 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/cores/teensy3" -I/Users/alfredolivas/Documents/Arduino/libraries/SmartMatrix/src "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SPI" "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SD/src" "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SdFat/src" -I/Users/alfredolivas/Documents/Arduino/libraries/GifDecoder/src /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_build_647331/sketch/AnimatedGifs.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
    Alternatives for AnimatedGIF.h: [AnimatedGIF-master@1.4.4]
    ResolveLibrary(AnimatedGIF.h)
    -> candidates: [AnimatedGIF-master@1.4.4]
    "/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -mno-unaligned-access -fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=155 -DARDUINO=10813 -DARDUINO_TEENSY32 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/cores/teensy3" -I/Users/alfredolivas/Documents/Arduino/libraries/SmartMatrix/src "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SPI" "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SD/src" "-I/Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SdFat/src" -I/Users/alfredolivas/Documents/Arduino/libraries/GifDecoder/src -I/Users/alfredolivas/Documents/Arduino/libraries/AnimatedGIF-master/src /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_build_647331/sketch/AnimatedGifs.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
    Alternatives for FilenameFunctions.h: []
    ResolveLibrary(FilenameFunctions.h)
    -> candidates: []
    Multiple libraries were found for "SD.h"
    /Users/alfredolivas/Desktop/ARDUINO/AnimatedGifs/AnimatedGifs.ino:91:31: fatal error: FilenameFunctions.h: No such file or directory
    Used: /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SD
    compilation terminated.
    Not used: /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/libraries/SD
    Multiple libraries were found for "SdFat.h"
    Used: /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SdFat
    Not used: /Users/alfredolivas/Documents/Arduino/libraries/SdFat_-_Adafruit_Fork
    Using library SmartMatrix at version 4.0.3 in folder: /Users/alfredolivas/Documents/Arduino/libraries/SmartMatrix
    Using library SPI at version 1.0 in folder: /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SPI
    Using library SD at version 2.0.0 in folder: /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SD
    Using library SdFat at version 2.0.5-beta.1 in folder: /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SdFat
    Using library GifDecoder at version 1.1.0 in folder: /Users/alfredolivas/Documents/Arduino/libraries/GifDecoder
    Using library AnimatedGIF-master at version 1.4.4 in folder: /Users/alfredolivas/Documents/Arduino/libraries/AnimatedGIF-master
    Error compiling for board Teensy 3.2 / 3.1.

    AnimatedGIF.h isn't the issue as it's included into the libraries folder for Arduino. What else could it be?

  5. #5
    Senior Member
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    9,421
    : fatal error: FilenameFunctions.h: No such file or directory

    Please, just look at the output instead of posting kilobytes of useless logs.

  6. #6
    Junior Member
    Join Date
    Oct 2021
    Posts
    11
    FilenameFunctions.h IS included into the library. I can't figure out why Arduino can't see it! Sorry but don't know where "Output" is located within the IDE. Went to PREFERENCES and it's not there. Any ideas? iMac being used.

  7. #7
    Senior Member
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    9,421
    "Output": I meant the stuff you posted.
    And if Arduino says it can't find that file, well.. .then it can not find that file.

  8. #8
    Junior Member
    Join Date
    Oct 2021
    Posts
    11
    Okay. Useless here as I'm looking at the .h file within the Arduino/libraries folder right now. Perhaps the INO is broken. Thanks for your quick replies...

  9. #9
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    15,271
    File not found as it isn't where it is looking for it ?

    See :: /Users/alfredolivas/Desktop/ARDUINO/AnimatedGifs/AnimatedGifs.ino:91:31: fatal error: FilenameFunctions.h: No such file or directory

    Versus :: Using library AnimatedGIF-master at version 1.4.4 in folder: /Users/alfredolivas/Documents/Arduino/libraries/AnimatedGIF-master

  10. #10
    Junior Member
    Join Date
    Oct 2021
    Posts
    11
    Unable to complete task! Same issue keeps coming up and I have no solution to the problem..Sketch is looking for FilenameFunctions.h, which is located right where it should be within the library folder along with all the rest of the .h files, but INO still can't find it! Any ideas as to why this is happening? I'm completely stumped here and have nowhere else to turn before I completely give up on Teensyduinos. I don't have this problem with any Arduino's.

  11. #11
    Junior Member
    Join Date
    Oct 2021
    Posts
    11
    Okay not giving up just yet (I'm stubborn that way). Here is the latest SKETCH code with the error which is new.
    Arduino: 1.8.13 (Mac OS X), TD: 1.55, Board: "Teensy 3.2 / 3.1, Serial, 96 MHz (overclock), Faster, US English"











    In file included from /Users/alfredolivas/Desktop/ARDUINO/src/AnimatedGifs/AnimatedGifs.ino:83:0:
    /Users/alfredolivas/Documents/Arduino/libraries/SmartMatrix/src/MatrixHardware_Teensy3_ShieldV1toV3.h:29:17: note: #pragma message: MatrixHardware: SmartMatrix Shield for Teensy 3 V1-V3
    #pragma message "MatrixHardware: SmartMatrix Shield for Teensy 3 V1-V3"
    ^
    In file included from /Users/alfredolivas/Desktop/ARDUINO/src/AnimatedGifs/AnimatedGifs.ino:87:0:
    /Users/alfredolivas/Documents/Arduino/libraries/SmartMatrix/src/SmartMatrix.h:40:21: note: #pragma message: SmartMatrix Library version 4.000.003
    # pragma message "SmartMatrix Library version 4.000.003"
    ^
    AnimatedGifs: In function 'void setup()':
    AnimatedGifs:178: error: 'fileSizeCallback' was not declared in this scope
    decoder.setFileSizeCallback(fileSizeCallback);
    ^
    AnimatedGifs:134: error: 'BUILTIN_SDCARD' was not declared in this scope
    #define SD_CS BUILTIN_SDCARD
    ^
    /Users/alfredolivas/Desktop/ARDUINO/src/AnimatedGifs/AnimatedGifs.ino:220:23: note: in expansion of macro 'SD_CS'
    if(initFileSystem(SD_CS) < 0) {
    ^
    AnimatedGifs:220: error: 'initFileSystem' was not declared in this scope
    if(initFileSystem(SD_CS) < 0) {
    ^
    Multiple libraries were found for "SD.h"
    Used: /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SD
    Not used: /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/libraries/SD
    Multiple libraries were found for "SdFat.h"
    Used: /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SdFat
    Not used: /Users/alfredolivas/Documents/Arduino/libraries/SdFat_-_Adafruit_Fork
    Multiple libraries were found for "GifDecoder.h"
    Used: /Users/alfredolivas/Documents/Arduino/libraries/GifDecoder
    Not used: /Users/alfredolivas/Documents/Arduino/libraries/AnimatedGIFs_SD-master
    'fileSizeCallback' was not declared in this scope


    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.

  12. #12
    Junior Member
    Join Date
    Oct 2021
    Posts
    11
    Sorry about the lenghty mess of code. Here's a shorter piece of the sketch

    void setup() {
    decoder.setScreenClearCallback(screenClearCallback );
    decoder.setUpdateScreenCallback(updateScreenCallba ck);
    decoder.setDrawPixelCallback(drawPixelCallback);

    decoder.setFileSeekCallback(fileSeekCallback);
    decoder.setFilePositionCallback(filePositionCallba ck);
    decoder.setFileReadCallback(fileReadCallback);
    decoder.setFileReadBlockCallback(fileReadBlockCall back);

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

  13. #13
    Senior Member
    Join Date
    Nov 2012
    Posts
    1,768
    Arduino: 1.8.13 (Mac OS X)
    The latest Arduino version is 1.8.16


    Multiple libraries were found for "GifDecoder.h"
    Used: /Users/alfredolivas/Documents/Arduino/libraries/GifDecoder
    Not used: /Users/alfredolivas/Documents/Arduino/libraries/AnimatedGIFs_SD-master
    You have two versions of GifDecoder.h in separate Arduino/libraries - /GifDecoder and /AnimatedGIFs_SD-master
    The IDE is using /GifDecoder - is that the correct one?


    AnimatedGifs:134: error: 'BUILTIN_SDCARD' was not declared in this scope
    #define SD_CS BUILTIN_SDCARD
    A Teensy 3.2 does not have a built in SD card. Perhaps the code you are using expects to be run on T3.6?

    Pete

  14. #14
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    25,222
    I want to help, but I know know enough info to try recreating the problem here.

    I don't know what program you are compiling. Is it an example from one of the libraries? Or something you downloaded from a website? Or did you write it yourself?

    I don't know which set of libraries you have installed. If you installed them using the Arduino Library Manager, can you show screenshots (shift-cmd-3 on Mac saves the screen to file on desktop)... so I can try to duplicate the same setup? If you downloaded this stuff and extracted it manually into your Documents/Arduino/libraries folder, can you give links to the exact downloads?

    I want to recreate the error, so I can help you with a useful solution. But I don't know which specific things to install. Small details matter....

  15. #15
    Junior Member
    Join Date
    Oct 2021
    Posts
    11
    Sorry about the lenghty mess of code. Here's a shorter piece of the sketch

    void setup() {
    decoder.setScreenClearCallback(screenClearCallback );
    decoder.setUpdateScreenCallback(updateScreenCallba ck);
    decoder.setDrawPixelCallback(drawPixelCallback);

    decoder.setFileSeekCallback(fileSeekCallback);
    decoder.setFilePositionCallback(filePositionCallba ck);
    decoder.setFileReadCallback(fileReadCallback);
    decoder.setFileReadBlockCallback(fileReadBlockCall back);

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

    I'm using a SmartMatrix SD board that plugs into a SmartMatrix 32x32 board. The Teensy fits onto the board which plugs into the Matrix LEDs. The sketch I'm trying to compile and run is called Animated GIFs Display Code for SmartMatrix and HUB75 RGB LED Panels
    *
    * Uses SmartMatrix Library written by Louis Beaudoin at pixelmatix.com
    *
    * Written by: Craig A. Lindley
    *
    * Copyright (c) 2014 Craig A. Lindley
    * Refactoring by Louis Beaudoin (Pixelmatix)

  16. #16
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    15,271
    There seem to be conflicting libraries on the system - and perhaps a conflict of what Teensy they are for?

    Follow these lines and make sure they are all pointing to the expected version/copy - and any that are not right and marked 'Used' should be removed.
    Code:
    Multiple libraries were found for "SD.h"
    Used: /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SD
    Not used: /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/libraries/SD
    Multiple libraries were found for "SdFat.h"
    Used: /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SdFat
    Not used: /Users/alfredolivas/Documents/Arduino/libraries/SdFat_-_Adafruit_Fork
    Multiple libraries were found for "GifDecoder.h"
    Used: /Users/alfredolivas/Documents/Arduino/libraries/GifDecoder
    Not used: /Users/alfredolivas/Documents/Arduino/libraries/AnimatedGIFs_SD-master
    
    With TD 1.55 there should be only one copy of /SdFat coming form the Teensy install folder - though it seems to have selected the teensy/avr copy

  17. #17
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    25,222
    Can you be more specific, so I can quickly reproduce this problem without guesswork?

    Please try to imaging I fell behind by about 200 forum messages and have many other questions to answer. If you installed all this stuff using the Arduino Library Manager, screenshots showing which libraries and versions would really help me to quickly recreate your problem. If you downloaded stuff from github, I need links and details to recreate the same install you have.

    I also need a program I can load into Arduino and then click Verify. Your latest message isn't even a complete setup() function, so it's going to give a compiler error about missing stuff, rather than giving me the same error you're experiencing. I hope you can understand that giving me (and everyone else here) the ability to easily recreate the SAME error would be a good way to help us to help you.

  18. #18
    Junior Member
    Join Date
    Oct 2021
    Posts
    11

    Program has an error and won't compile.

    Quote Originally Posted by PaulStoffregen View Post
    Can you be more specific, so I can quickly reproduce this problem without guesswork?

    Please try to imaging I fell behind by about 200 forum messages and have many other questions to answer. If you installed all this stuff using the Arduino Library Manager, screenshots showing which libraries and versions would really help me to quickly recreate your problem. If you downloaded stuff from github, I need links and details to recreate the same install you have.

    I also need a program I can load into Arduino and then click Verify. Your latest message isn't even a complete setup() function, so it's going to give a compiler error about missing stuff, rather than giving me the same error you're experiencing. I hope you can understand that giving me (and everyone else here) the ability to easily recreate the SAME error would be a good way to help us to help you.


    /*
    * Animated GIFs Display Code for SmartMatrix and HUB75 RGB LED Panels
    *
    * Uses SmartMatrix Library written by Louis Beaudoin at pixelmatix.com
    *
    * Written by: Craig A. Lindley
    *
    * Copyright (c) 2014 Craig A. Lindley
    * Refactoring by Louis Beaudoin (Pixelmatix)
    *
    * Permission is hereby granted, free of charge, to any person obtaining a copy of
    * this software and associated documentation files (the "Software"), to deal in
    * the Software without restriction, including without limitation the rights to
    * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
    * the Software, and to permit persons to whom the Software is furnished to do so,
    * subject to the following conditions:
    *
    * The above copyright notice and this permission notice shall be included in all
    * copies or substantial portions of the Software.
    *
    * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
    * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
    * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
    * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
    * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
    */

    /*
    * This SmartMatrix Library example displays GIF animations loaded from a SD Card connected to the Teensy 3/4 and ESP32
    *
    * This example requires SmartMatrix Library 4.0 and AnimatedGIF Library to be installed, you can do this from Arduino Library Manager
    * - https://github.com/pixelmatix/SmartMatrix
    * - https://github.com/bitbank2/AnimatedGIF
    *
    * The example can be modified to drive displays other than SmartMatrix by replacing SmartMatrix Library calls in setup() and
    * the *Callback() functions with calls to a different library (look for the USE_SMARTMATRIX and ENABLE_SCROLLING blocks and replace)
    *
    * Wiring is on the default Teensy 3.2 SPI pins, and chip select can be on any GPIO,
    * set by defining SD_CS in the code below. For Teensy 3.5/3.6/4.1 with the onboard SDIO, SD_CS should be the default BUILTIN_SDCARD
    * Function | Pin
    * DOUT | 11
    * DIN | 12
    * CLK | 13
    * CS (default) | 15
    *
    * Wiring for ESP32 follows the default for the ESP32 SD Library, see: https://github.com/espressif/arduino...r/libraries/SD
    *
    * This code first looks for .gif files in the /gifs/ directory
    * (customize below with the GIF_DIRECTORY definition) then plays random GIFs in the directory,
    * looping each GIF for DISPLAY_TIME_SECONDS
    *
    * This example is meant to give you an idea of how to add GIF playback to your own sketch.
    * For a project that adds GIF playback with other features, take a look at
    * Light Appliance and Aurora:
    * https://github.com/CraigLindley/LightAppliance
    * https://github.com/pixelmatix/aurora
    *
    * If you find any GIFs that won't play properly, please attach them to a new
    * Issue post in the GitHub repo here:
    * https://github.com/pixelmatix/AnimatedGIFs/issues
    */

    /*
    * CONFIGURATION:
    * - Uncomment one line to select your MatrixHardware configuration - configuration header needs to be included before <SmartMatrix.h>
    * - update the "SmartMatrix configuration and memory allocation" section to match the width and height and other configuration of your display
    * - Note for 128x32 and 64x64 displays with Teensy 3.2 - need to reduce RAM:
    * set kRefreshDepth=24 and kDmaBufferRows=2 or set USB Type: "None" in Arduino,
    * decrease refreshRate in setup() to 90 or lower to get good an accurate GIF frame rate
    * - Set the chip select pin for your board. On Teensy 3.5/3.6/4.1, the onboard microSD CS pin is "BUILTIN_SDCARD"
    * - For ESP32 used with large panels, you don't need to lower the refreshRate, but you can lower the frameRate (number of times the refresh buffer
    * is updaed with new data per second), giving more time for the CPU to decode the GIF.
    * Use matrix.setMaxCalculationCpuPercentage() or matrix.setCalcRefreshRateDivider()
    */

    // uncomment one line to select your MatrixHardware configuration - configuration header needs to be included before <SmartMatrix.h>
    //#include <MatrixHardware_Teensy3_ShieldV4.h> // SmartLED Shield for Teensy 3 (V4)
    //#include <MatrixHardware_Teensy4_ShieldV5.h> // SmartLED Shield for Teensy 4 (V5)
    #include <MatrixHardware_Teensy3_ShieldV1toV3.h> // SmartMatrix Shield for Teensy 3 V1-V3
    //#include <MatrixHardware_Teensy4_ShieldV4Adapter.h> // Teensy 4 Adapter attached to SmartLED Shield for Teensy 3 (V4)
    //#include <MatrixHardware_ESP32_V0.h> // This file contains multiple ESP32 hardware configurations, edit the file to define GPIOPINOUT (or add #define GPIOPINOUT with a hardcoded number before this #include)
    //#include "MatrixHardware_Custom.h" // Copy an existing MatrixHardware file to your Sketch directory, rename, customize, and you can include it like this
    #include <SmartMatrix.h>

    #include <SD.h>
    #include <GifDecoder.h>
    #include "FilenameFunctions.h"

    #define DISPLAY_TIME_SECONDS 120 //RUN TIME
    #define NUMBER_FULL_CYCLES 100

    #define USE_SMARTMATRIX 1
    #define ENABLE_SCROLLING 1

    // range 0-255
    const int defaultBrightness = 255;

    const rgb24 COLOR_BLACK = {
    0, 0, 0 };

    #if (USE_SMARTMATRIX == 1)
    /* SmartMatrix configuration and memory allocation */
    #define COLOR_DEPTH 24 // Choose the color depth used for storing pixels in the layers: 24 or 48 (24 is good for most sketches - If the sketch uses type `rgb24` directly, COLOR_DEPTH must be 24)
    const uint16_t kMatrixWidth = 32; // Set to the width of your display, must be a multiple of 8
    const uint16_t kMatrixHeight = 32; // Set to the height of your display
    const uint8_t kRefreshDepth = 36; // Tradeoff of color quality vs refresh rate, max brightness, and RAM usage. 36 is typically good, drop down to 24 if you need to. On Teensy, multiples of 3, up to 48: 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45, 48. On ESP32: 24, 36, 48
    const uint8_t kDmaBufferRows = 4; // known working: 2-4, use 2 to save RAM, more to keep from dropping frames and automatically lowering refresh rate. (This isn't used on ESP32, leave as default)
    const uint8_t kPanelType = SM_PANELTYPE_HUB75_32ROW_MOD16SCAN; // Choose the configuration that matches your panels. See more details in MatrixCommonHub75.h and the docs: https://github.com/pixelmatix/SmartMatrix/wiki
    const uint32_t kMatrixOptions = (SM_HUB75_OPTIONS_NONE); // see docs for options: https://github.com/pixelmatix/SmartMatrix/wiki
    const uint8_t kBackgroundLayerOptions = (SM_BACKGROUND_OPTIONS_NONE);
    const uint8_t kScrollingLayerOptions = (SM_SCROLLING_OPTIONS_NONE);

    SMARTMATRIX_ALLOCATE_BUFFERS(matrix, kMatrixWidth, kMatrixHeight, kRefreshDepth, kDmaBufferRows, kPanelType, kMatrixOptions);
    SMARTMATRIX_ALLOCATE_BACKGROUND_LAYER(backgroundLa yer, kMatrixWidth, kMatrixHeight, COLOR_DEPTH, kBackgroundLayerOptions);
    #if (ENABLE_SCROLLING == 1)
    SMARTMATRIX_ALLOCATE_SCROLLING_LAYER(scrollingLaye r, kMatrixWidth, kMatrixHeight, COLOR_DEPTH, kScrollingLayerOptions);
    #endif
    #endif

    /* template parameters are maxGifWidth, maxGifHeight, lzwMaxBits
    *
    * lzwMaxBits is included for backwards compatibility reasons, but isn't used anymore
    */
    GifDecoder<kMatrixWidth, kMatrixHeight, 12> decoder;

    // Chip select for SD card
    #if defined(ESP32)
    #define SD_CS 5
    #elif defined (ARDUINO)
    #define SD_CS BUILTIN_SDCARD
    #define SD_CS 15
    #endif

    #if defined(ESP32)
    // ESP32 SD Library can't handle a trailing slash in the directory name
    #define GIF_DIRECTORY "/gifs"
    #else
    // Teensy SD Library requires a trailing slash in the directory name
    #define GIF_DIRECTORY "/gifs/"
    #endif

    int num_files;

    void screenClearCallback(void) {
    #if (USE_SMARTMATRIX == 1)
    backgroundLayer.fillScreen({0,0,0});
    #endif
    }

    void updateScreenCallback(void) {
    #if (USE_SMARTMATRIX == 1)
    backgroundLayer.swapBuffers();
    #endif
    }

    void drawPixelCallback(int16_t x, int16_t y, uint8_t red, uint8_t green, uint8_t blue) {
    #if (USE_SMARTMATRIX == 1)
    backgroundLayer.drawPixel(x, y, {red, green, blue});
    #endif
    }


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

    decoder.setFileSeekCallback(fileSeekCallback);
    decoder.setFilePositionCallback(filePositionCallba ck);
    decoder.setFileReadCallback(fileReadCallback);
    decoder.setFileReadBlockCallback(fileReadBlockCall back);

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

    Serial.begin(115200);

    // give time for USB Serial to be ready
    delay(1000);

    Serial.println("Starting AnimatedGIFs Sketch");

    #if (USE_SMARTMATRIX == 1)
    // Initialize matrix
    matrix.addLayer(&backgroundLayer);
    #if (ENABLE_SCROLLING == 1)
    matrix.addLayer(&scrollingLayer);
    #endif

    matrix.setBrightness(defaultBrightness);


    // for large panels, may want to set the refresh rate lower to leave more CPU time to decoding GIFs (needed if GIFs are playing back slowly)
    //matrix.setRefreshRate(90);

    #if !defined(ESP32)
    matrix.begin();
    #endif

    #if defined(ESP32)
    // for large panels on ESP32, may want to set the max percentage time dedicated to updating the refresh frames lower, to leave more CPU time to decoding GIFs (needed if GIFs are playing back slowly)
    //matrix.setMaxCalculationCpuPercentage(50);

    // alternatively, for large panels on ESP32, may want to set the calculation refresh rate divider lower to leave more CPU time to decoding GIFs (needed if GIFs are playing back slowly) - this has the same effect as matrix.setMaxCalculationCpuPercentage() but is set with a different parameter
    //matrix.setCalcRefreshRateDivider(4);

    // The ESP32 SD Card library is going to want to malloc about 28000 bytes of DMA-capable RAM, make sure at least that much is left free
    matrix.begin(28000);
    #endif

    // Clear screen
    backgroundLayer.fillScreen(COLOR_BLACK);
    backgroundLayer.swapBuffers();
    #endif

    if(initFileSystem(SD_CS) < 0) {
    #if (ENABLE_SCROLLING == 1)
    scrollingLayer.start("No SD card", -1);
    #endif
    Serial.println("No SD card");
    while(1);
    }

    // Determine how many animated GIF files exist
    num_files = enumerateGIFFiles(GIF_DIRECTORY, true);

    if(num_files < 0) {
    #if (ENABLE_SCROLLING == 1)
    scrollingLayer.start("No gifs directory", -1);
    #endif
    Serial.println("No gifs directory");
    while(1);
    }

    if(!num_files) {
    #if (ENABLE_SCROLLING == 1)
    scrollingLayer.start("Empty gifs directory", -1);
    #endif
    Serial.println("Empty gifs directory");
    while(1);
    }
    }


    void loop() {
    static unsigned long displayStartTime_millis;
    static int nextGIF = 1; // we haven't loaded a GIF yet on first pass through, make sure we do that

    unsigned long now = millis();

    static int index = 0;

    #if 1
    // default behavior is to play the gif for DISPLAY_TIME_SECONDS or for NUMBER_FULL_CYCLES, whichever comes first
    if((now - displayStartTime_millis) > (DISPLAY_TIME_SECONDS * 1000) || decoder.getCycleNumber() > NUMBER_FULL_CYCLES)
    nextGIF = 1;
    #else
    // alt behavior is to play the gif until both DISPLAY_TIME_SECONDS and NUMBER_FULL_CYCLES have passed
    if((now - displayStartTime_millis) > (DISPLAY_TIME_SECONDS * 1000) && decoder.getCycleNumber() > NUMBER_FULL_CYCLES)
    nextGIF = 1;
    #endif

    if(nextGIF)
    {
    nextGIF = 0;

    if (openGifFilenameByIndex(GIF_DIRECTORY, index) >= 0) {
    // Can clear screen for new animation here, but this might cause flicker with short animations
    // matrix.fillScreen(COLOR_BLACK);
    // matrix.swapBuffers();

    // start decoding, skipping to the next GIF if there's an error
    if(decoder.startDecoding() < 0) {
    nextGIF = 1;
    return;
    }

    // Calculate time in the future to terminate animation
    displayStartTime_millis = now;
    }

    // get the index for the next pass through
    if (++index >= num_files) {
    index = 0;
    }

    }

    if(decoder.decodeFrame() < 0) {
    // There's an error with this GIF, go to the next one
    nextGIF = 1;
    }
    }

    I wish I knew how to use the file tree on my iMac. I have no idea how to begin at USERS and contine through the tree to where the USED files reside. It's a complete mystery to me how Arduino locates and places any and all companion files.
    FredEBear

  19. #19
    Senior Member
    Join Date
    Nov 2012
    Posts
    1,768
    We'll need a copy of FilenameFunctions.h to compile this code.

    Pete

  20. #20
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    15,271
    Quote Originally Posted by el_supremo View Post
    We'll need a copy of FilenameFunctions.h to compile this code.

    Pete
    This from another second thread:

    Quote Originally Posted by FredEBear View Post
    FredEBear here again. Can't find old thread from earlier. el_supremo asked me for this .h file so here it is.
    FilenameFunctions.h

    And here's the code. Latest development...I can't find my SKETCHES folder. It's gone. I'm trying to condense all Arduino stuff as it appears to be scattered everywhere but not having any luck with this chore.
    and the code.
    Code:
    /*
     * Animated GIFs Display Code for SmartMatrix and HUB75 RGB LED Panels
     *
     * Uses SmartMatrix Library written by Louis Beaudoin at pixelmatix.com
     *
     * Written by: Craig A. Lindley
     *
     * Copyright (c) 2014 Craig A. Lindley
     * Refactoring by Louis Beaudoin (Pixelmatix)
     *
     * Permission is hereby granted, free of charge, to any person obtaining a copy of
     * this software and associated documentation files (the "Software"), to deal in
     * the Software without restriction, including without limitation the rights to
     * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
     * the Software, and to permit persons to whom the Software is furnished to do so,
     * subject to the following conditions:
     *
     * The above copyright notice and this permission notice shall be included in all
     * copies or substantial portions of the Software.
     *
     * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
     * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
     * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
     * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
     * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
     */
    
    /*
     * This SmartMatrix Library example displays GIF animations loaded from a SD Card connected to the Teensy 3/4 and ESP32
     *
     * This example requires SmartMatrix Library 4.0 and AnimatedGIF Library to be installed, you can do this from Arduino Library Manager
     *   - https://github.com/pixelmatix/SmartMatrix
     *   - https://github.com/bitbank2/AnimatedGIF
     *
     * The example can be modified to drive displays other than SmartMatrix by replacing SmartMatrix Library calls in setup() and
     * the *Callback() functions with calls to a different library (look for the USE_SMARTMATRIX and ENABLE_SCROLLING blocks and replace)
     *
     * Wiring is on the default Teensy 3.2 SPI pins, and chip select can be on any GPIO,
     * set by defining SD_CS in the code below.  For Teensy 3.5/3.6/4.1 with the onboard SDIO, SD_CS should be the default BUILTIN_SDCARD
     * Function     | Pin
     * DOUT         |  11
     * DIN          |  12
     * CLK          |  13
     * CS (default) |  15
     *
     * Wiring for ESP32 follows the default for the ESP32 SD Library, see: https://github.com/espressif/arduino...r/libraries/SD
     *
     * This code first looks for .gif files in the /gifs/ directory
     * (customize below with the GIF_DIRECTORY definition) then plays random GIFs in the directory,
     * looping each GIF for DISPLAY_TIME_SECONDS
     *
     * This example is meant to give you an idea of how to add GIF playback to your own sketch.
     * For a project that adds GIF playback with other features, take a look at
     * Light Appliance and Aurora:
     * https://github.com/CraigLindley/LightAppliance
     * https://github.com/pixelmatix/aurora
     *
     * If you find any GIFs that won't play properly, please attach them to a new
     * Issue post in the GitHub repo here:
     * https://github.com/pixelmatix/AnimatedGIFs/issues
     */
    
    /*
     * CONFIGURATION:
     *  - Uncomment one line to select your MatrixHardware configuration - configuration header needs to be included before <SmartMatrix.h>
     *  - update the "SmartMatrix configuration and memory allocation" section to match the width and height and other configuration of your display
     *  - Note for 128x32 and 64x64 displays with Teensy 3.2 - need to reduce RAM:
     *    set kRefreshDepth=24 and kDmaBufferRows=2 or set USB Type: "None" in Arduino,
     *    decrease refreshRate in setup() to 90 or lower to get good an accurate GIF frame rate
     *  - Set the chip select pin for your board.  On Teensy 3.5/3.6/4.1, the onboard microSD CS pin is "BUILTIN_SDCARD"
     *  - For ESP32 used with large panels, you don't need to lower the refreshRate, but you can lower the frameRate (number of times the refresh buffer
     *    is updaed with new data per second), giving more time for the CPU to decode the GIF.
     *    Use matrix.setMaxCalculationCpuPercentage() or matrix.setCalcRefreshRateDivider()
     */
    
    // uncomment one line to select your MatrixHardware configuration - configuration header needs to be included before <SmartMatrix.h>
    //#include <MatrixHardware_Teensy3_ShieldV4.h>        // SmartLED Shield for Teensy 3 (V4)
    //#include <MatrixHardware_Teensy4_ShieldV5.h>        // SmartLED Shield for Teensy 4 (V5)
    #include <MatrixHardware_Teensy3_ShieldV1toV3.h>    // SmartMatrix Shield for Teensy 3 V1-V3
    //#include <MatrixHardware_Teensy4_ShieldV4Adapter.h> // Teensy 4 Adapter attached to SmartLED Shield for Teensy 3 (V4)
    //#include <MatrixHardware_ESP32_V0.h>                // This file contains multiple ESP32 hardware configurations, edit the file to define GPIOPINOUT (or add #define GPIOPINOUT with a hardcoded number before this #include)
    //#include "MatrixHardware_Custom.h"                  // Copy an existing MatrixHardware file to your Sketch directory, rename, customize, and you can include it like this
    #include <SmartMatrix.h>
    
    #include <SD.h>
    #include <GifDecoder.h>
    #include "FilenameFunctions.h"
    
    #define DISPLAY_TIME_SECONDS 120 //RUN TIME
    #define NUMBER_FULL_CYCLES   100
    
    #define USE_SMARTMATRIX         1
    #define ENABLE_SCROLLING        1
    
    // range 0-255
    const int defaultBrightness = 255;
    
    const rgb24 COLOR_BLACK = {
        0, 0, 0 };
    
    #if (USE_SMARTMATRIX == 1)
    /* SmartMatrix configuration and memory allocation */
    #define COLOR_DEPTH 24                  // Choose the color depth used for storing pixels in the layers: 24 or 48 (24 is good for most sketches - If the sketch uses type `rgb24` directly, COLOR_DEPTH must be 24)
    const uint16_t kMatrixWidth = 32;       // Set to the width of your display, must be a multiple of 8
    const uint16_t kMatrixHeight = 32;      // Set to the height of your display
    const uint8_t kRefreshDepth = 36;       // Tradeoff of color quality vs refresh rate, max brightness, and RAM usage.  36 is typically good, drop down to 24 if you need to.  On Teensy, multiples of 3, up to 48: 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45, 48.  On ESP32: 24, 36, 48
    const uint8_t kDmaBufferRows = 4;       // known working: 2-4, use 2 to save RAM, more to keep from dropping frames and automatically lowering refresh rate.  (This isn't used on ESP32, leave as default)
    const uint8_t kPanelType = SM_PANELTYPE_HUB75_32ROW_MOD16SCAN;  // Choose the configuration that matches your panels.  See more details in MatrixCommonHub75.h and the docs: https://github.com/pixelmatix/SmartMatrix/wiki
    const uint32_t kMatrixOptions = (SM_HUB75_OPTIONS_NONE);        // see docs for options: https://github.com/pixelmatix/SmartMatrix/wiki
    const uint8_t kBackgroundLayerOptions = (SM_BACKGROUND_OPTIONS_NONE);
    const uint8_t kScrollingLayerOptions = (SM_SCROLLING_OPTIONS_NONE);
    
    SMARTMATRIX_ALLOCATE_BUFFERS(matrix, kMatrixWidth, kMatrixHeight, kRefreshDepth, kDmaBufferRows, kPanelType, kMatrixOptions);
    SMARTMATRIX_ALLOCATE_BACKGROUND_LAYER(backgroundLayer, kMatrixWidth, kMatrixHeight, COLOR_DEPTH, kBackgroundLayerOptions);
    #if (ENABLE_SCROLLING == 1)
    SMARTMATRIX_ALLOCATE_SCROLLING_LAYER(scrollingLayer, kMatrixWidth, kMatrixHeight, COLOR_DEPTH, kScrollingLayerOptions);
    #endif
    #endif
    
    /* template parameters are maxGifWidth, maxGifHeight, lzwMaxBits
     * 
     * lzwMaxBits is included for backwards compatibility reasons, but isn't used anymore
     */
    GifDecoder<kMatrixWidth, kMatrixHeight, 12> decoder;
    
    // Chip select for SD card
    #if defined(ESP32)
        #define SD_CS 5
    #elif defined (ARDUINO)
        #define SD_CS BUILTIN_SDCARD
        #define SD_CS 15
    #endif
    
    #if defined(ESP32)
        // ESP32 SD Library can't handle a trailing slash in the directory name
        #define GIF_DIRECTORY "/gifs"
    #else
        // Teensy SD Library requires a trailing slash in the directory name
        #define GIF_DIRECTORY "/gifs/"
    #endif
    
    int num_files;
    
    void screenClearCallback(void) {
    #if (USE_SMARTMATRIX == 1)
      backgroundLayer.fillScreen({0,0,0});
    #endif
    }
    
    void updateScreenCallback(void) {
    #if (USE_SMARTMATRIX == 1)
      backgroundLayer.swapBuffers();
    #endif
    }
    
    void drawPixelCallback(int16_t x, int16_t y, uint8_t red, uint8_t green, uint8_t blue) {
    #if (USE_SMARTMATRIX == 1)
        backgroundLayer.drawPixel(x, y, {red, green, blue});
    #endif
    }
    
    
    // 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);
    
        Serial.begin(115200);
    
        // give time for USB Serial to be ready
        delay(1000);
    
        Serial.println("Starting AnimatedGIFs Sketch");
    
    #if (USE_SMARTMATRIX == 1)
        // Initialize matrix
        matrix.addLayer(&backgroundLayer); 
    #if (ENABLE_SCROLLING == 1)
        matrix.addLayer(&scrollingLayer); 
    #endif
    
        matrix.setBrightness(defaultBrightness);
    
    
        // for large panels, may want to set the refresh rate lower to leave more CPU time to decoding GIFs (needed if GIFs are playing back slowly)
        //matrix.setRefreshRate(90);
    
    #if !defined(ESP32)
        matrix.begin();
    #endif
    
    #if defined(ESP32)
        // for large panels on ESP32, may want to set the max percentage time dedicated to updating the refresh frames lower, to leave more CPU time to decoding GIFs (needed if GIFs are playing back slowly)
        //matrix.setMaxCalculationCpuPercentage(50);
    
        // alternatively, for large panels on ESP32, may want to set the calculation refresh rate divider lower to leave more CPU time to decoding GIFs (needed if GIFs are playing back slowly) - this has the same effect as matrix.setMaxCalculationCpuPercentage() but is set with a different parameter
        //matrix.setCalcRefreshRateDivider(4);
    
        // The ESP32 SD Card library is going to want to malloc about 28000 bytes of DMA-capable RAM, make sure at least that much is left free
        matrix.begin(28000);
    #endif
    
        // Clear screen
        backgroundLayer.fillScreen(COLOR_BLACK);
        backgroundLayer.swapBuffers();
    #endif
    
        if(initFileSystem(SD_CS) < 0) {
    #if (ENABLE_SCROLLING == 1)
            scrollingLayer.start("No SD card", -1);
    #endif
            Serial.println("No SD card");
            while(1);
        }
    
        // Determine how many animated GIF files exist
        num_files = enumerateGIFFiles(GIF_DIRECTORY, true);
    
        if(num_files < 0) {
    #if (ENABLE_SCROLLING == 1)
            scrollingLayer.start("No gifs directory", -1);
    #endif
            Serial.println("No gifs directory");
            while(1);
        }
    
        if(!num_files) {
    #if (ENABLE_SCROLLING == 1)
            scrollingLayer.start("Empty gifs directory", -1);
    #endif
            Serial.println("Empty gifs directory");
            while(1);
        }
    }
    
    
    void loop() {
        static unsigned long displayStartTime_millis;
        static int nextGIF = 1;     // we haven't loaded a GIF yet on first pass through, make sure we do that
    
        unsigned long now = millis();
    
        static int index = 0;
    
    #if 1
        // default behavior is to play the gif for DISPLAY_TIME_SECONDS or for NUMBER_FULL_CYCLES, whichever comes first
        if((now - displayStartTime_millis) > (DISPLAY_TIME_SECONDS * 1000) || decoder.getCycleNumber() > NUMBER_FULL_CYCLES)
            nextGIF = 1;
    #else
        // alt behavior is to play the gif until both DISPLAY_TIME_SECONDS and NUMBER_FULL_CYCLES have passed
        if((now - displayStartTime_millis) > (DISPLAY_TIME_SECONDS * 1000) && decoder.getCycleNumber() > NUMBER_FULL_CYCLES)
            nextGIF = 1;
    #endif
    
        if(nextGIF)
        {
            nextGIF = 0;
    
            if (openGifFilenameByIndex(GIF_DIRECTORY, index) >= 0) {
                // Can clear screen for new animation here, but this might cause flicker with short animations
                // matrix.fillScreen(COLOR_BLACK);
                // matrix.swapBuffers();
    
                // start decoding, skipping to the next GIF if there's an error
                if(decoder.startDecoding() < 0) {
                    nextGIF = 1;
                    return;
                }
    
                // Calculate time in the future to terminate animation
                displayStartTime_millis = now;
            }
    
            // get the index for the next pass through
            if (++index >= num_files) {
                index = 0;
            }
    
        }
    
        if(decoder.decodeFrame() < 0) {
            // There's an error with this GIF, go to the next one
            nextGIF = 1;
        }
    }

  21. #21
    Member
    Join Date
    Aug 2018
    Location
    Brisbane, Australia
    Posts
    79
    It's the identical code as #18, not what was asked for

  22. #22
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    15,271
    Quote Originally Posted by thebigg View Post
    It's the identical code as #18, not what was asked for
    That's what was pulled from this double posting on a new thread : pjrc.com/threads/68491-Teensy-not-communicating-with-Arduino-IDE

  23. #23
    Member
    Join Date
    Aug 2018
    Location
    Brisbane, Australia
    Posts
    79
    Quote Originally Posted by defragster View Post
    That's what was pulled from this double posting on a new thread : pjrc.com/threads/68491-Teensy-not-communicating-with-Arduino-IDE
    I know. Sometimes its really difficult to try to help.

  24. #24
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    15,271
    Seems this may be problem indicator:
    Code:
    redEBear here again. Can't find old thread from earlier. el_supremo asked me for this .h file so here it is.
    FilenameFunctions.h
    
    And here's the code. Latest development...I can't find my SKETCHES folder. It's gone. I'm trying to condense all Arduino stuff
     as it appears to be scattered everywhere but not having any luck with this chore.
    On Windows here but, The sketchbook folder is shown and controlled in the config area - "Ctrl+," on windows.

    That points to the default sketch save location and importantly also has the "libraries" folder where user installed libraries are placed and given precedence over TeensyInstaller and other libs in general.

    That folder needs to be known and found - the Build Console output will indicate where it is pulling libraries from.

    Also the post left as #9 showed parts coming form two places - one should be the sketchbook and the other the installer location?

    As long as this code is meant to build for a T_3.2 and not one needing "BUILTIN_SDCARD" as noted in p#13 .

  25. #25
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    25,222
    Quote Originally Posted by FredEBear View Post
    FilenameFunctions.h IS included into the library. I can't figure out why Arduino can't see it!
    Did you ever get this to work?

    Not sure why I didn't see this earlier, but looking at this thread again today, I'm noticing your copy of Arduino is inside a folder with a single quote character in its name.

    /Users/alfredolivas/Desktop/Desktop - Alfred’s iMac - 1/Arduino/Arduino.app/
    Arduino's management of filenames and paths uses quote characters. I know it depends on double quotes, but not so sure what role single quotes might have. Maybe this folder name is playing havoc with the way Arduino runs the compiler?

    Should be simple enough to just rename the folder. If you're still watching this thread and having this problem, please let me know if this was the problem. Might help to know, in case we get this for any other Mac users, or theoretically Linux & Windows too. If this really is the problem and the operating system allows this in folder names, maybe future software should handle it or at least be changed to give a more helpful error message.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •