Saturday, February 24th 2018, 3:01am UTC+1

You are not logged in.

  • Login
  • Register

mahdi

Beginner

Date of registration: Jan 28th 2018

Posts: 7

1

Thursday, February 8th 2018, 9:42pm

PNG image show problem

hi

according to the description of the user manual i refer to the link below
www.segger.com/downloads/emwin/emWin_png
and add all file of folder "png" to my project (STemwin 5.32)

but when compile, i get 4 error and many warning

should all these files be added?



SEGGER - Schoenen

Super Moderator

Date of registration: Aug 13th 2015

Posts: 496

2

Wednesday, February 14th 2018, 2:10pm

Hi,

Are your include directories properly set?

These defines can be found in GUI_Debug.h and IMAGE_Private.h, which are part of the emWin package.

In general All you have to do is adding all files from the png download to your project and set an include directory to the location of these files.

Regards
Sven

mahdi

Beginner

Date of registration: Jan 28th 2018

Posts: 7

3

Wednesday, February 14th 2018, 4:11pm

hi

i include "GUI_Debug.h" & "IMAGE_Private.h" to file

GUI_PNG.c
IMAGE_PNG.c
and GUIBuilder form and all error and warning deleted

thank you

SEGGER - Schoenen

Super Moderator

Date of registration: Aug 13th 2015

Posts: 496

4

Wednesday, February 14th 2018, 4:26pm

Hi,

As said this shouldn't be necessary. The header file GUI_Debug.h should be included indirectly via other header files.

I suppose that something is not configured properly in the project you are using.

Regards
Sven

mahdi

Beginner

Date of registration: Jan 28th 2018

Posts: 7

5

Wednesday, February 14th 2018, 6:30pm

"GUI_Debug.h" & "IMAGE_Private.h" folder address is defined in Keil include path and accessible

i search to fine "IMAGE_Private.h" where include in my project but nowhere has been used :?:

and "GUI_Debug.h" include in "TEXT.h" & "SWIPELIST.h" & "SPINBOX.h" & "KNOB.h" that in my test sample i dont use any of them.

however when i manually include this two file program compiled true and image show on lcd :)


thankful