emWin can not display png format image

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

emWin can not display png format image

3,382 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jhp on Sat Apr 06 22:00:38 MST 2013

I have a ploblem: the png image cann't display in emwin


compile: keil for arm v4.60
MCU : LPC1850 (evaluate board)
emWin version : 5.12 lib (no source code)
pnglib:download from <a class="externalURL" href="http://www.segger.com/link/emwin_png.zip"><span style="color: #0000ff;">www.segger.com/link/emwin_png.zip</span></a>
but it cannt pass compiling. the error message:



.\obj\lpc18xx.axf: Error: L6218E: Undefined symbol LCD_DrawBitmap (referred from gui_png.o).
.\obj\lpc18xx.axf: Error: L6218E: Undefined symbol abort (referred from pngread.o).


all pnglib package(displayed for emwin 4.18/5.00/5.18 ) with the emwin v5.12 have many errors when compiling.

subsequently I download the emwinv5.18 lib from LPCWARE with the pnglib 5.18 still can not pass compiling, the specification about png format image is too simple, Could you tell me the method and steps.


Thank you !

Labels (1)
0 Kudos
Reply
7 Replies

2,540 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lucywill on Wed May 21 19:38:23 MST 2014
i have the same problem with this [color=#000]image viewer[/color], i can't [color=#000]display png image[/color] properly . have you find the answer, i would really like to know. thanks. if anyone can fix my problem without changing it, that would be wonderful.
0 Kudos
Reply

2,540 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by abled on Sat Dec 21 07:23:43 MST 2013
[color=#00c]hi, I alse have the problom with"Undefined symbol abort (referred from pngread.o)."   I use the way of "Please make sure you link agains a C library which implements this function. Since you are using Keil, most likely you have checked the box "Use MicroLIB" in the project's Target Dialog. Unchecking this functions should solve the problem."

Now, the Error mesage has none.  

Thank you .Wouter !.

I am chinese . thank you again!.[/color]
0 Kudos
Reply

2,540 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Wouter on Mon May 06 06:34:20 MST 2013

Hi JHP,


 


Please have a look at attached proven-to-work PNG example.


We have had customers sucessfully using emWin within linux, but we do not have such examples.


 


Regards,


Wouter

0 Kudos
Reply

2,540 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jhp on Wed May 01 19:31:54 MST 2013

You are right, it is really caused by the "Use MicroLIB",cancel the function of this check box it can pass compiling now, but still has problem: if no PNG function, display well(display a line text, BMP image, BITMAP image and JEPG image), if insert PNG function, the screen displayed nothing include the GUI_Clear()----I clear the screen with blue colour, but it display nothing, seems it did not execute reset command, the PNG file is not large.


Otherwise, I want ask you a question: Can EMWIN be used in embedded Linux operating system of NXP ARM9 MCU? if yes , does it need to rewrite display and touch panel drivers?


 


Thank you!

0 Kudos
Reply

2,540 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Wouter on Fri Apr 19 01:47:48 MST 2013

Hi jhp,


 


The compiler is telling you it can't find function abort(), which is called from the source code in file pngread.c.


abort() is a standard C function: http://www.cprogramming.com/fod/abort.html


 


Please make sure you link agains a C library which implements this function. Since you are using Keil, most likely you have checked the box "Use MicroLIB" in the project's Target Dialog. Unchecking this functions should solve the problem.


 


Regards,


Wouter

0 Kudos
Reply

2,540 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jhp on Thu Apr 18 18:03:17 MST 2013

Thank you!


I have downloaded the v5.18 library,


I tried to use the v5.18 library to display text etc., it can run well.


but it still has error if use GUI_PNG_Draw function,  the message:


.\obj\lpc18xx.axf: Error: L6218E: Undefined symbol abort (referred from pngread.o).


Could you tell me the cause?


0 Kudos
Reply

2,540 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Wouter on Sun Apr 07 23:53:03 MST 2013

Hi,


The emWin 5.18 libraries V1.01 from http://www.lpcware.com/content/nxpfile/segger-emwin-518-libraries-nxp-mcus-version-100-0 have the PNG library included. Please try these libraries, without the additional libPNG source code, and try again.


These libraries have been tested with PNG images and should work fine, but please let us know if you run into anymore problems.


Regards,


NXP Support

0 Kudos
Reply