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 !
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!
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
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?
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