Closed loopyengineeringco closed 5 months ago
Installed lvgl and lvgl_examples libraries from Arduino lib manager.
lvgl_examples
is already merged into lvgl
. So you need only LVGL.
Does it work with #include <demos/lv_demo.h>
This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.
I had the same problem. I just tried to use the example:
/Users/[me]/Documents/Arduino/libraries/lv_examples/src/../lv_demo.h:31:29: fatal error: ../lv_demo_conf.h: No such file or directory
The readme had some different instructions, but I do see that the examples are in lvgl. They don't appear in the Arduino UI, like the example above. I am just trying to get a simple "Hello World" and this seemed like a good place to start but it has been hard to find the current way to quick start as some of the legacy instructions have thrown me off.
include <demos/lv_demo.h>
Didn't work for me, maybe because of the board "package" I'm using. Do I need this for the example?
Have you followed the steps here?
I actually commented lv_demo_widgets();
out for the moment and made the 0 a 1 to enable the code below:
#if 0
/* Create simple label */
lv_obj_t *label = lv_label_create( lv_scr_act() );
lv_label_set_text( label, LVGL_Arduino.c_str() );
lv_obj_align( label, LV_ALIGN_CENTER, 0, 0 );
#else
Then please follow the step linked above :slightly_smiling_face:
Ok. I followed the instructions.
In file included from /Users/lj/Documents/Arduino/libraries/lv_examples/src/lv_demo.h:17:0,
from /private/var/folders/b9/jzy3mm9s1yx5sd1jh3lbs2gm0000gn/T/.arduinoIDE-unsaved2023029-353-my40m4.moe4k/LVGL_Arduino/LVGL_Arduino.ino:9:
/Users/lj/Documents/Arduino/libraries/lv_examples/src/../lv_demo.h:31:29: fatal error: ../lv_demo_conf.h: No such file or directory
compilation terminated.
It seems things are messed up a little bit.
About a year ago, we have merged all the examples and demos into the lvgl repo. So lv_examples
shouldn't be used. Just use the latest lvgl
library and no other repo is required.
Ok. Does that mean I should not use the UI, like I did above, to get to the LVGL_Arduino example? Even when I open the LVGL_Arduino.ino from the lvgl/src/examples/arduino/LVGL_Arduino/
directory I get the /Users/lj/Documents/Arduino/libraries/lv_examples/src/../lv_demo.h:31:29: fatal error: ../lv_demo_conf.h: No such file or directory
error. Is there a configuration I need to change?
I uninstalled the examples library.
/private/var/folders/b9/jzy3mm9s1yx5sd1jh3lbs2gm0000gn/T/.arduinoIDE-unsaved202311-353-l30wbo.rnkc/LVGL_Arduino/LVGL_Arduino.ino:9:21: fatal error: lv_demo.h: No such file or directory
compilation terminated.
You will find in Arduino\libraries\lv_examples\lv_demo_conf_template.h Have you tried to copy the file and rename it to v_demo_conf.h? In this file you can turn different demo options on and off.
I uninstalled the examples library.
There was a typo in LVGL_Arduino.ino
. You should include #include <demos/lv_demos.h>
. See 801d776e7
Good job bro! i have been confused by this error for a week, now it solved by your advice. Thanks a lot👍
Great, happy to hear that it works now :slightly_smiling_face:
Have you followed the steps here?
I tried, but it doesn't work! :(
What error do you see?
LVGL_Arduino.ino:8:10: fatal error: demos/lv_demo.h: No such file or directory #include <demos/lv_demo.h>
Solved! I copied demos folder must be copied into lvgl/src. I already tried, but perhaps with a different version. Right now I'm using the various updated libraries, but the 8.3.0dev version lv_conf.h file that the vendors gave me, even though the library I'm using is the lvgl version 8.3.5.
Hi, I am attempting to compile the ELCROW HMI-7 demonstration and have this error HMI-7:2:10: fatal error: demos/lv_demos.h: No such file or directory I have followed your posts I have tried different library versions still with same result. Arduino version 1.8.19 OS LINUX MINT current lvgl library version 8.3.11. I have tried the inclusion in a test file same result.
Apologies is this is something simple. I am also working with an Elecrow ESP32 display and attempting to run the demo program. Moving the two folders -- demos and examples -- as described above cleared the errors on the relevant includes, and I now receive the following:
../../src/display/lv_display_private.h: No such file or directory
In response to this, which must exist in some other included code:
While I have confirmed that this file exists in the described location, this include generates a fatal error. How can I fix this issue, please?
include "../../src/display/lv_display_private.h"
Where would you like to include it? If to the ino file I'm not what relative path shall be used.
I apologize if I was not clear. This error comes up when compiling, but the include it references is not in the Elecrow demo code. I am unfamiliar with the structure here, but assume it must in within one of the previously included files? By this point, the sketch has included lvgl.h, lv_demos.h, and lv_examples.h (and a variety of other header files required for the display and its functions).
Please share
@kisvegabor Thanks for posting the fix to the lv_demo.h not found issue One of the links above no longer works but simply moving Arduino\libraries\lvgl\demos and examples folders to below src fixed it for me (v8.3.6)
@kisvgabor Can you suggest a different strategy to chech the availability of the right file on the right place? You can beleive or not I am trying to start with LVGL almost a months. I tried to copy the files several times as you mentioned above. I have reinstalled almost everything into the last few weeks. (Actually I am working with completelly reinstalled Arduino as well right now.) the result is same.... some missing file... The result of the latest try is...: _fatal error: ../../src/display/lv_display_private.h: No such file or directory
Maybe a very newbie question. What is the origin of the relative path ../../src/display/lv_display_private.h ? The ino file or something different....
@proximacentaury I'm sorry that you had so many issues. I can assure you it should be really simple, but probably we need to update the docs to make it cleaner.
Please attach
libraries
folderlvgl.h
. Hello kisvgabor,
I sorry about long silence, but I needed to check many things. I have Sunton CYD 2.4inch_ESP32-2432S024V version. I have fond some "original" factory documentation with well documented projects. The documentation contains even the copy of libraries, and customized lvgl.h to LVGL and UserSetup.h to TFTespi. Long story short I could compile and upload a demo to the board. (2 times from several other attempts) So at least the board is working with certain setup together with Arduino IDE 2.3.2 The version of the lvgl.h is v8.3.0-dev
There is the plece where I am right now. The next step is to convert everything to the latest lvgl...
Best Regards
Good news!
Updating to v9 should't be too complicated. Please take a look at this description.
As there were no activity here for a while I'm closing this issue.
Perform all steps below and tick them with [x]
LVGL_Arduino.ino fails to compile: fatal error: lv_demo.h: No such file or directory
Installed lvgl and lvgl_examples libraries from Arduino lib manager. Followed "Get Started guide" to the word: https://docs.lvgl.io/master/get-started/arduino.html Open example from Arduino>File>Examples>lvgl>Arduino>LVGL_Arduino TFT_eSPI is working, it's demos run fine. lv_conf.h is next to lvgl folder in Documents/Arduino
lv_conf.h content is enabled with "1". Colour depth and tick are correct. lvgl/examples content is copied to lvgl/src/examples lvgl/demos content is copied to lvgl/src/demos
When i uncommend ""#include"" like suggested in the sketch, compile now fails at lv_examples.h not found.
This is the code (lvgl arduino demo)