UTFT_Bitmap sketch compiles for Mega2560 but not for DUE

I am starting LCD programming. I have a HX8357B LCD but it is not connected now.

Bitmap demo does not even compile. This is the long error message

Arduino: 1.6.7 (Windows 7), Board: "Arduino Due (Programming Port)"

Build options changed, rebuilding all
In file included from C:\Users\LM7\Documents\Arduino\libraries\UTFT/UTFT.h:180:0,

                 from C:\Users\LM7\Documents\Arduino\libraries\UTFT\examples\Arduino (AVR)\UTFT_Bitmap\UTFT_Bitmap.ino:13:

C:\Users\LM7\Documents\Arduino\libraries\UTFT/hardware/arm/HW_ARM_defines.h:30:0: warning: "pgm_read_word" redefined [enabled by default]

 #define pgm_read_word(data) *data

 ^

In file included from C:\Users\LM7\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.6\cores\arduino/Arduino.h:31:0,

                 from sketch\UTFT_Bitmap.ino.cpp:1:

C:\Users\LM7\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.6\cores\arduino/avr/pgmspace.h:57:0: note: this is the location of the previous definition

 #define pgm_read_word(addr) (*(const unsigned short *)(addr))

 ^

In file included from C:\Users\LM7\Documents\Arduino\libraries\UTFT/UTFT.h:180:0,

                 from C:\Users\LM7\Documents\Arduino\libraries\UTFT\examples\Arduino (AVR)\UTFT_Bitmap\UTFT_Bitmap.ino:13:

C:\Users\LM7\Documents\Arduino\libraries\UTFT/hardware/arm/HW_ARM_defines.h:31:0: warning: "pgm_read_byte" redefined [enabled by default]

 #define pgm_read_byte(data) *data

 ^

In file included from C:\Users\LM7\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.6\cores\arduino/Arduino.h:31:0,

                 from sketch\UTFT_Bitmap.ino.cpp:1:

C:\Users\LM7\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.6\cores\arduino/avr/pgmspace.h:56:0: note: this is the location of the previous definition

 #define pgm_read_byte(addr) (*(const unsigned char *)(addr))

 ^

C:\Users\LM7\Documents\Arduino\libraries\UTFT\examples\Arduino (AVR)\UTFT_Bitmap\UTFT_Bitmap.ino: In function 'void loop()':

C:\Users\LM7\Documents\Arduino\libraries\UTFT\examples\Arduino (AVR)\UTFT_Bitmap\UTFT_Bitmap.ino:48:71: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

   myGLCD.print(" *** A 10 by 7 grid of a 32x32 icon *** ", CENTER, 228);

                                                                       ^

UTFT_Bitmap:51: error: no matching function for call to 'UTFT::drawBitmap(int, int, int, int, unsigned int [1024])'

       myGLCD.drawBitmap (x*32, y*32, 32, 32, info);

                                                  ^

C:\Users\LM7\Documents\Arduino\libraries\UTFT\examples\Arduino (AVR)\UTFT_Bitmap\UTFT_Bitmap.ino:51:50: note: candidates are:

In file included from C:\Users\LM7\Documents\Arduino\libraries\UTFT\examples\Arduino (AVR)\UTFT_Bitmap\UTFT_Bitmap.ino:13:0:

C:\Users\LM7\Documents\Arduino\libraries\UTFT/UTFT.h:223:8: note: void UTFT::drawBitmap(int, int, int, int, short unsigned int*, int)

   void drawBitmap(int x, int y, int sx, int sy, bitmapdatatype data, int scale=1);

        ^

C:\Users\LM7\Documents\Arduino\libraries\UTFT/UTFT.h:223:8: note:   no known conversion for argument 5 from 'unsigned int [1024]' to 'short unsigned int*'

C:\Users\LM7\Documents\Arduino\libraries\UTFT/UTFT.h:224:8: note: void UTFT::drawBitmap(int, int, int, int, short unsigned int*, int, int, int)

   void drawBitmap(int x, int y, int sx, int sy, bitmapdatatype data, int deg, int rox, int roy);

        ^

C:\Users\LM7\Documents\Arduino\libraries\UTFT/UTFT.h:224:8: note:   candidate expects 8 arguments, 5 provided

C:\Users\LM7\Documents\Arduino\libraries\UTFT\examples\Arduino (AVR)\UTFT_Bitmap\UTFT_Bitmap.ino:57:71: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

   myGLCD.print("   Two different icons in scale 1 to 4  ", CENTER, 228);

                                                                       ^

UTFT_Bitmap:62: error: no matching function for call to 'UTFT::drawBitmap(int&, int, int, int, unsigned int [1024], int)'

     myGLCD.drawBitmap (x, 0, 32, 32, tux, s+1);

                                              ^

C:\Users\LM7\Documents\Arduino\libraries\UTFT\examples\Arduino (AVR)\UTFT_Bitmap\UTFT_Bitmap.ino:62:46: note: candidates are:

In file included from C:\Users\LM7\Documents\Arduino\libraries\UTFT\examples\Arduino (AVR)\UTFT_Bitmap\UTFT_Bitmap.ino:13:0:

C:\Users\LM7\Documents\Arduino\libraries\UTFT/UTFT.h:223:8: note: void UTFT::drawBitmap(int, int, int, int, short unsigned int*, int)

   void drawBitmap(int x, int y, int sx, int sy, bitmapdatatype data, int scale=1);

        ^

C:\Users\LM7\Documents\Arduino\libraries\UTFT/UTFT.h:223:8: note:   no known conversion for argument 5 from 'unsigned int [1024]' to 'short unsigned int*'

C:\Users\LM7\Documents\Arduino\libraries\UTFT/UTFT.h:224:8: note: void UTFT::drawBitmap(int, int, int, int, short unsigned int*, int, int, int)

   void drawBitmap(int x, int y, int sx, int sy, bitmapdatatype data, int deg, int rox, int roy);

        ^

C:\Users\LM7\Documents\Arduino\libraries\UTFT/UTFT.h:224:8: note:   candidate expects 8 arguments, 6 provided

UTFT_Bitmap:67: error: no matching function for call to 'UTFT::drawBitmap(int&, int, int, int, unsigned int [1024], int&)'

     myGLCD.drawBitmap (x, 224-(s*32), 32, 32, icon, s);

                                                      ^

C:\Users\LM7\Documents\Arduino\libraries\UTFT\examples\Arduino (AVR)\UTFT_Bitmap\UTFT_Bitmap.ino:67:54: note: candidates are:

In file included from C:\Users\LM7\Documents\Arduino\libraries\UTFT\examples\Arduino (AVR)\UTFT_Bitmap\UTFT_Bitmap.ino:13:0:

C:\Users\LM7\Documents\Arduino\libraries\UTFT/UTFT.h:223:8: note: void UTFT::drawBitmap(int, int, int, int, short unsigned int*, int)

   void drawBitmap(int x, int y, int sx, int sy, bitmapdatatype data, int scale=1);

        ^

C:\Users\LM7\Documents\Arduino\libraries\UTFT/UTFT.h:223:8: note:   no known conversion for argument 5 from 'unsigned int [1024]' to 'short unsigned int*'

C:\Users\LM7\Documents\Arduino\libraries\UTFT/UTFT.h:224:8: note: void UTFT::drawBitmap(int, int, int, int, short unsigned int*, int, int, int)

   void drawBitmap(int x, int y, int sx, int sy, bitmapdatatype data, int deg, int rox, int roy);

        ^

C:\Users\LM7\Documents\Arduino\libraries\UTFT/UTFT.h:224:8: note:   candidate expects 8 arguments, 6 provided

exit status 1
no matching function for call to 'UTFT::drawBitmap(int, int, int, int, unsigned int [1024])'

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

You have to load the example in the ARM folder, not the AVR (DUE is ARM, all the others are AVR)

Thank you. That was it.

When I quickly looked at examples, I did not even notice the difference between AVR and ARM.