Skip to content

Instantly share code, notes, and snippets.

@AndKe
Created April 15, 2018 20:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndKe/6ef0d33cdc3535d4cc24519b506ab457 to your computer and use it in GitHub Desktop.
Save AndKe/6ef0d33cdc3535d4cc24519b506ab457 to your computer and use it in GitHub Desktop.
error GLUE demo
Arduino: 1.8.5 (Linux), Board: "Arduino Due (Native USB Port)"
/home/andre/Arduino/arduino-1.8.5/arduino-builder -dump-prefs -logger=machine -hardware /home/andre/Arduino/arduino-1.8.5/hardware -hardware /home/andre/.arduino15/packages -hardware /home/andre/Arduino/projects/hardware -tools /home/andre/Arduino/arduino-1.8.5/tools-builder -tools /home/andre/Arduino/arduino-1.8.5/hardware/tools/avr -tools /home/andre/.arduino15/packages -built-in-libraries /home/andre/Arduino/arduino-1.8.5/libraries -libraries /home/andre/Arduino/projects/libraries -fqbn=arduino:sam:arduino_due_x -ide-version=10805 -build-path /tmp/arduino -warnings=more -build-cache /tmp/arduino_cache_842549 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arm-none-eabi-gcc.path=/home/andre/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1 -prefs=runtime.tools.bossac.path=/home/andre/.arduino15/packages/arduino/tools/bossac/1.6.1-arduino -verbose /home/andre/Arduino/projects/libraries/MCUFRIEND_kbv/examples/GLUE_Demo_320x240/GLUE_Demo_320x240.ino
/home/andre/Arduino/arduino-1.8.5/arduino-builder -compile -logger=machine -hardware /home/andre/Arduino/arduino-1.8.5/hardware -hardware /home/andre/.arduino15/packages -hardware /home/andre/Arduino/projects/hardware -tools /home/andre/Arduino/arduino-1.8.5/tools-builder -tools /home/andre/Arduino/arduino-1.8.5/hardware/tools/avr -tools /home/andre/.arduino15/packages -built-in-libraries /home/andre/Arduino/arduino-1.8.5/libraries -libraries /home/andre/Arduino/projects/libraries -fqbn=arduino:sam:arduino_due_x -ide-version=10805 -build-path /tmp/arduino -warnings=more -build-cache /tmp/arduino_cache_842549 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arm-none-eabi-gcc.path=/home/andre/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1 -prefs=runtime.tools.bossac.path=/home/andre/.arduino15/packages/arduino/tools/bossac/1.6.1-arduino -verbose /home/andre/Arduino/projects/libraries/MCUFRIEND_kbv/examples/GLUE_Demo_320x240/GLUE_Demo_320x240.ino
Using board 'arduino_due_x' from platform in folder: /home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11
Using core 'arduino' from platform in folder: /home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11
Build options changed, rebuilding all
Detecting libraries used...
"/home/andre/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10805 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Due"' "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/system/libsam" "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/CMSIS/Include/" "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/Device/ATMEL/" "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/cores/arduino" "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/variants/arduino_due_x" "/tmp/arduino/sketch/GLUE_Demo_320x240.ino.cpp" -o "/dev/null"
"/home/andre/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10805 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Due"' "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/system/libsam" "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/CMSIS/Include/" "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/Device/ATMEL/" "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/cores/arduino" "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/variants/arduino_due_x" "-I/home/andre/Arduino/projects/libraries/Adafruit_GFX_Library" "/tmp/arduino/sketch/GLUE_Demo_320x240.ino.cpp" -o "/dev/null"
"/home/andre/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10805 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Due"' "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/system/libsam" "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/CMSIS/Include/" "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/Device/ATMEL/" "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/cores/arduino" "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/variants/arduino_due_x" "-I/home/andre/Arduino/projects/libraries/Adafruit_GFX_Library" "-I/home/andre/Arduino/projects/libraries/MCUFRIEND_kbv" "/tmp/arduino/sketch/GLUE_Demo_320x240.ino.cpp" -o "/dev/null"
"/home/andre/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10805 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Due"' "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/system/libsam" "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/CMSIS/Include/" "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/Device/ATMEL/" "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/cores/arduino" "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/variants/arduino_due_x" "-I/home/andre/Arduino/projects/libraries/Adafruit_GFX_Library" "-I/home/andre/Arduino/projects/libraries/MCUFRIEND_kbv" "/home/andre/Arduino/projects/libraries/Adafruit_GFX_Library/Adafruit_GFX.cpp" -o "/dev/null"
"/home/andre/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10805 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Due"' "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/system/libsam" "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/CMSIS/Include/" "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/Device/ATMEL/" "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/cores/arduino" "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/variants/arduino_due_x" "-I/home/andre/Arduino/projects/libraries/Adafruit_GFX_Library" "-I/home/andre/Arduino/projects/libraries/MCUFRIEND_kbv" "/home/andre/Arduino/projects/libraries/Adafruit_GFX_Library/glcdfont.c" -o "/dev/null"
"/home/andre/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10805 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Due"' "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/system/libsam" "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/CMSIS/Include/" "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/Device/ATMEL/" "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/cores/arduino" "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/variants/arduino_due_x" "-I/home/andre/Arduino/projects/libraries/Adafruit_GFX_Library" "-I/home/andre/Arduino/projects/libraries/MCUFRIEND_kbv" "-I/home/andre/Arduino/projects/libraries/MCUFRIEND_kbv/utility" "/home/andre/Arduino/projects/libraries/MCUFRIEND_kbv/MCUFRIEND_kbv.cpp" -o "/dev/null"
Generating function prototypes...
"/home/andre/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10805 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Due"' "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/system/libsam" "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/CMSIS/Include/" "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/Device/ATMEL/" "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/cores/arduino" "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/variants/arduino_due_x" "-I/home/andre/Arduino/projects/libraries/Adafruit_GFX_Library" "-I/home/andre/Arduino/projects/libraries/MCUFRIEND_kbv" "/tmp/arduino/sketch/GLUE_Demo_320x240.ino.cpp" -o "/tmp/arduino/preproc/ctags_target_for_gcc_minus_e.cpp"
"/home/andre/Arduino/arduino-1.8.5/tools-builder/ctags/5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "/tmp/arduino/preproc/ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"/home/andre/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -Wall -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10805 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Due"' "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/system/libsam" "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/CMSIS/Include/" "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/Device/ATMEL/" "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/cores/arduino" "-I/home/andre/.arduino15/packages/arduino/hardware/sam/1.6.11/variants/arduino_due_x" "-I/home/andre/Arduino/projects/libraries/Adafruit_GFX_Library" "-I/home/andre/Arduino/projects/libraries/MCUFRIEND_kbv" "/tmp/arduino/sketch/GLUE_Demo_320x240.ino.cpp" -o "/tmp/arduino/sketch/GLUE_Demo_320x240.ino.cpp.o"
In file included from /home/andre/Arduino/projects/libraries/MCUFRIEND_kbv/examples/GLUE_Demo_320x240/GLUE_Demo_320x240.ino:25:0:
/home/andre/Arduino/projects/libraries/MCUFRIEND_kbv/UTFTGLUE.h: In member function 'void UTFTGLUE::print(String, int, int, int)':
/home/andre/Arduino/projects/libraries/MCUFRIEND_kbv/UTFTGLUE.h:102:27: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
settextcursor(st.c_str(), x, y); MCUFRIEND_kbv::print(st);}
^
/home/andre/Arduino/projects/libraries/MCUFRIEND_kbv/UTFTGLUE.h:155:10: error: initializing argument 1 of 'void UTFTGLUE::settextcursor(char*, int, int)' [-fpermissive]
void settextcursor(char *st, int x, int y) {
^
/home/andre/Arduino/projects/libraries/MCUFRIEND_kbv/UTFTGLUE.h: In member function 'void UTFTGLUE::printNumF(double, byte, int, int, char, int, char)':
/home/andre/Arduino/projects/libraries/MCUFRIEND_kbv/UTFTGLUE.h:123:47: error: 'dtostrf' was not declared in this scope
char buf[20]; dtostrf(num, length, dec, buf); settextcursor(buf, x, y); MCUFRIEND_kbv::print(buf);
^
/home/andre/Arduino/projects/libraries/MCUFRIEND_kbv/UTFTGLUE.h: In member function 'void UTFTGLUE::settextcursor(char*, int, int)':
/home/andre/Arduino/projects/libraries/MCUFRIEND_kbv/UTFTGLUE.h:156:16: warning: unused variable 'x1' [-Wunused-variable]
int16_t pos, x1, y1;
^
/home/andre/Arduino/projects/libraries/MCUFRIEND_kbv/UTFTGLUE.h:156:20: warning: unused variable 'y1' [-Wunused-variable]
int16_t pos, x1, y1;
^
/home/andre/Arduino/projects/libraries/MCUFRIEND_kbv/UTFTGLUE.h:157:17: warning: unused variable 'w' [-Wunused-variable]
uint16_t len, w, h;
^
/home/andre/Arduino/projects/libraries/MCUFRIEND_kbv/UTFTGLUE.h:157:20: warning: unused variable 'h' [-Wunused-variable]
uint16_t len, w, h;
^
/home/andre/Arduino/projects/libraries/MCUFRIEND_kbv/examples/GLUE_Demo_320x240/GLUE_Demo_320x240.ino: At global scope:
/home/andre/Arduino/projects/libraries/MCUFRIEND_kbv/examples/GLUE_Demo_320x240/GLUE_Demo_320x240.ino:26:38: warning: large integer implicitly truncated to unsigned type [-Woverflow]
UTFTGLUE myGLCD(0x0154,A2,A1,A3,A4,A0);
^
Using library Adafruit_GFX_Library at version 1.2.2 in folder: /home/andre/Arduino/projects/libraries/Adafruit_GFX_Library
Using library MCUFRIEND_kbv at version 2.9.7 in folder: /home/andre/Arduino/projects/libraries/MCUFRIEND_kbv
exit status 1
Error compiling for board Arduino Due (Native USB Port).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment