janick / WT32-SqLn

Getting started with Wireless Tag's WT32-SC01 Plus using SquareLine Studio and LVGL
MIT License
84 stars 11 forks source link

Error on build project #9

Closed visued closed 1 year ago

visued commented 1 year ago

Hi, thanks for the guide bro,

I need help for the build project. This is my config for export path ui in squareline: image

I I followed the steps described on your page, however, trying to execute the build command idf.py build is returning an error in the ui.c file when you need these methods: image

This is error in terminal: image

Any idea how to solve this ?

Best regards

janick commented 1 year ago

Yes. The more recent version of Squareline Studio exports the screens UI files in the "screens" subdirectory instead of a flat directory.

You need to modify the main/CMakeLists.txt file to make sure it lists the additional files under the correct path:

idf_component_register(SRCS "main.cpp" "ui/ui.c" "ui/ui_helpers.c" "ui/screens/ui_Main_Screen.c" "ui/screens/ui_Splash_Screen.c"

I've just pushed a fix so a simple 'pull' on your end should fix the issue.

Squareline Studio generates a CMakeLists.txt file in the export directory that I'm sure there is a way for the higher level one to include and avoid all these explicit paths problems, but not being a experienced cmake user, I do not know the right way to do it.

visued commented 1 year ago

Owww very thanks bro, works fine!