GIGA R1 error message

C:\Users\BILL\Documents\Arduino\LVGLDemo\img_arduinologo.c:640:16: error: 'LV_IMG_CF_TRUE_COLOR' undeclared here (not in a function); did you mean 'LV_SUBJECT_TYPE_COLOR'?
   .header.cf = LV_IMG_CF_TRUE_COLOR,
                ^~~~~~~~~~~~~~~~~~~~
                LV_SUBJECT_TYPE_COLOR
C:\Users\BILL\Documents\Arduino\LVGLDemo\img_arduinologo.c:641:11: error: 'lv_image_header_t {aka struct <anonymous>}' has no member named 'always_zero'
   .header.always_zero = 0,
           ^~~~~~~~~~~
C:\Users\BILL\Documents\Arduino\LVGLDemo\img_arduinologo.c:642:11: error: 'lv_image_header_t {aka struct <anonymous>}' has no member named 'reserved'; did you mean 'reserved_2'?
   .header.reserved = 0,
           ^~~~~~~~
           reserved_2
C:\Users\BILL\Documents\Arduino\LVGLDemo\img_arduinologo.c:645:24: error: 'LV_COLOR_SIZE' undeclared here (not in a function); did you mean 'LV_COLOR_MAKE'?
   .data_size = 30000 * LV_COLOR_SIZE / 8,
                        ^~~~~~~~~~~~~
                        LV_COLOR_MAKE
C:\Users\BILL\Documents\Arduino\LVGLDemo\LVGLDemo.ino: In function 'void btn_event_cb(lv_event_t*)':
C:\Users\BILL\Documents\Arduino\LVGLDemo\LVGLDemo.ino:20:39: error: invalid conversion from 'void*' to 'lv_obj_t* {aka _lv_obj_t*}' [-fpermissive]
   lv_obj_t * btn = lv_event_get_target(e);
                    ~~~~~~~~~~~~~~~~~~~^~~
C:\Users\BILL\Documents\Arduino\LVGLDemo\LVGLDemo.ino: In function 'void setup()':
C:\Users\BILL\Documents\Arduino\LVGLDemo\LVGLDemo.ino:79:3: error: 'lv_style_set_bg_img_src' was not declared in this scope
   lv_style_set_bg_img_src(&style_radio_chk, NULL);
   ^~~~~~~~~~~~~~~~~~~~~~~
C:\Users\BILL\Documents\Arduino\LVGLDemo\LVGLDemo.ino:79:3: note: suggested alternative: 'lv_style_set_bg_image_src'
   lv_style_set_bg_img_src(&style_radio_chk, NULL);
   ^~~~~~~~~~~~~~~~~~~~~~~
   lv_style_set_bg_image_src

exit status 1

Compilation error: 'LV_IMG_CF_TRUE_COLOR' undeclared here (not in a function); did you mean 'LV_SUBJECT_TYPE_COLOR'?

im trying to figure out how to fix this

Post your (formatted) sketch and full error report.

I moved your topic to an appropriate forum category @anon20709682.

In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.

This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

Hello, I have the same issue. Did you fix it ? thx

Hi @anon20709682 and @dolba. These errors are caused by an incompatibility between the sketch and version 9.0.0 of the "lvgl" library. There were some breaking changes in the library introduced by the 9.0.0 release:

https://github.com/lvgl/lvgl/blob/master/docs/CHANGELOG.rst#user-content-v9-0-0

There is work in progress to provide compatibility with version 9.x of the library:

For now, you can fix the error by installing the compatible version of the library. I'll provide instructions you can follow to do that:

  1. Select Sketch > Include Library > Manage Libraries... from the Arduino IDE menus to open the "Library Manager" view in the left side panel.
  2. Type lvgl in the "Filter your search..." field.
  3. Scroll down through the list of libraries until you see the "lvgl" entry.
  4. You will see a drop-down version menu at the bottom of the entry. Select "8.3.11" from the menu.
  5. Click the "INSTALL" button at the bottom of the entry.
  6. Wait for the installation process to finish, as indicated by a notification at the bottom right corner of the Arduino IDE window:

    β“˜ Successfully installed library ...

Arduino IDE will periodically display a notification that offers to update the library for you:

Updates are available for some of your libraries.

If you click the "INSTALL MANUALLY" button in the notification, a list of each of the libraries that have available updates will be shown in the Arduino IDE Library Manager. It is generally a good idea to keep your libraries updated since the updates might provide important enhancements or bug fixes. So you should look through the list and update other libraries if appropriate, but you should avoid accepting the update for the "LVGL" library.

1 Like

Blockquote
There is work in progress to provide compatibility with version 9.x of the library
Blockquote
Wondering when we get final patch for LVGL9. I am experiencing some issues with fonts in 8.3.11 release.
Thanks

Hi @artemt1987.

I think we are only waiting for the next release of the "Arduino Mbed OS Giga Boards" platform to be made. I don't have any information about the scheduling of that release though.

You could try using the Arduino IDE Library Manager to update the library to 8.4.0. I mentioned "8.3.11" specifically in my instructions above, but the intention was only to install the newest version in the library's 8.x version series. You should be able to use any version of the library >=8.3.5 and <9.0.0.

I don't have any specific reason to think that updating the library to 8.4.0 will fix the problem you are having. I don't see any specific mention of fonts in the changelog:

https://github.com/lvgl/lvgl/blob/release/v8.4/docs/CHANGELOG.md#changelog

But it is easy enough to do an update, and you can always downgrade the library back to 8.3.11 just as easily later if there is a problem so I think it is worth a try at least.

1 Like

I see now that @artemt1987 created a dedicated topic on the subject where a detailed description of the problem was described and a resolution attained:

@artemt1987 in the future please don't create multiple threads on a single subject matter. I wasted my time by responding here when I could have instead spent it providing assistance to the many other forum users who really needed it.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.