Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong header include in generated image c-File #654

Open
telso-bra opened this issue Dec 1, 2024 · 1 comment
Open

Wrong header include in generated image c-File #654

telso-bra opened this issue Dec 1, 2024 · 1 comment
Assignees
Labels

Comments

@telso-bra
Copy link

Describe the bug
I have added a small .png image with color scheme RGB565A8 to the very simple EEZ-Studio Demo (bar + switch).
I have located the ui-Folder with all the interface files on a different location than the lvgl library. Therefore I have added a custom LVGL include path in the build setting of EEZ Studio. When genrating code, all the inculdes are correct only the one of the image c-File is still the standard include:

#if defined(LV_LVGL_H_INCLUDE_SIMPLE)
#include "lvgl.h"
#elif defined(LV_BUILD_TEST)
#include "../lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif

Desktop (please complete the following information):

  • OS: Windows
  • Version 11

** LVGL version (if used)**

  • 9.2.2

Additional context
Add any other context about the problem here.

@mvladic
Copy link
Contributor

mvladic commented Dec 1, 2024

Image files are created with the standard tool provided by the LVGL team. Studio doesn't modify these files except it adds following at the start of the file:

#ifdef __has_include
    #if __has_include("lvgl.h")
        #ifndef LV_LVGL_H_INCLUDE_SIMPLE
            #define LV_LVGL_H_INCLUDE_SIMPLE
        #endif
    #endif
#endif

Here is the example:

image

So, it will use either lvgl.h or lvgl/lvgl.h (or ../lvgl.h for the special case when LV_BUILD_TEST is defined) - these are standard ways of including lvgl.h.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants