In the book, we are told to find and move the demo and example folder from the LVGL folder to the LVGL/SRC folder. (pgs 53-54)
When I do this, the example will not compile due to not finding a file. Also the example in the tutorial
LVGL with ESP32 Cheap Yellow Display Board (ESP32-2432S028R)
will no onger compile. If I put them back they both compile. I have done the tut above and the one that shows where I touch the screen. Both work great, but the example in module 1 for hello world in the eBook does not work properly. There is some garbeled something on the screen and I think it is rotated 90 degrees.
So my question (finally) is do I need to move the folders (and if so how do I fix the error).
How do I figure out what is wrong with the example for me?
I used the new version, and more likely re-installing the lvgl and setup files and now it works!!
I can move forward with this now. SO HAPPY!!
Hi.
I’m glad everything is working as expected now.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara
Same problem – downloaded and installed appropriate libraries. Put lv_conf.h on libraries folder (not lvgl folder). Running initial example from book. End result:
In file included from /Users/Tom/Documents/Arduino/libraries/lvgl/src/../src/lv_init.h:16:0,
from /Users/Tom/Documents/Arduino/libraries/lvgl/src/../lvgl.h:21,
from /Users/Tom/Documents/Arduino/libraries/lvgl/src/lvgl.h:16,
from /Users/Tom/Documents/Arduino/libraries/lvgl/examples/arduino/LVGL_Arduino/LVGL_Arduino.ino:4:
/Users/Tom/Documents/Arduino/libraries/lvgl/src/../src/lv_conf_internal.h:60: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.
exit status 1
Compilation error: exit status 1
Hi.
That error indicates that the file is not located in the right place.
Can you show me a printscreen of the relevant folders, so that I can check the folder structure?
To share a printscreen upload it to google drive, imgur or dropbxo and then share a link to the files.
Regards,
Sara
Hi,
I have installed and reinstalled the librarys and header files from the zip downloads several times, at least three.
the compile error I am getting is:
In file included from /home/walton-u/Arduino/libraries/lvgl/src/demos/ebike/translations/lv_i18n.c:1:
/home/walton-u/Arduino/libraries/lvgl/src/demos/ebike/translations/./lv_i18n.h:8:10: fatal error: ../../../src/lv_conf_internal.h: No such file or directory
8 | #include “../../../src/lv_conf_internal.h”
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1
Compilation error: exit status 1
Right now I don’t know what else to do.
just a note: When I leave Demos and Examples out of the src file the program will compile but does not run properly. The layout is shifted 90 degrees and does not fill the full width of the screen. It also has some what looks like it might be some one or two pixel height text or garbage in the screen.
Thanks,
Walton
Egg on my face again!!
I install lvgl 9.1.0 instead of 9.2.2 and all works as it should.
This could be a problem in the future though.
Thanks,
Walton
I Fixed it. It was a dumb mistake. Back when I was an electronics technician the biggest reported fault code we had was “UE” for User Error.
THX
Thanks for the quick response Sara, everything is working by the book until lvgl gets updated to 9.2.2 then I have to roll it back to 9.1.0
At this point I don’t know what the difference is between the two versions of lvgl but I have tried 9.2.2 without moving demos and examples to src, with moving demos and examples to src. with and without user_setup.h in the lvgl folder.
as long as I use lvgl 9.1.0 and copy the two .h files and move the two directories as stated in the book, everything works properly.
Again, Thanks for your quick response.
Walton
Hi.
You may want to use the latest version of the eBook that is compatible with 9.2.2. It’s eBook version 1.4.
You can access it here: https://rntlab.com/module-1/esp32-lvgl-ebook/
Please note that with that version of LVGL, you can’t move the demos and examples folder.
Regards
Sara
Great! Thank you for all your support!!
Also, thank you and Rui for all the work you put in to these tutorials so that those of us who don’t have the time or inclination to do it. I always like looking through the projects and articles on RNT. Some of the projects I am working on now have to do with home automation and yes I have your ebooks. Without them I probably would not have started them at this time. I have known and had Node Red for two or three years but wasn’t until I read one of your ebooks that I found there really is practical uses for it. I may not contact you often but please do not think that myself and many others appreciate all the hard work you and Rui do. Again, Thank you.
Walton