Hi All, I'm very new to ESP32 and Arduino IDE. I've bought Lilygo T-Display-S3 and my first goal is to make the factory clock work. I did everything Lilygo said on their GitHub page (GitHub - Xinyuan-LilyGO/T-Display-S3) and click verify the original factory.ino code. I have an error that refer to a directory that does not exist.
I believe the problem is about some confusion between MacOS and Windows version of Arduino IDE. In the Lilygo Github page, they said copy everything to Arduino libraries folder, I believe that would be ~/Library/Application Support/arduino-ide/. However, while I'm trying to verify, I've got an error message that refer to "/Users/chayaninmeesangnil/Documents/Arduino/libraries/lvgl/src/../src/"
What have I done wrong? help please.
In file included from /Users/chayaninmeesangnil/Documents/Arduino/libraries/lvgl/src/../src/lv_init.h:17,
from /Users/chayaninmeesangnil/Documents/Arduino/libraries/lvgl/src/../lvgl.h:24,
from /Users/chayaninmeesangnil/Documents/Arduino/libraries/lvgl/src/lvgl.h:16,
from /Users/chayaninmeesangnil/Library/Application Support/arduino-ide/T-Display-S3-main/examples/factory/factory.ino:19:
/Users/chayaninmeesangnil/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.
exit status 1
Compilation error: exit status 1
Sorry, I’m very new to this. Could you please explain what is “the libraries subfolder of your sketchbook folder” can you explain more?
What I did was download everything from GitHub page, un zip, and copy the whole folder to ~/Library/Application Support/arduino-ide/. And then copy everything in the lib folder to ~/Library/Application Support/arduino-ide/ as well.
That is not the correct installation procedure. Unfortunately the installation instructions are very low quality so it's not surprising if you weren't able to extrapolate the correct procedure for macOS from them:
Copy all folders in lib folder to Arduino library folder (e.g. C:\Users\YourName\Documents\Arduino\libraries)
I'll do what "LilyGO" was not considerate enough to do and provide detailed instructions you can follow to install the library dependencies of the project:
Select Arduino IDE > Settings... from the Arduino IDE menus.
The "Preferences" dialog will open.
Take note of the path shown in the "Sketchbook location" field of the dialog.
Click the "CANCEL" button.
The "Preferences" dialog will close.
Select Download ZIP from the menu.
A download of the ZIP file of the library will start.
Wait for the download to finish.
Extract the downloaded file.
Copy the contents of the lib folder from the extracted folder to the libraries subfolder of the path you saw in the Sketchbook location" preference.
The folder structure of the installation must look like this:
Thank you so much, ptillisch. I've successfully complied and uploaded to the board. I was struggled a little bit with the error because of auto update libraries. Everything is good now after overwrite the updated libraries with the original libraries from Lily GitHub page.
Thank you so much, now it is time to understand the code.
For what its worth, I could not get this to work under Arduino IDE 2.3.2
I tried the above suggestions but always got errors. <process.h> not found (tried it with "process.h") was the main one that caused me to think "stuff this" so I fired up a new install of VS Code, install extensions for Platform IO and Python, let it do its thing for setup. Selected Lily T-Display S3 on COM3, a couple of other things needed to be configured that it asked me to do. Then I pointed it to the Examples Factory folder ... it farted about for a bit installing libraries but that was it ... nothing else needed to be done. It had a couple of errors in first build but they were resolved with a second build and it uploads so very much quicker than Arduino IDE.