Closed GlebDen closed 1 year ago
There is no zip archive in that folder. It only contains the 'espressif' directory. It is the directory (and its entire content) that needs to be copied over.
% tree SquareLine/boards
SquareLine/boards
└── espressif
└── wt32_sc01_plus
├── wt32_sc01_plus.png
└── wt32_sc01_plus.slb
3 directories, 2 files
Without this, the ZIP file in Squareline is constantly shows errors when trying to export the project.
Even in my SquareLine install, there is no such ZIP file and I can export without problems (on MacOS):
% tree /Applications/SquareLine_Studio.app/Contents/boards
/Applications/SquareLine_Studio.app/Contents/boards
├── Desktop
│ └── sim_sdl_eclipse_v1_0_1
│ ├── sim_sdl_eclipse.png
│ ├── sim_sdl_eclipse.slb
│ └── sim_sdl_eclipse.zip
└── espressif
└── wt32_sc01_plus
├── wt32_sc01_plus.png
└── wt32_sc01_plus.slb
5 directories, 5 files
What error message are you getting exactly? And what version of SquareLine are you running and on what OS?
Windows 10 SLS v1.3.0 There is just part of the log-file:
Start lvgl server from: C:/Program Files/SquareLine Studio 1.3.0/SquareLine_Studio_Data\..\lvgl\lvgl_v8_2_0\server\ Connect to 127.0.0.1 on port 20085 START FULL REBUILD Connection success Render screen: ui_Screen1 Select : Screen1 Exception at export: System.IO.FileNotFoundException: Could not find file "C:\Users\GL\Documents\SquareLine\boards\Espressif\wt32_sc01_plus\wt32_sc01_plus.zip" File name: 'C:\Users\GL\Documents\SquareLine\boards\Espressif\wt32_sc01_plus\wt32_sc01_plus.zip' at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <b59b505928ad4b6c85841d9207962ca0>:0 at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options) [0x00000] in <b59b505928ad4b6c85841d9207962ca0>:0 at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean useAsync) [0x00000] in <b59b505928ad4b6c85841d9207962ca0>:0 at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,bool) at System.IO.Compression.ZipFile.Open (System.String archiveFileName, System.IO.Compression.ZipArchiveMode mode, System.Text.Encoding entryNameEncoding) [0x00037] in <ae7890cc2e674585852451f12147bd74>:0 at System.IO.Compression.ZipFile.ExtractToDirectory (System.String sourceArchiveFileName, System.String destinationDirectoryName, System.Text.Encoding entryNameEncoding, System.Boolean overwrite) [0x0000e] in <ae7890cc2e674585852451f12147bd74>:0 at System.IO.Compression.ZipFile.ExtractToDirectory (System.String sourceArchiveFileName, System.String destinationDirectoryName, System.Text.Encoding entryNameEncoding) [0x00000] in <ae7890cc2e674585852451f12147bd74>:0 at System.IO.Compression.ZipFile.ExtractToDirectory (System.String sourceArchiveFileName, System.String destinationDirectoryName) [0x00000] in <ae7890cc2e674585852451f12147bd74>:0 at ĩĪĩĪĩĩĩĩĪĪĪĪĩĪĪĪĪĩĩĩĩĩĩĩĪĪĪĪĪĪĪĪĩĪĪĪĪĩĪĪĪĪĪĪĪĩĪ.ĪĩĪĩĪĪĪĪĪĪĩĩĪĩĩĪĩĩĪĪĩĩĩĪĩĩĪĩĩĩĪĩĩĩĪĪĩĪĪĪĪĪĩĪĩĩĪ (System.String ĩĩĪĩĪĪĩĪĪĩĪĪĩĩĪĩĪĩĩĩĩĪĪĩĩĪĪĪĪĪĪĪĪĪĪĩĪĪĪĩĩĪĩĪĪĪĩ) [0x000a1] in <20666718025f4c3189e93d956113107b>:0 at MenuLine+ĩĩĪĪĪĪĩĪĩĪĪĪĩĩĪĪĩĪĩĪĪĪĪĪĩĩĪĪĩĩĩĪĩĪĪĩĪĩĩĪĩĩĩĩĩĪĪ+<<ExportMenu>g__Action|0>d.MoveNext () [0x0004c] in <20666718025f4c3189e93d956113107b>:0 AStyle version: 3.1
Weird. Here's my project settings (I'm on 1.2.3) and it exports just fine:
I just looked at the sim_sdl_eclipse.zip
file and it seems to contain the device drivers and LVGL configuration files that are already included in this project. Maybe copy/rename it over and make sure you do not clobber the files from the repo when exporting??
And when exporting, you are selecting the "Export UI Files" option and not "Create Template Project"?
If I understand everything correctly, the folder should be called exclusively main\ui ???
Yes, because that's what the CMakefile.txt is configured with in this project.
Will I be able to use these parameters (board) with my own project?
A "project" is nothing more than the set of files that support the UI and its functionality. This entire repo is a project. You need not create one from SquareLine. Within the context of this project, you use SquareLine only to modify the UI components.
To create your own project:
Hello. Yes, I get it now
Hello. The wt32_sc01_plus.zip is missing in Squareline board folder. Is it possible to add it somehow?