I want use the lgvl example for Arduino Portenta . After install it , during the code verification , I get the following error : Arduino:1.8.19 (Windows 10), Scheda:"Arduino Portenta H7, Main Core, 1MB M7 + 1MB M4, None"
LVGLDemo:12:10: fatal error: lvgl.h: No such file or directory #include "lvgl.h"
^~~~~~~~
compilation terminated.
exit status 1
lvgl.h: No such file or directory
But the file is present in
libraries / lvgl/lvgl.h
Where is the problem ?
Thank you
It is expected that Arduino IDE should be able to find the library as long as it is installed under the libraries subfolder of your sketchbook folder.
The sketchbook folder location is configured via the Arduino IDE preferences:
Select File > Preferences... from the Arduino IDE menus.
The "Preferences" dialog will open.
Note the path that is shown in the "Sketchbook location" field of the dialog.
Click the "Cancel" button.
The "Preferences" dialog will close.
For example, my "Sketchbook location" preference is set to C:\Users\per\Documents\Arduino and I have the "lvgl" library installed at this folder:
C:\Users\per\Documents\Arduino\libraries\lvgl
Arduino IDE has no problem finding it.
When you use the Arduino IDE Library Manager to install the library, it is always installed at the correct location (unless you later change your "Sketchbook location" preference), so we normally don't need to thing about where the libraries are installed.
I’m going crazy!
In the preferences all is OK . IDE point to documents/Arduino where there is the folder lvgl and inside there is lvgl.h.
C:\users\39335\Documents\Arduino
Inside the Arduino I get the folder libraries/lvgl/lvgl.h
everything looks good but I get the same error
If i change the include like you suggest ( #include "lvgl/lvgl.h") I get also the same error
LVGLDemo:12:10: fatal error: lvgl/lvgl.h: No such file or directory #include "lvgl/lvgl.h"
^~~~~~~~~~~~~
compilation terminated.
exit status 1
lvgl/lvgl.h: No such file or directory
Please be very exact in your communications here on the forum. We need to know the exact path that is present in the "Sketchbook location" field of the Arduino IDE preferences, not a vague "documents/Arduino".
Keep in mind that we can't see what you see on your computer so the only information we have to work with is what you provide in your forum posts. If that information is unclear then we might miss something or waste time following false leads, which will make it take longer for you to get a solution to your problem.
Is 39335 the actual name of the folder, or is it something else?
I ask because there is a known bug where Arduino IDE is not able to find libraries that are installed under paths that contain non-ASCII characters (e.g., мікроконтролер). Sometimes we are prevented from identifying this as the cause of user reports because they change the path to something without problematic characters for the sake of protecting their privacy. If this is the case for you, it is fine if you don't want to share the real name of the folder, but we do need to know whether it contains any potentially problematic characters.
If the folder is really named 39335 then that is not the cause of the problem as this folder name and path don't contain any problematic characters and we can focus our efforts on other possible causes of the problem.
You are being vague again. Just tell us the full path instead of interpreting it into ambiguous prose.
It doesn't have any functional effect on the program. Comments only serve to provide documentation for the humans reading the code. The compiler ignores the comment completely.
the path is C:\users\39335\Documents\Arduino\libraries/lvgl/lvgl.h where 39335 is the user name of my user windows.
However , I've installed 15 other libraries and all are working . Only lvgl not work !
I've installed lvgl by zip file using the sketch menu on Arduino IDE .
I try also with a simple sketch like this