Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It doesn't do anything. #8

Open
kdschlosser opened this issue Jan 13, 2025 · 14 comments
Open

It doesn't do anything. #8

kdschlosser opened this issue Jan 13, 2025 · 14 comments

Comments

@kdschlosser
Copy link

I installed it (Windows 11) and when it runs it prompts me to open a project. Now sure how to open a project when I have not been given the chance to create one. So I click the button. It then asks me to select a directory and I do. Then it drops me back to the UI editor where it states that I have not opened a project and provides a button to select a directory. There are a couple of other buttons but nothing that is relevent to creating a new project. There are buttons for "Compile Project", "Generate Code" and "Clear". If I click on "Generate code I get this as output in the console window

Console Ready
Generating code
Generating code for project: ****************
Failed to generate code.
Code generated successfully

The last 2 lines are rather interesting because is says it failed and then it says it was successful.

Pressing the "Compile" button gives this output.

Copying to temp directory.
liblvgl.a not found, starting build process...
Configuring LVGL library build...
Running command: cd /work/lib &&       mkdir -p /tmp/build && cd /tmp/build &&       emcmake cmake /work/lib &&       emmake make -j$(nproc) &&       cp liblvgl.a /work/lib/
Command failed: Error: connect ENOENT //./pipe/docker_engine
Failed to build LVGL library: Error: Docker command failed: Error: connect ENOENT //./pipe/docker_engine
Build failed: Failed to build liblvgl.a

Which it takes quite a while to get past the Copying to temp directory. Not sure why as it is running on a 32 logical processor machine with 128mb of memory with an SSD as the drive. It should have taken a fraction of a second to do the copy of a folder that has no files in it.

@kdschlosser
Copy link
Author

Suggestion to change the word "Console" to " Output Log". Console implies the user has the ability to directly interact with it and that is not the case. It is only to display an output log.

@kisvegabor
Copy link
Member

Hi,

Please check this video and follow the instructions in it. There you will see that you should clone this repo and use it as an example.

@kdschlosser
Copy link
Author

why not package the example into the program installer and have the open directory default to that location the first time it is opened?

@kdschlosser
Copy link
Author

kdschlosser commented Jan 13, 2025

well at least it now shows the files but it still doesn't work properly.

Console Ready
Generating code
Generating code for project: .......................
Code generated successfully
Compiling project
Copying to temp directory.
liblvgl.a not found, starting build process...
Configuring LVGL library build...
Running command: cd /work/lib &&       mkdir -p /tmp/build && cd /tmp/build &&       emcmake cmake /work/lib &&       emmake make -j$(nproc) &&       cp liblvgl.a /work/lib/
Command failed: Error: connect ENOENT //./pipe/docker_engine
Failed to build LVGL library: Error: Docker command failed: Error: connect ENOENT //./pipe/docker_engine
Build failed: Failed to build liblvgl.a

I am not sure as to why it is making a temporary directory in the root of my HDD instead of using the system defined temporary directory which is located in %APPDATA%\Local\Temp. The funny thing is there is no tmp directory that gets created in the root of my drive and there isn't one that gets created in the system supplied temp folder either. I am going to pin a debugger to it to see what the app is opening for handles and where those handles point to.

MakeFile is only available on Posix systems or inside of virtual machines like MinGW. It is not something that is available on Windows. CMake is what gets used to generate the files needed by Ninja. Ninja is what gets used as the build system when compiling on Windows.

@kdschlosser
Copy link
Author

also the "ENOENT" error is because you are spawing a process in a manner that doesn't work on Windows.

@kisvegabor
Copy link
Member

@coevin please take a look at this issue.

@coevin
Copy link
Collaborator

coevin commented Jan 13, 2025

Docker needs to be running

@kdschlosser
Copy link
Author

so I need to have docker installed for it to work? If that is the case I am not going to even bother messing with it. too much effort to get working.

@kisvegabor
Copy link
Member

Yes, Docker is required now. Later it will be needed only for advanced stuff such as rebuilding the preview of the editor.

@kdschlosser
Copy link
Author

why is docker a requirement at all?

@kdschlosser
Copy link
Author

why would the editor need to be recompiled?

@kisvegabor
Copy link
Member

kisvegabor commented Jan 14, 2025

Please watch the video. I've explained all these in it.

@kdschlosser
Copy link
Author

You can explain it all you like in a video but it doesn't do me any good. I don't have sound on my computer so all I would be seeing is your lips flapping away and me having no clue what you are saying... LOL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants