Arduino Giga R1 and Arduino Gift Display, Lvgl.h comp. error

Okay,
Even an empty sketch with only #include "lvgl.h" gives a compilation error 1.
Library manager shows the version 9.0.0 of ht e lvgl library is installed.
Any suggestions?
Thanks Jitse

Please post the full error message copied from the IDE with the button conveniently displayed

This is the code and error message
Something to do with this message : #include "../../lv_conf.h" ??

FQBN: arduino:mbed_giga:giga
Using board 'giga' from platform in folder: /Users/jitseschaafsma/Library/Arduino15/packages/arduino/hardware/mbed_giga/4.0.10
Using core 'arduino' from platform in folder: /Users/jitseschaafsma/Library/Arduino15/packages/arduino/hardware/mbed_giga/4.0.10

loading library from /Users/jitseschaafsma/Documents/Arduino/libraries/Haversine-master: invalid library: no header files found
loading library from /Users/jitseschaafsma/Documents/Arduino/libraries/Random_test: invalid library: no header files found
loading library from /Users/jitseschaafsma/Documents/Arduino/libraries/arduino-esp32-master: invalid library: no header files found
loading library from /Users/jitseschaafsma/Documents/Arduino/libraries/m5stack-cam-psram-master: invalid library: no header files found
Detecting libraries used...
/Users/jitseschaafsma/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -c -w -g3 -nostdlib @/Users/jitseschaafsma/Library/Arduino15/packages/arduino/hardware/mbed_giga/4.0.10/variants/GIGA/defines.txt @/Users/jitseschaafsma/Library/Arduino15/packages/arduino/hardware/mbed_giga/4.0.10/variants/GIGA/cxxflags.txt -mcpu=cortex-m7 -mfloat-abi=softfp -mfpu=fpv5-d16 -w -x c++ -E -CC -DARDUINO=10607 -DARDUINO_GIGA -DARDUINO_ARCH_MBED_GIGA -DARDUINO_ARCH_MBED -DARDUINO_LIBRARY_DISCOVERY_PHASE=1 -I/Users/jitseschaafsma/Library/Arduino15/packages/arduino/hardware/mbed_giga/4.0.10/cores/arduino -I/Users/jitseschaafsma/Library/Arduino15/packages/arduino/hardware/mbed_giga/4.0.10/variants/GIGA -DCM4_BINARY_START=0x60000000 -DCM4_BINARY_END=0x60040000 -DCM4_RAM_END=0x60080000 -I/Users/jitseschaafsma/Library/Arduino15/packages/arduino/hardware/mbed_giga/4.0.10/cores/arduino/api/deprecated -I/Users/jitseschaafsma/Library/Arduino15/packages/arduino/hardware/mbed_giga/4.0.10/cores/arduino/api/deprecated-avr-comp -iprefix/Users/jitseschaafsma/Library/Arduino15/packages/arduino/hardware/mbed_giga/4.0.10/cores/arduino @/Users/jitseschaafsma/Library/Arduino15/packages/arduino/hardware/mbed_giga/4.0.10/variants/GIGA/../GIGA/includes.txt /private/var/folders/q9/37r6btk924v7t1sk4_dm49340000gn/T/arduino/sketches/01867DCC1C0B25B17E730272DB652013/sketch/sketch_jan25b.ino.cpp -o /dev/null
Alternatives for lvgl.h: [lvgl@9.0.0]
ResolveLibrary(lvgl.h)
-> candidates: [lvgl@9.0.0]
In file included from /Users/jitseschaafsma/Documents/Arduino/libraries/lvgl/src/../src/lv_init.h:17:0,
from /Users/jitseschaafsma/Documents/Arduino/libraries/lvgl/src/../lvgl.h:24,
from /Users/jitseschaafsma/Documents/Arduino/libraries/lvgl/src/lvgl.h:16,
from /private/var/folders/q9/37r6btk924v7t1sk4_dm49340000gn/T/.arduinoIDE-unsaved2024025-10732-uuy7u.j3blh/sketch_jan25b/sketch_jan25b.ino:1:
/Users/jitseschaafsma/Documents/Arduino/libraries/lvgl/src/../src/lv_conf_internal.h:59:18: fatal error: ../../lv_conf.h: No such file or directory
#include "../../lv_conf.h" /Else assume lv_conf.h is next to the lvgl folder/
^~~~~~~~~~~~~~~~~
compilation terminated.
/Users/jitseschaafsma/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -c -w -g3 -nostdlib @/Users/jitseschaafsma/Library/Arduino15/packages/arduino/hardware/mbed_giga/4.0.10/variants/GIGA/defines.txt @/Users/jitseschaafsma/Library/Arduino15/packages/arduino/hardware/mbed_giga/4.0.10/variants/GIGA/cxxflags.txt -mcpu=cortex-m7 -mfloat-abi=softfp -mfpu=fpv5-d16 -w -x c++ -E -CC -DARDUINO=10607 -DARDUINO_GIGA -DARDUINO_ARCH_MBED_GIGA -DARDUINO_ARCH_MBED -DARDUINO_LIBRARY_DISCOVERY_PHASE=1 -I/Users/jitseschaafsma/Library/Arduino15/packages/arduino/hardware/mbed_giga/4.0.10/cores/arduino -I/Users/jitseschaafsma/Library/Arduino15/packages/arduino/hardware/mbed_giga/4.0.10/variants/GIGA -I/Users/jitseschaafsma/Documents/Arduino/libraries/lvgl/src -DCM4_BINARY_START=0x60000000 -DCM4_BINARY_END=0x60040000 -DCM4_RAM_END=0x60080000 -I/Users/jitseschaafsma/Library/Arduino15/packages/arduino/hardware/mbed_giga/4.0.10/cores/arduino/api/deprecated -I/Users/jitseschaafsma/Library/Arduino15/packages/arduino/hardware/mbed_giga/4.0.10/cores/arduino/api/deprecated-avr-comp -iprefix/Users/jitseschaafsma/Library/Arduino15/packages/arduino/hardware/mbed_giga/4.0.10/cores/arduino @/Users/jitseschaafsma/Library/Arduino15/packages/arduino/hardware/mbed_giga/4.0.10/variants/GIGA/../GIGA/includes.txt /private/var/folders/q9/37r6btk924v7t1sk4_dm49340000gn/T/arduino/sketches/01867DCC1C0B25B17E730272DB652013/sketch/sketch_jan25b.ino.cpp -o /dev/null
Alternatives for ../../lv_conf.h: []
ResolveLibrary(../../lv_conf.h)
-> candidates: []

Using library lvgl at version 9.0.0 in folder: /Users/jitseschaafsma/Documents/Arduino/libraries/lvgl
exit status 1

Compilation error: exit status 1

#include "lvgl.h"

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

I now read this (link Arduino — LVGL documentation)

Configure LVGL

LVGL has its own configuration file called lv_conf.h. When LVGL is installed, follow these configuration steps:

  1. Go to the directory of the installed Arduino libraries
  2. Go to lvgl and copy lv_conf_template.h as lv_conf.h into the Arduino Libraries directory next to the lvgl library folder.
  3. Open lv_conf.h and change the first #if 0 to #if 1 to enable the content of the file
  4. Set the color depth of you display in LV_COLOR_DEPTH
  5. Set LV_TICK_CUSTOM 1

Hi, Please do not use this guide for Arduino Giga Display. Instead, refer to this guide for proper instructions on using LVGL with Arduino Giga Display.
Pay attention that Arduino_H7_Video officially supports LVGL v8.3.x and not LVGL v9.0.0.

Sorry to jump in here but was curious about displaying the images... I am new to LVGL...
So, I am trying to follow the documentation you linked to.

I went through the first example and the like. I then went to the third example and copied the sketch and it fails to link: not finding img_arduinologo

I am not seeing anything on the page that says how to create this object and/or where to copy it from.

Don't see anything on the link to github or the documentation page that mentions versions.

Again sorry, I am new to these libraries so I am probably missing something.

Edit: Was looking for more documentation and found this:
LVGL ends its collaboration with SquareLine Studio | LVGL’s Blog

Dear @KurtE,

1 Like

Thanks,

Sorry, I am not seeing emwin mentioned anywhere within the LVGL guide you linked to. The only thing that the brower search engine found was:

Note: the same example you linked to is already installed on my computer through the

Note: this example does not currently compile on my machine as the first lines in the sketch are:

/*
  emWinDemo

  created 04 Dec 2023
  by Leonardo Cavagnis
*/

#include "DIALOG.h" /* emWin library includes Arduino_H7_Video and Arduino_GigaDisplayTouch library */

And the system cannot find DIALOG.h

So probably something else needs to be installed. Maybe something in the emwin guide which is farther down on the list on the left hand side from the LVGL guide.

Which I will check next... However suggest there could be some improvements in the documentation and code examples, that make it easier to know what things are needed and where to find them.

Thanks
Kurt

@KurtE
Sorry, I did a mistake :sweat_smile:

The example is the LVGLDemo
and the file is img_arduinologo.c

1 Like

Not a problem... I am experienced enough to work my way through things.
And I now have emwin installed and that example builds.

Thanks again

1 Like