This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

GUI_PNG_Draw: seems like not compiled into library

Hi

Anyone using GUI_PNG_Draw (or _DrawEx)? I am successfully using the BMP, JPG versions but linker fails to find the PNG version. I have checked and it is prototyped in GUI.h.

Is there a different library or option I need to switch on?

Thanks

Parents Reply Children
  • Hi!

    I have the same problem. 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!

  • Hello Janos,
    did you add all files from the png library to your project?
    The function GUI_PNG_DrawEx() is part of this, and it looks like it is just not getting compiled in your project.

    Please be aware that you need to increase your emwin memory according to 9.4 "Displaying bitmap files" -> "PNG file support" -> "Memory usage".

    Regards,
    Matthias

  • Hello Matthias!

    Thanks for your answer, now the code compiles.
    Now the problem is that the GUI_PNG_DrawEx() function returns with 1 and picture is not appearing. I have read that in case of PNG support emwin needs more RAM memory. How can be this requirement supported?

    Regards