Squareline 1.3.0 export files include errors

What do you want to achieve?

Hi all, i recently had some problems including files generated by the newest version of Squareline Studio.
I see now that the files are generated and separated with folders, like “screens” that contains all the files relative to the screens of my UI.

What have you tried so far?

With this method i am forced to copy and paste the files in the folder that contains “screens” and modify the moved files code changing the include path, from
#include “…/ui.h”
to
#include “ui.h”

That works, but it’s a little bit annoying considering that in the before version i could simply export the file and that was it.

Others

  • SquareLine Studio version: 1.3.0
  • Operating system: Windows 11
  • Target hardware: ESP32-S3

I’m guessing you are using Arduino IDE?
Try changing your “Board Group” to “Arduino” in File > Project Settings

I had the same issue, I just removed “…/” on every export, not a huge deal, but today I found that “Board Group” setting and it seems to work, no need to remove “…/” anymore.

Hope it helps.

1 Like

As @mariuselz suggested, for Arduino, be sure to select the Arduino “board” in the project settings.

Due to the limitation of the Arduino build system since v1.3 the UI is exported as a library.