undefined reference to `GUI_PNG_DrawEx' after adding png.h

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • undefined reference to `GUI_PNG_DrawEx' after adding png.h

    Hello!

    I downloaded the mentioned library, included gui\png\png.h to my code, but still I have undefined reference to GUI_PNG_DrawEx() function.
    Do you have any idea? Are there any restrictions regarding the placing of the png library?

    Thanks for your further answer!
  • It happened, and it works.
    Now the problem is that the GUI_PNG_DrawEx() function returns with 1 and picture is nit appearing. I have read that in case of PNG support emwin needs more RAM memory. How can be this requirement supported?
  • I have also encountered the same issue when using the PNG library and had to allocate more memory for decoding. Also be aware that PNG decoding can be slow and will cause a longer rendering time than if you use a BMP for the graphic but it does give you a nice small memory footprint for the images you are rendering. If your graphics are very small the rendering time will not be noticeable but as the graphics get larger (>200x200 pixels) depending on the speed of your microprocessor you can find a noticeable rendering delay when the PNG library is decoding your graphics.

    The post was edited 2 times, last by smorgan ().