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

Thread: XRAD: Need help, code not working on T 3.6, works on 3.2

  1. #1
    Junior Member XRAD's Avatar
    Join Date
    Aug 2018
    Posts
    18

    XRAD: Need help, code not working on T 3.6, works on 3.2

    Hi,
    I have this code which runs great on 3.2:
    Code:
    #include <UTFT_Geometry.h>
    #include <UTFT.h>
    
    #define width 310// minus a bit from 320 so that edges not lost
    #define height 230//minus a bit from 240 so that edges not lost
    #define radius 10  // drawCircle radius
    
    UTFT myGLCD(ILI9341_S5P, 12,  13,  10,   8,   9); // (ILI9341_S5P, MISO, SCK, CS, RST,DC)
    UTFT_Geometry geo(&myGLCD);
    
    // initial position of the point is the middle of the screen
    // initial position of the point is the middle of the screen
    int xPos = width / 2;
    int yPos = height / 2;
    
    // direction and speed
    int xDir = 20;//1-20 works well
    int yDir = 20;
    
    // variables to keep track of the point's location
    int xPrev = xPos;
    int yPrev = yPos;
    
    void setup() {
      myGLCD.InitLCD();
      myGLCD.InitLCD(LANDSCAPE);
      myGLCD.fillScr(VGA_BLACK);
      myGLCD.setColor(200, 0, 0);
    }
    
    void loop() {
      // update the location of the dot
      xPos = xPos + xDir;
      yPos = yPos + yDir;
    
      // check if the current location is different than the previous
      if (xPos != xPrev || yPos != yPrev) {
        myGLCD.setColor(0, 0, 0); // set the 'draw' color to black
        myGLCD.drawCircle(xPrev, yPrev, radius); // color in the previous point(s)
      }
    
      // draw a point in the current location
      myGLCD.setColor(255, 255, 255);
      myGLCD.drawCircle(xPos, yPos, radius);
    
      // if the x or x position is at the screen edges, reverse direction
      if (xPos >= width - 15 || xPos <= 20) { //screen borders minus (diameter +/- a bit) to avod wrap
        xDir = xDir * -1;
      }
      if (yPos >= height - 15 || yPos <= 20) {
        yDir = yDir * -1;
      }
    
      // update the point's previous location
      xPrev = xPos;
      yPrev = yPos;
    
      // a 33ms delay means the screen updates 30 times a second
      delay(33);
    }
    But will not compile for 3.6. I have newest teensy loader 1.45 and newest UTFT.h and Geo.h.
    Arduino IDE

    Any help much appreciated!

    error message verbose:


    Code:
    Arduino: 1.8.8 (Windows 10), TD: 1.45, Board: "Teensy 3.6, Serial, 180 MHz, Faster, US English"
    
    C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\FGM\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\FGM\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\FGM\Documents\Arduino\libraries -fqbn=teensy:avr:teensy36:usb=serial,speed=180,opt=o2std,keys=en-us -vid-pid=0X16C0_0X0483 -ide-version=10808 -build-path C:\Users\FGM\AppData\Local\Temp\arduino_build_738043 -warnings=none -build-cache C:\Users\FGM\AppData\Local\Temp\arduino_cache_294423 -verbose C:\Users\FGM\Desktop\LIDAR_MOVEMENT_ACROSS_SCREEN\LIDAR_MOVEMENT_ACROSS_SCREEN.ino
    C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\FGM\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\FGM\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\FGM\Documents\Arduino\libraries -fqbn=teensy:avr:teensy36:usb=serial,speed=180,opt=o2std,keys=en-us -vid-pid=0X16C0_0X0483 -ide-version=10808 -build-path C:\Users\FGM\AppData\Local\Temp\arduino_build_738043 -warnings=none -build-cache C:\Users\FGM\AppData\Local\Temp\arduino_cache_294423 -verbose C:\Users\FGM\Desktop\LIDAR_MOVEMENT_ACROSS_SCREEN\LIDAR_MOVEMENT_ACROSS_SCREEN.ino
    Using board 'teensy36' from platform in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr
    Using core 'teensy3' from platform in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr
    Detecting libraries used...
    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=145 -DARDUINO=10808 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_738043\\sketch\\LIDAR_MOVEMENT_ACROSS_SCREEN.ino.cpp" -o nul
    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=145 -DARDUINO=10808 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT_Geometry" "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_738043\\sketch\\LIDAR_MOVEMENT_ACROSS_SCREEN.ino.cpp" -o nul
    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=145 -DARDUINO=10808 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT_Geometry" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT" "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_738043\\sketch\\LIDAR_MOVEMENT_ACROSS_SCREEN.ino.cpp" -o nul
    Using cached library dependencies for file: C:\Users\FGM\Documents\Arduino\libraries\UTFT_Geometry\UTFT_Geometry.cpp
    Using cached library dependencies for file: C:\Users\FGM\Documents\Arduino\libraries\UTFT\DefaultFonts.c
    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=145 -DARDUINO=10808 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT_Geometry" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT" "C:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT\\UTFT.cpp" -o nul
    Error while detecting libraries included by C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp
    Generating function prototypes...
    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=145 -DARDUINO=10808 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT_Geometry" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT" "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_738043\\sketch\\LIDAR_MOVEMENT_ACROSS_SCREEN.ino.cpp" -o "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_738043\\preproc\\ctags_target_for_gcc_minus_e.cpp"
    "C:\\Program Files (x86)\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_738043\\preproc\\ctags_target_for_gcc_minus_e.cpp"
    Compiling sketch...
    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/precompile_helper" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr/cores/teensy3" "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_738043" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -x c++-header -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=145 -DARDUINO=10808 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr/cores/teensy3" "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_738043/pch/Arduino.h" -o "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_738043/pch/Arduino.h.gch"
    Using previously compiled file: C:\Users\FGM\AppData\Local\Temp\arduino_build_738043\pch\Arduino.h.gch
    
    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=145 -DARDUINO=10808 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_738043/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT_Geometry" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT" "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_738043\\sketch\\LIDAR_MOVEMENT_ACROSS_SCREEN.ino.cpp" -o "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_738043\\sketch\\LIDAR_MOVEMENT_ACROSS_SCREEN.ino.cpp.o"
    In file included from C:\Users\FGM\Documents\Arduino\libraries\UTFT/UTFT.h:167:0,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT_Geometry/UTFT_Geometry.h:28,
    
                     from C:\Users\FGM\Desktop\LIDAR_MOVEMENT_ACROSS_SCREEN\LIDAR_MOVEMENT_ACROSS_SCREEN.ino:2:
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT/hardware/arm/HW_ARM_defines.h:35:0: warning: "pgm_read_word" redefined
    
     #define pgm_read_word(data) *data
    
     ^
    
    In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:41:0,
    
                     from C:\Users\FGM\AppData\Local\Temp\arduino_build_738043\pch\Arduino.h:6:
    
    C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr/pgmspace.h:101:0: note: this is the location of the previous definition
    
     #define pgm_read_word(addr) ({ \
    
     ^
    
    In file included from C:\Users\FGM\Documents\Arduino\libraries\UTFT/UTFT.h:167:0,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT_Geometry/UTFT_Geometry.h:28,
    
                     from C:\Users\FGM\Desktop\LIDAR_MOVEMENT_ACROSS_SCREEN\LIDAR_MOVEMENT_ACROSS_SCREEN.ino:2:
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT/hardware/arm/HW_ARM_defines.h:36:0: warning: "pgm_read_byte" redefined
    
     #define pgm_read_byte(data) *data
    
     ^
    
    In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:41:0,
    
                     from C:\Users\FGM\AppData\Local\Temp\arduino_build_738043\pch\Arduino.h:6:
    
    C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr/pgmspace.h:95:0: note: this is the location of the previous definition
    
     #define pgm_read_byte(addr) (*(const unsigned char *)(addr))
    
     ^
    
    Compiling libraries...
    Compiling library "UTFT_Geometry"
    Using previously compiled file: C:\Users\FGM\AppData\Local\Temp\arduino_build_738043\libraries\UTFT_Geometry\UTFT_Geometry.cpp.o
    Compiling library "UTFT"
    Using previously compiled file: C:\Users\FGM\AppData\Local\Temp\arduino_build_738043\libraries\UTFT\DefaultFonts.c.o
    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=145 -DARDUINO=10808 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_738043/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT_Geometry" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT" "C:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT\\UTFT.cpp" -o "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_738043\\libraries\\UTFT\\UTFT.cpp.o"
    In file included from C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.h:167:0,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp:40:
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT\hardware/arm/HW_ARM_defines.h:35:0: warning: "pgm_read_word" redefined
    
     #define pgm_read_word(data) *data
    
     ^
    
    In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:41:0,
    
                     from C:\Users\FGM\AppData\Local\Temp\arduino_build_738043/pch/Arduino.h:6,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.h:166,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp:40:
    
    C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr/pgmspace.h:101:0: note: this is the location of the previous definition
    
     #define pgm_read_word(addr) ({ \
    
     ^
    
    In file included from C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.h:167:0,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp:40:
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT\hardware/arm/HW_ARM_defines.h:36:0: warning: "pgm_read_byte" redefined
    
     #define pgm_read_byte(data) *data
    
     ^
    
    In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:41:0,
    
                     from C:\Users\FGM\AppData\Local\Temp\arduino_build_738043/pch/Arduino.h:6,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.h:166,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp:40:
    
    C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr/pgmspace.h:95:0: note: this is the location of the previous definition
    
     #define pgm_read_byte(addr) (*(const unsigned char *)(addr))
    
     ^
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp:85:4: error: #error "Unsupported ARM MCU!"
    
       #error "Unsupported ARM MCU!"
    
        ^
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp: In member function 'void UTFT::printNumF(double, byte, int, int, char, int, char)':
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp:1095:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    
       for (int i=0; i<sizeof(st); i++)
    
                      ^
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp:1105:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    
        for (int i=1; i<sizeof(st); i++)
    
                       ^
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp:1111:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    
        for (int i=0; i<sizeof(st); i++)
    
                       ^
    
    Using library UTFT_Geometry in folder: C:\Users\FGM\Documents\Arduino\libraries\UTFT_Geometry (legacy)
    Using library UTFT in folder: C:\Users\FGM\Documents\Arduino\libraries\UTFT (legacy)
    Error compiling for board Teensy 3.6.

  2. #2
    Senior Member
    Join Date
    Nov 2012
    Posts
    1,069
    It compiles for me after I remove the UTFT_Geometry.h dependency which I can't find.
    Try installing the most recent Teensyduino which is 1.46 beta 10. That might fix the problem.

    Pete

  3. #3
    Junior Member XRAD's Avatar
    Join Date
    Aug 2018
    Posts
    18
    Hi Pete, THX for reply.

    I will try your suggestions.

    I use geo for drawing the arcs in the sketch:
    http://www.rinkydinkelectronics.com/library.php?id=60

  4. #4
    Senior Member
    Join Date
    Nov 2012
    Posts
    1,069
    Yup, it compiles with the most recent Teensyduino.

    Pete

  5. #5
    Junior Member XRAD's Avatar
    Join Date
    Aug 2018
    Posts
    18
    Hi Pete,
    Downloaded and installed and using 1.46-beta10

    using same code in post #1....

    Compiles fine for T3.2
    Not compiling for T3.6



    3.2 verbose
    No errors


    3.6 verbose
    Code:
    Arduino: 1.8.8 (Windows 10), TD: 1.46-beta10, Board: "Teensy 3.6, Serial, 180 MHz, Faster, US English"
    
    C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\FGM\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\FGM\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\FGM\Documents\Arduino\libraries -fqbn=teensy:avr:teensy36:usb=serial,speed=180,opt=o2std,keys=en-us -ide-version=10808 -build-path C:\Users\FGM\AppData\Local\Temp\arduino_build_646137 -warnings=none -build-cache C:\Users\FGM\AppData\Local\Temp\arduino_cache_948672 -verbose C:\Users\FGM\Desktop\LIDAR_V3__version_5_draw_erase\LIDAR_V3__version_5_draw_erase.ino
    C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\FGM\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\FGM\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\FGM\Documents\Arduino\libraries -fqbn=teensy:avr:teensy36:usb=serial,speed=180,opt=o2std,keys=en-us -ide-version=10808 -build-path C:\Users\FGM\AppData\Local\Temp\arduino_build_646137 -warnings=none -build-cache C:\Users\FGM\AppData\Local\Temp\arduino_cache_948672 -verbose C:\Users\FGM\Desktop\LIDAR_V3__version_5_draw_erase\LIDAR_V3__version_5_draw_erase.ino
    Using board 'teensy36' from platform in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr
    Using core 'teensy3' from platform in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr
    Detecting libraries used...
    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=146 -DARDUINO=10808 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_646137\\sketch\\LIDAR_V3__version_5_draw_erase.ino.cpp" -o nul
    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=146 -DARDUINO=10808 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT" "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_646137\\sketch\\LIDAR_V3__version_5_draw_erase.ino.cpp" -o nul
    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=146 -DARDUINO=10808 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT_Geometry" "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_646137\\sketch\\LIDAR_V3__version_5_draw_erase.ino.cpp" -o nul
    Using cached library dependencies for file: C:\Users\FGM\Documents\Arduino\libraries\UTFT\DefaultFonts.c
    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=146 -DARDUINO=10808 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT_Geometry" "C:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT\\UTFT.cpp" -o nul
    Error while detecting libraries included by C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp
    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=146 -DARDUINO=10808 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT_Geometry" "C:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT_Geometry\\UTFT_Geometry.cpp" -o nul
    Generating function prototypes...
    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=146 -DARDUINO=10808 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT_Geometry" "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_646137\\sketch\\LIDAR_V3__version_5_draw_erase.ino.cpp" -o "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_646137\\preproc\\ctags_target_for_gcc_minus_e.cpp"
    "C:\\Program Files (x86)\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_646137\\preproc\\ctags_target_for_gcc_minus_e.cpp"
    Compiling sketch...
    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/precompile_helper" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr/cores/teensy3" "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_646137" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -x c++-header -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=146 -DARDUINO=10808 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr/cores/teensy3" "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_646137/pch/Arduino.h" -o "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_646137/pch/Arduino.h.gch"
    Using previously compiled file: C:\Users\FGM\AppData\Local\Temp\arduino_build_646137\pch\Arduino.h.gch
    
    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=146 -DARDUINO=10808 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_646137/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT_Geometry" "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_646137\\sketch\\LIDAR_V3__version_5_draw_erase.ino.cpp" -o "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_646137\\sketch\\LIDAR_V3__version_5_draw_erase.ino.cpp.o"
    In file included from C:\Users\FGM\Documents\Arduino\libraries\UTFT/UTFT.h:167:0,
    
                     from C:\Users\FGM\Desktop\LIDAR_V3__version_5_draw_erase\LIDAR_V3__version_5_draw_erase.ino:1:
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT/hardware/arm/HW_ARM_defines.h:35:0: warning: "pgm_read_word" redefined
    
     #define pgm_read_word(data) *data
    
     ^
    
    In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:41:0,
    
                     from C:\Users\FGM\AppData\Local\Temp\arduino_build_646137\pch\Arduino.h:6:
    
    C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr/pgmspace.h:101:0: note: this is the location of the previous definition
    
     #define pgm_read_word(addr) ({ \
    
     ^
    
    In file included from C:\Users\FGM\Documents\Arduino\libraries\UTFT/UTFT.h:167:0,
    
                     from C:\Users\FGM\Desktop\LIDAR_V3__version_5_draw_erase\LIDAR_V3__version_5_draw_erase.ino:1:
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT/hardware/arm/HW_ARM_defines.h:36:0: warning: "pgm_read_byte" redefined
    
     #define pgm_read_byte(data) *data
    
     ^
    
    In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:41:0,
    
                     from C:\Users\FGM\AppData\Local\Temp\arduino_build_646137\pch\Arduino.h:6:
    
    C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr/pgmspace.h:95:0: note: this is the location of the previous definition
    
     #define pgm_read_byte(addr) (*(const unsigned char *)(addr))
    
     ^
    
    Compiling libraries...
    Compiling library "UTFT"
    Using previously compiled file: C:\Users\FGM\AppData\Local\Temp\arduino_build_646137\libraries\UTFT\DefaultFonts.c.o
    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=146 -DARDUINO=10808 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_646137/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT_Geometry" "C:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT\\UTFT.cpp" -o "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_646137\\libraries\\UTFT\\UTFT.cpp.o"
    In file included from C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.h:167:0,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp:40:
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT\hardware/arm/HW_ARM_defines.h:35:0: warning: "pgm_read_word" redefined
    
     #define pgm_read_word(data) *data
    
     ^
    
    In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:41:0,
    
                     from C:\Users\FGM\AppData\Local\Temp\arduino_build_646137/pch/Arduino.h:6,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.h:166,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp:40:
    
    C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr/pgmspace.h:101:0: note: this is the location of the previous definition
    
     #define pgm_read_word(addr) ({ \
    
     ^
    
    In file included from C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.h:167:0,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp:40:
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT\hardware/arm/HW_ARM_defines.h:36:0: warning: "pgm_read_byte" redefined
    
     #define pgm_read_byte(data) *data
    
     ^
    
    In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:41:0,
    
                     from C:\Users\FGM\AppData\Local\Temp\arduino_build_646137/pch/Arduino.h:6,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.h:166,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp:40:
    
    C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr/pgmspace.h:95:0: note: this is the location of the previous definition
    
     #define pgm_read_byte(addr) (*(const unsigned char *)(addr))
    
     ^
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp:85:4: error: #error "Unsupported ARM MCU!"
    
       #error "Unsupported ARM MCU!"
    
        ^
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp: In member function 'void UTFT::printNumF(double, byte, int, int, char, int, char)':
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp:1095:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    
       for (int i=0; i<sizeof(st); i++)
    
                      ^
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp:1105:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    
        for (int i=1; i<sizeof(st); i++)
    
                       ^
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp:1111:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    
        for (int i=0; i<sizeof(st); i++)
    
                       ^
    
    Multiple libraries were found for "UTFT.h"
     Used: C:\Users\FGM\Documents\Arduino\libraries\UTFT
     Not used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\UTFT
    Using library UTFT in folder: C:\Users\FGM\Documents\Arduino\libraries\UTFT (legacy)
    Using library UTFT_Geometry in folder: C:\Users\FGM\Documents\Arduino\libraries\UTFT_Geometry (legacy)
    Error compiling for board Teensy 3.6.

    Tried this code which works fine on 3.2:
    Code:
    #include <UTFT_Geometry.h>
    #include <UTFT.h>
    
    #define width 310// minus a bit from 320 so that edges not lost
    #define height 230//minus a bit from 240 so that edges not lost
    #define radius 10  // drawCircle radius
    
    UTFT myGLCD(ILI9341_S5P, 12,  13,  10,   8,   9); // (ILI9341_S5P, MOSI, SCK, CS, RST,DC)
    UTFT_Geometry geo(&myGLCD);
    
    // initial position of the point is the middle of the screen
    // initial position of the point is the middle of the screen
    int xPos = width / 2;
    int yPos = height / 2;
    
    // direction and speed
    int xDir = 20;//1-20 works well
    int yDir = 20;
    
    // variables to keep track of the point's location
    int xPrev = xPos;
    int yPrev = yPos;
    
    void setup() {
      myGLCD.InitLCD();
      myGLCD.InitLCD(LANDSCAPE);
      myGLCD.fillScr(VGA_BLACK);
      myGLCD.setColor(200, 0, 0);
    }
    
    void loop() {
      // update the location of the dot
      xPos = xPos + xDir;
      yPos = yPos + yDir;
    
      // check if the current location is different than the previous
      if (xPos != xPrev || yPos != yPrev) {
        myGLCD.setColor(0, 0, 0); // set the 'draw' color to black
        myGLCD.drawCircle(xPrev, yPrev, radius); // color in the previous point(s)
      }
    
      // draw a point in the current location
      myGLCD.setColor(255, 255, 255);
      myGLCD.drawCircle(xPos, yPos, radius);
    
      // if the x or x position is at the screen edges, reverse direction
      if (xPos >= width - 15 || xPos <= 20) { //screen borders minus (diameter +/- a bit) to avod wrap
        xDir = xDir * -1;
      }
      if (yPos >= height - 15 || yPos <= 20) {
        yDir = yDir * -1;
      }
    
      // update the point's previous location
      xPrev = xPos;
      yPrev = yPos;
    
      // a 33ms delay means the screen updates 30 times a second
      delay(33);
    }
    does not compile for 3.6
    verbose:
    Code:
    Arduino: 1.8.8 (Windows 10), TD: 1.46-beta10, Board: "Teensy 3.6, Serial, 180 MHz, Faster, US English"
    
    C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\FGM\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\FGM\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\FGM\Documents\Arduino\libraries -fqbn=teensy:avr:teensy36:usb=serial,speed=180,opt=o2std,keys=en-us -vid-pid=0X16C0_0X0483 -ide-version=10808 -build-path C:\Users\FGM\AppData\Local\Temp\arduino_build_364373 -warnings=none -build-cache C:\Users\FGM\AppData\Local\Temp\arduino_cache_948672 -verbose C:\Users\FGM\Desktop\LIDAR_MOVEMENT_ACROSS_SCREEN\LIDAR_MOVEMENT_ACROSS_SCREEN.ino
    C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\FGM\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\FGM\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\FGM\Documents\Arduino\libraries -fqbn=teensy:avr:teensy36:usb=serial,speed=180,opt=o2std,keys=en-us -vid-pid=0X16C0_0X0483 -ide-version=10808 -build-path C:\Users\FGM\AppData\Local\Temp\arduino_build_364373 -warnings=none -build-cache C:\Users\FGM\AppData\Local\Temp\arduino_cache_948672 -verbose C:\Users\FGM\Desktop\LIDAR_MOVEMENT_ACROSS_SCREEN\LIDAR_MOVEMENT_ACROSS_SCREEN.ino
    Using board 'teensy36' from platform in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr
    Using core 'teensy3' from platform in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr
    Detecting libraries used...
    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=146 -DARDUINO=10808 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_364373\\sketch\\LIDAR_MOVEMENT_ACROSS_SCREEN.ino.cpp" -o nul
    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=146 -DARDUINO=10808 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT_Geometry" "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_364373\\sketch\\LIDAR_MOVEMENT_ACROSS_SCREEN.ino.cpp" -o nul
    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=146 -DARDUINO=10808 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT_Geometry" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT" "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_364373\\sketch\\LIDAR_MOVEMENT_ACROSS_SCREEN.ino.cpp" -o nul
    Using cached library dependencies for file: C:\Users\FGM\Documents\Arduino\libraries\UTFT_Geometry\UTFT_Geometry.cpp
    Using cached library dependencies for file: C:\Users\FGM\Documents\Arduino\libraries\UTFT\DefaultFonts.c
    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=146 -DARDUINO=10808 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT_Geometry" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT" "C:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT\\UTFT.cpp" -o nul
    Error while detecting libraries included by C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp
    Generating function prototypes...
    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=146 -DARDUINO=10808 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT_Geometry" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT" "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_364373\\sketch\\LIDAR_MOVEMENT_ACROSS_SCREEN.ino.cpp" -o "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_364373\\preproc\\ctags_target_for_gcc_minus_e.cpp"
    "C:\\Program Files (x86)\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_364373\\preproc\\ctags_target_for_gcc_minus_e.cpp"
    Compiling sketch...
    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/precompile_helper" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr/cores/teensy3" "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_364373" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -x c++-header -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=146 -DARDUINO=10808 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr/cores/teensy3" "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_364373/pch/Arduino.h" -o "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_364373/pch/Arduino.h.gch"
    Using previously compiled file: C:\Users\FGM\AppData\Local\Temp\arduino_build_364373\pch\Arduino.h.gch
    
    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=146 -DARDUINO=10808 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_364373/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT_Geometry" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT" "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_364373\\sketch\\LIDAR_MOVEMENT_ACROSS_SCREEN.ino.cpp" -o "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_364373\\sketch\\LIDAR_MOVEMENT_ACROSS_SCREEN.ino.cpp.o"
    In file included from C:\Users\FGM\Documents\Arduino\libraries\UTFT/UTFT.h:167:0,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT_Geometry/UTFT_Geometry.h:28,
    
                     from C:\Users\FGM\Desktop\LIDAR_MOVEMENT_ACROSS_SCREEN\LIDAR_MOVEMENT_ACROSS_SCREEN.ino:2:
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT/hardware/arm/HW_ARM_defines.h:35:0: warning: "pgm_read_word" redefined
    
     #define pgm_read_word(data) *data
    
     ^
    
    In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:41:0,
    
                     from C:\Users\FGM\AppData\Local\Temp\arduino_build_364373\pch\Arduino.h:6:
    
    C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr/pgmspace.h:101:0: note: this is the location of the previous definition
    
     #define pgm_read_word(addr) ({ \
    
     ^
    
    In file included from C:\Users\FGM\Documents\Arduino\libraries\UTFT/UTFT.h:167:0,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT_Geometry/UTFT_Geometry.h:28,
    
                     from C:\Users\FGM\Desktop\LIDAR_MOVEMENT_ACROSS_SCREEN\LIDAR_MOVEMENT_ACROSS_SCREEN.ino:2:
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT/hardware/arm/HW_ARM_defines.h:36:0: warning: "pgm_read_byte" redefined
    
     #define pgm_read_byte(data) *data
    
     ^
    
    In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:41:0,
    
                     from C:\Users\FGM\AppData\Local\Temp\arduino_build_364373\pch\Arduino.h:6:
    
    C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr/pgmspace.h:95:0: note: this is the location of the previous definition
    
     #define pgm_read_byte(addr) (*(const unsigned char *)(addr))
    
     ^
    
    Compiling libraries...
    Compiling library "UTFT_Geometry"
    Using previously compiled file: C:\Users\FGM\AppData\Local\Temp\arduino_build_364373\libraries\UTFT_Geometry\UTFT_Geometry.cpp.o
    Compiling library "UTFT"
    Using previously compiled file: C:\Users\FGM\AppData\Local\Temp\arduino_build_364373\libraries\UTFT\DefaultFonts.c.o
    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=146 -DARDUINO=10808 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_364373/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT_Geometry" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT" "C:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT\\UTFT.cpp" -o "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_364373\\libraries\\UTFT\\UTFT.cpp.o"
    In file included from C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.h:167:0,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp:40:
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT\hardware/arm/HW_ARM_defines.h:35:0: warning: "pgm_read_word" redefined
    
     #define pgm_read_word(data) *data
    
     ^
    
    In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:41:0,
    
                     from C:\Users\FGM\AppData\Local\Temp\arduino_build_364373/pch/Arduino.h:6,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.h:166,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp:40:
    
    C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr/pgmspace.h:101:0: note: this is the location of the previous definition
    
     #define pgm_read_word(addr) ({ \
    
     ^
    
    In file included from C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.h:167:0,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp:40:
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT\hardware/arm/HW_ARM_defines.h:36:0: warning: "pgm_read_byte" redefined
    
     #define pgm_read_byte(data) *data
    
     ^
    
    In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:41:0,
    
                     from C:\Users\FGM\AppData\Local\Temp\arduino_build_364373/pch/Arduino.h:6,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.h:166,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp:40:
    
    C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr/pgmspace.h:95:0: note: this is the location of the previous definition
    
     #define pgm_read_byte(addr) (*(const unsigned char *)(addr))
    
     ^
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp:85:4: error: #error "Unsupported ARM MCU!"
    
       #error "Unsupported ARM MCU!"
    
        ^
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp: In member function 'void UTFT::printNumF(double, byte, int, int, char, int, char)':
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp:1095:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    
       for (int i=0; i<sizeof(st); i++)
    
                      ^
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp:1105:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    
        for (int i=1; i<sizeof(st); i++)
    
                       ^
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp:1111:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    
        for (int i=0; i<sizeof(st); i++)
    
                       ^
    
    Multiple libraries were found for "UTFT.h"
     Used: C:\Users\FGM\Documents\Arduino\libraries\UTFT
     Not used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\UTFT
    Using library UTFT_Geometry in folder: C:\Users\FGM\Documents\Arduino\libraries\UTFT_Geometry (legacy)
    Using library UTFT in folder: C:\Users\FGM\Documents\Arduino\libraries\UTFT (legacy)
    Error compiling for board Teensy 3.6.

    not sure why you can compile and I have errors. I can get neopixels to display from the 3.6 without issue so my assumption is that the hardware is OK...

  6. #6
    Senior Member
    Join Date
    Nov 2012
    Posts
    1,069
    Used: C:\Users\FGM\Documents\Arduino\libraries\UTFT
    Not used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\UTFT
    You have two versions of the UTFT library. The IDE is using the one for Arduino and ignoring the one for Teensy. Temporarily move the Arduino UTFT library out of the libraries directory and try again.

    Pete

  7. #7
    Junior Member XRAD's Avatar
    Join Date
    Aug 2018
    Posts
    18
    Thx for reply. I did see that, and a few weeks back, I had to delete all arduino files using revo uninstaller. I had a few duplicates of UTFT, but these functioned OK with T3.2.

    So I deleted every UTFT lib file I could find and reinstalled it using the arduino add zip lib (same w/Geo).

    Zero problems compiling for 3.2...still will not compile for 3.6......not sure if it is something in the UTFT lib...I might have to go through it....

    Code:
    Arduino: 1.8.8 (Windows 10), TD: 1.46-beta10, Board: "Teensy 3.6, Serial, 180 MHz, Faster, US English"
    
    C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\FGM\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\FGM\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\FGM\Documents\Arduino\libraries -fqbn=teensy:avr:teensy36:usb=serial,speed=180,opt=o2std,keys=en-us -vid-pid=0X16C0_0X0483 -ide-version=10808 -build-path C:\Users\FGM\AppData\Local\Temp\arduino_build_32596 -warnings=none -build-cache C:\Users\FGM\AppData\Local\Temp\arduino_cache_451974 -verbose C:\Users\FGM\Desktop\LIDAR_MOVEMENT_ACROSS_SCREEN\LIDAR_MOVEMENT_ACROSS_SCREEN.ino
    C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\FGM\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\FGM\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\FGM\Documents\Arduino\libraries -fqbn=teensy:avr:teensy36:usb=serial,speed=180,opt=o2std,keys=en-us -vid-pid=0X16C0_0X0483 -ide-version=10808 -build-path C:\Users\FGM\AppData\Local\Temp\arduino_build_32596 -warnings=none -build-cache C:\Users\FGM\AppData\Local\Temp\arduino_cache_451974 -verbose C:\Users\FGM\Desktop\LIDAR_MOVEMENT_ACROSS_SCREEN\LIDAR_MOVEMENT_ACROSS_SCREEN.ino
    Using board 'teensy36' from platform in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr
    Using core 'teensy3' from platform in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr
    Build options changed, rebuilding all
    Detecting libraries used...
    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=146 -DARDUINO=10808 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_32596\\sketch\\LIDAR_MOVEMENT_ACROSS_SCREEN.ino.cpp" -o nul
    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=146 -DARDUINO=10808 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT_Geometry" "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_32596\\sketch\\LIDAR_MOVEMENT_ACROSS_SCREEN.ino.cpp" -o nul
    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=146 -DARDUINO=10808 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT_Geometry" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT" "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_32596\\sketch\\LIDAR_MOVEMENT_ACROSS_SCREEN.ino.cpp" -o nul
    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=146 -DARDUINO=10808 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT_Geometry" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT" "C:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT_Geometry\\UTFT_Geometry.cpp" -o nul
    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=146 -DARDUINO=10808 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT_Geometry" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT" "C:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT\\DefaultFonts.c" -o nul
    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=146 -DARDUINO=10808 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT_Geometry" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT" "C:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT\\UTFT.cpp" -o nul
    Error while detecting libraries included by C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp
    Generating function prototypes...
    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=146 -DARDUINO=10808 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT_Geometry" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT" "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_32596\\sketch\\LIDAR_MOVEMENT_ACROSS_SCREEN.ino.cpp" -o "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_32596\\preproc\\ctags_target_for_gcc_minus_e.cpp"
    "C:\\Program Files (x86)\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_32596\\preproc\\ctags_target_for_gcc_minus_e.cpp"
    Compiling sketch...
    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/precompile_helper" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr/cores/teensy3" "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_32596" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -x c++-header -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=146 -DARDUINO=10808 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr/cores/teensy3" "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_32596/pch/Arduino.h" -o "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_32596/pch/Arduino.h.gch"
    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=146 -DARDUINO=10808 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_32596/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT_Geometry" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT" "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_32596\\sketch\\LIDAR_MOVEMENT_ACROSS_SCREEN.ino.cpp" -o "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_32596\\sketch\\LIDAR_MOVEMENT_ACROSS_SCREEN.ino.cpp.o"
    In file included from C:\Users\FGM\Documents\Arduino\libraries\UTFT/UTFT.h:167:0,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT_Geometry/UTFT_Geometry.h:28,
    
                     from C:\Users\FGM\Desktop\LIDAR_MOVEMENT_ACROSS_SCREEN\LIDAR_MOVEMENT_ACROSS_SCREEN.ino:2:
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT/hardware/arm/HW_ARM_defines.h:35:0: warning: "pgm_read_word" redefined
    
     #define pgm_read_word(data) *data
    
     ^
    
    In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:41:0,
    
                     from C:\Users\FGM\AppData\Local\Temp\arduino_build_32596\pch\Arduino.h:6:
    
    C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr/pgmspace.h:101:0: note: this is the location of the previous definition
    
     #define pgm_read_word(addr) ({ \
    
     ^
    
    In file included from C:\Users\FGM\Documents\Arduino\libraries\UTFT/UTFT.h:167:0,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT_Geometry/UTFT_Geometry.h:28,
    
                     from C:\Users\FGM\Desktop\LIDAR_MOVEMENT_ACROSS_SCREEN\LIDAR_MOVEMENT_ACROSS_SCREEN.ino:2:
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT/hardware/arm/HW_ARM_defines.h:36:0: warning: "pgm_read_byte" redefined
    
     #define pgm_read_byte(data) *data
    
     ^
    
    In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:41:0,
    
                     from C:\Users\FGM\AppData\Local\Temp\arduino_build_32596\pch\Arduino.h:6:
    
    C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr/pgmspace.h:95:0: note: this is the location of the previous definition
    
     #define pgm_read_byte(addr) (*(const unsigned char *)(addr))
    
     ^
    
    Compiling libraries...
    Compiling library "UTFT_Geometry"
    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=146 -DARDUINO=10808 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_32596/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT_Geometry" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT" "C:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT_Geometry\\UTFT_Geometry.cpp" -o "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_32596\\libraries\\UTFT_Geometry\\UTFT_Geometry.cpp.o"
    In file included from C:\Users\FGM\Documents\Arduino\libraries\UTFT/UTFT.h:167:0,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT_Geometry\UTFT_Geometry.h:28,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT_Geometry\UTFT_Geometry.cpp:23:
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT/hardware/arm/HW_ARM_defines.h:35:0: warning: "pgm_read_word" redefined
    
     #define pgm_read_word(data) *data
    
     ^
    
    In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:41:0,
    
                     from C:\Users\FGM\AppData\Local\Temp\arduino_build_32596/pch/Arduino.h:6,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT/UTFT.h:166,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT_Geometry\UTFT_Geometry.h:28,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT_Geometry\UTFT_Geometry.cpp:23:
    
    C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr/pgmspace.h:101:0: note: this is the location of the previous definition
    
     #define pgm_read_word(addr) ({ \
    
     ^
    
    In file included from C:\Users\FGM\Documents\Arduino\libraries\UTFT/UTFT.h:167:0,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT_Geometry\UTFT_Geometry.h:28,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT_Geometry\UTFT_Geometry.cpp:23:
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT/hardware/arm/HW_ARM_defines.h:36:0: warning: "pgm_read_byte" redefined
    
     #define pgm_read_byte(data) *data
    
     ^
    
    In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:41:0,
    
                     from C:\Users\FGM\AppData\Local\Temp\arduino_build_32596/pch/Arduino.h:6,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT/UTFT.h:166,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT_Geometry\UTFT_Geometry.h:28,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT_Geometry\UTFT_Geometry.cpp:23:
    
    C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr/pgmspace.h:95:0: note: this is the location of the previous definition
    
     #define pgm_read_byte(addr) (*(const unsigned char *)(addr))
    
     ^
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT_Geometry\UTFT_Geometry.cpp:26:0: warning: "swap" redefined
    
     #define swap(a, b) { int16_t t = a; a = b; b = t; }
    
     ^
    
    In file included from C:\Users\FGM\Documents\Arduino\libraries\UTFT/UTFT.h:167:0,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT_Geometry\UTFT_Geometry.h:28,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT_Geometry\UTFT_Geometry.cpp:23:
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT/hardware/arm/HW_ARM_defines.h:31:0: note: this is the location of the previous definition
    
     #define swap(type, i, j) {type t = i; i = j; j = t;}
    
     ^
    
    Compiling library "UTFT"
    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-gcc" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=146 -DARDUINO=10808 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT_Geometry" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT" "C:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT\\DefaultFonts.c" -o "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_32596\\libraries\\UTFT\\DefaultFonts.c.o"
    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=146 -DARDUINO=10808 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_32596/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT_Geometry" "-IC:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT" "C:\\Users\\FGM\\Documents\\Arduino\\libraries\\UTFT\\UTFT.cpp" -o "C:\\Users\\FGM\\AppData\\Local\\Temp\\arduino_build_32596\\libraries\\UTFT\\UTFT.cpp.o"
    In file included from C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.h:167:0,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp:40:
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT\hardware/arm/HW_ARM_defines.h:35:0: warning: "pgm_read_word" redefined
    
     #define pgm_read_word(data) *data
    
     ^
    
    In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:41:0,
    
                     from C:\Users\FGM\AppData\Local\Temp\arduino_build_32596/pch/Arduino.h:6,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.h:166,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp:40:
    
    C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr/pgmspace.h:101:0: note: this is the location of the previous definition
    
     #define pgm_read_word(addr) ({ \
    
     ^
    
    In file included from C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.h:167:0,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp:40:
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT\hardware/arm/HW_ARM_defines.h:36:0: warning: "pgm_read_byte" redefined
    
     #define pgm_read_byte(data) *data
    
     ^
    
    In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:41:0,
    
                     from C:\Users\FGM\AppData\Local\Temp\arduino_build_32596/pch/Arduino.h:6,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.h:166,
    
                     from C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp:40:
    
    C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr/pgmspace.h:95:0: note: this is the location of the previous definition
    
     #define pgm_read_byte(addr) (*(const unsigned char *)(addr))
    
     ^
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp:85:4: error: #error "Unsupported ARM MCU!"
    
       #error "Unsupported ARM MCU!"
    
        ^
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp: In member function 'void UTFT::printNumF(double, byte, int, int, char, int, char)':
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp:1095:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    
       for (int i=0; i<sizeof(st); i++)
    
                      ^
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp:1105:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    
        for (int i=1; i<sizeof(st); i++)
    
                       ^
    
    C:\Users\FGM\Documents\Arduino\libraries\UTFT\UTFT.cpp:1111:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    
        for (int i=0; i<sizeof(st); i++)
    
                       ^
    
    Using library UTFT_Geometry in folder: C:\Users\FGM\Documents\Arduino\libraries\UTFT_Geometry (legacy)
    Using library UTFT in folder: C:\Users\FGM\Documents\Arduino\libraries\UTFT (legacy)
    Error compiling for board Teensy 3.6.
    Last edited by XRAD; 04-22-2019 at 11:38 PM.

Posting Permissions

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