LVL Text display

Hello again,

I have tried both ways but neither of them work.

  1. Cloning the repository directly inside the sketchbook folder
<sketchbook location>/
├── libraries/
│   ├── MyLVGLConfig/
│   │   ├── MyLVGLConfig.h
│   │   ├── library.properties
│   │   ├── lv_conf.h
│   │   ├── extras/
│   │   │   ├── Sketch/
│   │   │   │   ├── Sketch.ino
│   │   │   │   ├── . . .

double click on sketch.ino to launch the ide
Compile
I get the same error : fatal error: MyLVGLConfig.h: No such file or directory

  1. Symlink

Cloning the repo in C:\Git\MyLGVLConfig
Adding a Symlink via powershell
New-Item -ItemType 'SymbolicLink' -Path "C:\Users\xxx\Documents\Arduino\Libraries\MyLGVLConfig" -Value "C:\Git\MyLGVLConfig"
I checked with windows explorer and i see inside the libraries folder the shortcut to my git folder,
launch the ide double clicking the sketch.ino
Compile
I get the same error : fatal error: MyLVGLConfig.h: No such file or directory

Is cloning inside the libraries or adding the symlink sufficient for the ide to find the library ? is there something else i need to do ?

I tried include with two syntax also but both fail

#include <MyLVGLConfig.h> 
#include <Arduino_H7_Video.h>
#include <lvgl.h>
#include "MyLVGLConfig.h"
#include <Arduino_H7_Video.h>
#include <lvgl.h>

Double check that you have the correct path for <sketchbook location>:

  1. Start Arduino IDE.
  2. Select File > Preferences... from the Arduino IDE menus.
    The "Preferences" dialog will open.
  3. Verify that you did indeed clone the repository under the libraries subfolder of the path shown in the "Sketchbook location" field in the "Preferences" dialog.

From this, it appears you are expecting the sketchbook location to be at C:\Users\xxx\Documents\Arduino. That is indeed a common default location, but it is not guaranteed to be so:

  • You might have configured a custom sketchbook location
  • If you are using OneDrive, Windows uses a different path

Yes.

Use of a symlink does possibly complicate things, but the same can't be said for a Git clone. Since you are experiencing the same problem with either installation method, I don't think the symlink is the cause.

Hi,

I verified again but it is correct,
I checked the folder path using the ide in preferences
cloned directly inside it which gives me the following structure

<sketchbook location>/
├── libraries/
│   ├── MyLVGLConfig/
│   │   ├── MyLVGLConfig.h
│   │   ├── library.properties
│   │   ├── lv_conf.h
│   │   ├── extras/
│   │   │   ├── Sketch/
│   │   │   │   ├── Sketch.ino
│   │   │   │   ├── . . .

Started the sketch.ino by double clicking
and i get the same error that it doesnt find the MyLVGLConfig.h
Here is a screenshot of my libraries folder


Is there something else i can look at to help diagnose this issue ?

Would you mind sharing your project? That would allow me to try to reproduce the problem and investigate further.

If it is hosted in a public GitHub repository, you can provide a link to it. Otherwise, just make a ZIP file from the full MyLVGLConfig folder and add it as an attachment to a reply here on the forum topic.

Hi,

Here is my files, sorry for the delay.

Thank you in advance