Squareline studio+esp32 s3 touch lcd 1,28

Hi,
I have moved from the 2.1” Waveshare display to a 1.28” ESP32-S3 LCD Touch. I’ve been experimenting with SquareLine Studio, but I’m looking for a good tutorial?

I’ve seen a couple of them, but I’m still unsure about the export function and the correct preference settings. Does anyone have a step-by-step guide they can recommend?

McNish

You've probably already seen it, but I think Basic Tutorials by SquareLine are the best.

It's demonstrated in Export into an Existing Project | Basics Tutorial #7.

In this video, MCUXpresso IDE by NXP is introduced, but it can also be applied to the Arduino IDE. The difference is that the video exports to the ui folder in the MCUXpresso project. For Arduino, you simply create a src in the same folder as the .ino, then export there.

If you're unfamiliar with the src subfolder, see:

Your sketch folder should look something like this:

LVGL_Arduino
├── LVGL_Arduino.ino
└── src
    ├── CMakeLists.txt
    ├── filelist.txt
    ├── ui.c
    ├── ui.h
    ├── ui_ScreenMain.c
    ├── ui_comp_hook.c
    ├── ui_events.h
    ├── ui_helpers.c
    ├── ui_helpers.h
    └── ui_img_715969206.c

Then all you need to do is to add include "src/ui.h" into your .ino file and also add ui_init() after the LVGL initialization.

Do you mean "Preferences" in SquareLine Studio? I don't see anything else that requires special settings, other than setting the autosave interval.

Perhaps "Project Settings" is more important. I've attached a screenshot I took some time ago.

By now, my 30-day trial period ended up and I had uninstalled the app, so I cannot check how it works or post screenshots :smiling_face_with_sunglasses:

I hope you can find a better tutorial :laughing:

can you give a link to the specific 1.28” ESP32-S3 LCD Touch display?
also details of project? e.g. sensors used, etc

Here is a link to the wiki page of the LCD:

hi @embeddedkiddie ,

I have now tryed this tutorial;

Gets a lv_conf.h fault. so I am not getting further. I will look at the scr!

Glad you found the right tutorial for you.

If you get stuck, just ask again here.
Good luck!

@embeddedkiddie

How to manage the lv_conf.h?

You had downloaded "ESP32-S3-Touch-LCD-1.28-Demo.zip" file from Waveshare Wiki page, right?

You can find the file named lv_conf_template.h.

ESP32-S3-Touch-LCD-1.28-Demo
├── Arduino
│   ├── examples
│   └── libraries
│       ├── TFT_eSPI
│       ├── TFT_eSPI_Setups
│       └── lvgl
│           ├── ...
│           ├── lv_conf_template.h // <--- Use this file
│           └── ...
└── ...

Then refer to the following link to setup lv_conf.h.

@embeddedkiddie

Does this look right?

Yes, it looks good.
Can you sketch compile your sketch successfully?

@embeddedkiddie

No, i get this error!

FQBN: esp32:esp32:esp32s3:FlashSize=16M,PartitionScheme=app3M_fat9M_16MB,PSRAM=enabled
Using board 'esp32s3' from platform in folder: C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.0
Using core 'esp32' from platform in folder: C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.0

cmd /c if exist "C:\Users\Allan Overbye\OneDrive\Skrivebord\esp32 s3 lcd touch\demo\demo\partitions.csv" COPY /y "C:\Users\Allan Overbye\OneDrive\Skrivebord\esp32 s3 lcd touch\demo\demo\partitions.csv" "C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639\partitions.csv"
cmd /c if not exist "C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639\partitions.csv" if exist "C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.0\variants\esp32s3\partitions.csv" COPY "C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.0\variants\esp32s3\partitions.csv" "C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639\partitions.csv"
cmd /c if not exist "C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639\partitions.csv" COPY "C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.0\tools\partitions\app3M_fat9M_16MB.csv" "C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639\partitions.csv"
cmd /c IF EXIST "C:\Users\Allan Overbye\OneDrive\Skrivebord\esp32 s3 lcd touch\demo\demo\bootloader.bin" ( COPY /y "C:\Users\Allan Overbye\OneDrive\Skrivebord\esp32 s3 lcd touch\demo\demo\bootloader.bin" "C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639\demo.ino.bootloader.bin" ) ELSE ( IF EXIST "C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.0\variants\esp32s3\bootloader.bin" ( COPY "C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.0\variants\esp32s3\bootloader.bin" "C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639\demo.ino.bootloader.bin" ) ELSE ( "C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\5.0.0\esptool.exe" --chip esp32s3 elf2image --flash-mode dio --flash-freq 80m --flash-size 16MB -o "C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639\demo.ino.bootloader.bin" "C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.5-b66b5448-v1\esp32s3\bin\bootloader_qio_80m.elf" ) )
esptool v5.0.0
Creating ESP32S3 image...
Merged 2 ELF sections.
Successfully created ESP32S3 image.
cmd /c if exist "C:\Users\Allan Overbye\OneDrive\Skrivebord\esp32 s3 lcd touch\demo\demo\build_opt.h" COPY /y "C:\Users\Allan Overbye\OneDrive\Skrivebord\esp32 s3 lcd touch\demo\demo\build_opt.h" "C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639\build_opt.h"
cmd /c if not exist "C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639\build_opt.h" type nul > "C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639\build_opt.h"
cmd /c type nul > "C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639/file_opts"
cmd /c COPY /y "C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.5-b66b5448-v1\esp32s3\sdkconfig" "C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639\sdkconfig"
1 file(s) copied.
Detecting libraries used...
C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\tools\esp-x32\2411/bin/xtensa-esp32s3-elf-g++ -c @C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.5-b66b5448-v1\esp32s3/flags/cpp_flags -w -Os -Werror=return-type -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10607 -DARDUINO_ESP32S3_DEV -DARDUINO_ARCH_ESP32 -DARDUINO_BOARD="ESP32S3_DEV" -DARDUINO_VARIANT="esp32s3" -DARDUINO_PARTITION_app3M_fat9M_16MB -DARDUINO_HOST_OS="windows" -DARDUINO_FQBN="esp32:esp32:esp32s3:UploadSpeed=921600,USBMode=hwcdc,CDCOnBoot=default,MSCOnBoot=default,DFUOnBoot=default,UploadMode=default,CPUFreq=240,FlashMode=qio,FlashSize=16M,PartitionScheme=app3M_fat9M_16MB,DebugLevel=none,PSRAM=enabled,LoopCore=1,EventsCore=1,EraseFlash=none,JTAGAdapter=default,ZigbeeMode=default" -DESP32=ESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DBOARD_HAS_PSRAM -DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT=0 -DARDUINO_USB_MSC_ON_BOOT=0 -DARDUINO_USB_DFU_ON_BOOT=0 @C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.5-b66b5448-v1\esp32s3/flags/defines -IC:\Users\Allan Overbye\OneDrive\Skrivebord\esp32 s3 lcd touch\demo\demo -iprefix C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.5-b66b5448-v1\esp32s3/include/ @C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.5-b66b5448-v1\esp32s3/flags/includes -IC:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.5-b66b5448-v1\esp32s3/qio_qspi/include -IC:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.0\cores\esp32 -IC:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.0\variants\esp32s3 @C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639/build_opt.h @C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639/file_opts C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639\sketch\demo.ino.cpp -o nul
Alternatives for lvgl.h: [lvgl@8.3.4]
ResolveLibrary(lvgl.h)
-> candidates: [lvgl@8.3.4]
C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\tools\esp-x32\2411/bin/xtensa-esp32s3-elf-g++ -c @C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.5-b66b5448-v1\esp32s3/flags/cpp_flags -w -Os -Werror=return-type -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10607 -DARDUINO_ESP32S3_DEV -DARDUINO_ARCH_ESP32 -DARDUINO_BOARD="ESP32S3_DEV" -DARDUINO_VARIANT="esp32s3" -DARDUINO_PARTITION_app3M_fat9M_16MB -DARDUINO_HOST_OS="windows" -DARDUINO_FQBN="esp32:esp32:esp32s3:UploadSpeed=921600,USBMode=hwcdc,CDCOnBoot=default,MSCOnBoot=default,DFUOnBoot=default,UploadMode=default,CPUFreq=240,FlashMode=qio,FlashSize=16M,PartitionScheme=app3M_fat9M_16MB,DebugLevel=none,PSRAM=enabled,LoopCore=1,EventsCore=1,EraseFlash=none,JTAGAdapter=default,ZigbeeMode=default" -DESP32=ESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DBOARD_HAS_PSRAM -DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT=0 -DARDUINO_USB_MSC_ON_BOOT=0 -DARDUINO_USB_DFU_ON_BOOT=0 @C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.5-b66b5448-v1\esp32s3/flags/defines -IC:\Users\Allan Overbye\OneDrive\Skrivebord\esp32 s3 lcd touch\demo\demo -iprefix C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.5-b66b5448-v1\esp32s3/include/ @C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.5-b66b5448-v1\esp32s3/flags/includes -IC:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.5-b66b5448-v1\esp32s3/qio_qspi/include -IC:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.0\cores\esp32 -IC:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.0\variants\esp32s3 -Ic:\Users\Allan Overbye\OneDrive\Dokumenter\Arduino\1,28Touch\touch\SquareLine_Project\ui\libraries\lvgl\src @C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639/build_opt.h @C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639/file_opts C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639\sketch\demo.ino.cpp -o nul
In file included from c:/Users/Allan Overbye/OneDrive/Dokumenter/Arduino/1,28Touch/touch/SquareLine_Project/ui/libraries/lvgl/src/misc/lv_log.h:16,
from c:/Users/Allan Overbye/OneDrive/Dokumenter/Arduino/1,28Touch/touch/SquareLine_Project/ui/libraries/lvgl/lvgl.h:25,
from c:\Users\Allan Overbye\OneDrive\Dokumenter\Arduino\1,28Touch\touch\SquareLine_Project\ui\libraries\lvgl\src/lvgl.h:17,
from C:\Users\Allan Overbye\OneDrive\Skrivebord\esp32 s3 lcd touch\demo\demo\demo.ino:4:
c:/Users/Allan Overbye/OneDrive/Dokumenter/Arduino/1,28Touch/touch/SquareLine_Project/ui/libraries/lvgl/src/lv_conf_internal.h:41:18: fatal error: ../../lv_conf.h: No such file or directory
41 | #include "../../lv_conf.h" /Else assume lv_conf.h is next to the lvgl folder/
| ^~~~~~~~~~~~~~~~~
compilation terminated.
Alternatives for ../../lv_conf.h: []
ResolveLibrary(../../lv_conf.h)
-> candidates: []
exit status 1

Compilation error: exit status 1

Please copy & paste the messages from IDE into the <CODE/> tag for good readability like this:

FQBN: esp32:esp32:esp32s3:FlashSize=16M,PartitionScheme=app3M_fat9M_16MB,PSRAM=enabled
Using board 'esp32s3' from platform in folder: C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.0
Using core 'esp32' from platform in folder: C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.0

cmd /c if exist "C:\Users\Allan Overbye\OneDrive\Skrivebord\esp32 s3 lcd touch\demo\demo\partitions.csv" COPY /y "C:\Users\Allan Overbye\OneDrive\Skrivebord\esp32 s3 lcd touch\demo\demo\partitions.csv" "C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639\partitions.csv"
cmd /c if not exist "C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639\partitions.csv" if exist "C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.0\variants\esp32s3\partitions.csv" COPY "C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.0\variants\esp32s3\partitions.csv" "C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639\partitions.csv"
cmd /c if not exist "C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639\partitions.csv" COPY "C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.0\tools\partitions\app3M_fat9M_16MB.csv" "C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639\partitions.csv"
cmd /c IF EXIST "C:\Users\Allan Overbye\OneDrive\Skrivebord\esp32 s3 lcd touch\demo\demo\bootloader.bin" ( COPY /y "C:\Users\Allan Overbye\OneDrive\Skrivebord\esp32 s3 lcd touch\demo\demo\bootloader.bin" "C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639\demo.ino.bootloader.bin" ) ELSE ( IF EXIST "C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.0\variants\esp32s3\bootloader.bin" ( COPY "C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.0\variants\esp32s3\bootloader.bin" "C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639\demo.ino.bootloader.bin" ) ELSE ( "C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\5.0.0\esptool.exe" --chip esp32s3 elf2image --flash-mode dio --flash-freq 80m --flash-size 16MB -o "C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639\demo.ino.bootloader.bin" "C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.5-b66b5448-v1\esp32s3\bin\bootloader_qio_80m.elf" ) )
esptool v5.0.0
Creating ESP32S3 image...
Merged 2 ELF sections.
Successfully created ESP32S3 image.
cmd /c if exist "C:\Users\Allan Overbye\OneDrive\Skrivebord\esp32 s3 lcd touch\demo\demo\build_opt.h" COPY /y "C:\Users\Allan Overbye\OneDrive\Skrivebord\esp32 s3 lcd touch\demo\demo\build_opt.h" "C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639\build_opt.h"
cmd /c if not exist "C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639\build_opt.h" type nul > "C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639\build_opt.h"
cmd /c type nul > "C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639/file_opts"
cmd /c COPY /y "C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.5-b66b5448-v1\esp32s3\sdkconfig" "C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639\sdkconfig"
1 file(s) copied.
Detecting libraries used...
C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\tools\esp-x32\2411/bin/xtensa-esp32s3-elf-g++ -c @C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.5-b66b5448-v1\esp32s3/flags/cpp_flags -w -Os -Werror=return-type -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10607 -DARDUINO_ESP32S3_DEV -DARDUINO_ARCH_ESP32 -DARDUINO_BOARD="ESP32S3_DEV" -DARDUINO_VARIANT="esp32s3" -DARDUINO_PARTITION_app3M_fat9M_16MB -DARDUINO_HOST_OS="windows" -DARDUINO_FQBN="esp32:esp32:esp32s3:UploadSpeed=921600,USBMode=hwcdc,CDCOnBoot=default,MSCOnBoot=default,DFUOnBoot=default,UploadMode=default,CPUFreq=240,FlashMode=qio,FlashSize=16M,PartitionScheme=app3M_fat9M_16MB,DebugLevel=none,PSRAM=enabled,LoopCore=1,EventsCore=1,EraseFlash=none,JTAGAdapter=default,ZigbeeMode=default" -DESP32=ESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DBOARD_HAS_PSRAM -DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT=0 -DARDUINO_USB_MSC_ON_BOOT=0 -DARDUINO_USB_DFU_ON_BOOT=0 @C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.5-b66b5448-v1\esp32s3/flags/defines -IC:\Users\Allan Overbye\OneDrive\Skrivebord\esp32 s3 lcd touch\demo\demo -iprefix C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.5-b66b5448-v1\esp32s3/include/ @C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.5-b66b5448-v1\esp32s3/flags/includes -IC:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.5-b66b5448-v1\esp32s3/qio_qspi/include -IC:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.0\cores\esp32 -IC:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.0\variants\esp32s3 @C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639/build_opt.h @C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639/file_opts C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639\sketch\demo.ino.cpp -o nul
Alternatives for lvgl.h: [lvgl@8.3.4]
ResolveLibrary(lvgl.h)
-> candidates: [lvgl@8.3.4]
C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\tools\esp-x32\2411/bin/xtensa-esp32s3-elf-g++ -c @C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.5-b66b5448-v1\esp32s3/flags/cpp_flags -w -Os -Werror=return-type -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10607 -DARDUINO_ESP32S3_DEV -DARDUINO_ARCH_ESP32 -DARDUINO_BOARD="ESP32S3_DEV" -DARDUINO_VARIANT="esp32s3" -DARDUINO_PARTITION_app3M_fat9M_16MB -DARDUINO_HOST_OS="windows" -DARDUINO_FQBN="esp32:esp32:esp32s3:UploadSpeed=921600,USBMode=hwcdc,CDCOnBoot=default,MSCOnBoot=default,DFUOnBoot=default,UploadMode=default,CPUFreq=240,FlashMode=qio,FlashSize=16M,PartitionScheme=app3M_fat9M_16MB,DebugLevel=none,PSRAM=enabled,LoopCore=1,EventsCore=1,EraseFlash=none,JTAGAdapter=default,ZigbeeMode=default" -DESP32=ESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DBOARD_HAS_PSRAM -DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT=0 -DARDUINO_USB_MSC_ON_BOOT=0 -DARDUINO_USB_DFU_ON_BOOT=0 @C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.5-b66b5448-v1\esp32s3/flags/defines -IC:\Users\Allan Overbye\OneDrive\Skrivebord\esp32 s3 lcd touch\demo\demo -iprefix C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.5-b66b5448-v1\esp32s3/include/ @C:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.5-b66b5448-v1\esp32s3/flags/includes -IC:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.5-b66b5448-v1\esp32s3/qio_qspi/include -IC:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.0\cores\esp32 -IC:\Users\Allan Overbye\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.0\variants\esp32s3 -Ic:\Users\Allan Overbye\OneDrive\Dokumenter\Arduino\1,28Touch\touch\SquareLine_Project\ui\libraries\lvgl\src @C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639/build_opt.h @C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639/file_opts C:\Users\Allan Overbye\AppData\Local\arduino\sketches\E96182DC40E0DF807A89A6B59977F639\sketch\demo.ino.cpp -o nul
In file included from c:/Users/Allan Overbye/OneDrive/Dokumenter/Arduino/1,28Touch/touch/SquareLine_Project/ui/libraries/lvgl/src/misc/lv_log.h:16,
from c:/Users/Allan Overbye/OneDrive/Dokumenter/Arduino/1,28Touch/touch/SquareLine_Project/ui/libraries/lvgl/lvgl.h:25,
from c:\Users\Allan Overbye\OneDrive\Dokumenter\Arduino\1,28Touch\touch\SquareLine_Project\ui\libraries\lvgl\src/lvgl.h:17,
from C:\Users\Allan Overbye\OneDrive\Skrivebord\esp32 s3 lcd touch\demo\demo\demo.ino:4:
c:/Users/Allan Overbye/OneDrive/Dokumenter/Arduino/1,28Touch/touch/SquareLine_Project/ui/libraries/lvgl/src/lv_conf_internal.h:41:18: fatal error: ../../lv_conf.h: No such file or directory
41 | #include "../../lv_conf.h" /Else assume lv_conf.h is next to the lvgl folder/
| ^~~~~~~~~~~~~~~~~
compilation terminated.
Alternatives for ../../lv_conf.h: []
ResolveLibrary(../../lv_conf.h)
-> candidates: []
exit status 1

Compilation error: exit status 1

This type of error occurs when the file structure in the sketch folder containing the .ino file differs from the author's intention.

The posted image has lvgl in c:\ArduinoIDE\libraries\, while the error message refers to lvgl in c:\Users\Allan Overbye\OneDrive\Dokumenter\Arduino\1,28Touch\touch\SquareLine_Project\ui\libraries\.

Make sure to build your project's sketches and libraries correctly based on the Sketchbook location you set in Preferences.

If you're unfamiliar with Arduino compilation, I recommend understanding this documentation about the folder structure: "Find sketches, libraries, board cores, and other files on your computer."

@embeddedkiddie

I tryed changing it, but with no luck:

In squareline studio witch export do you chose?

Unfortunately, it seems that Arduino IDE and OneDrive do not work well together.

Try setting the Sketchbook location in Preferences to c:\ArduinoIDE\ and moving the sketch folder from OneDrive to that folder.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.