Setup LVGL in a simulator with 4 clicks in 2 minutes

Hey,

Our docs is being completely reviewed and restructured by @vawheeler63. I’ve open this issue to discuss how we can improve it.

I really hope that we can see progress to the documentation update soon. It would be really great to be able to use the linux simulator as intended.

Wow, impressive. Note that codespace doesn’t seem to work in firefox. It is working for me in MS
Edge.

Good to know, thank you!

@kisvegabor , thanks!
FYI, for the GitHub Codespace , it’s now 60 free hours/month

I’d love to give this a shot, @kisvegabor! Unfortunately, I’m running into a lack of adequate Python packages when I try to build:

configure: cmake .. -DCMAKE_TOOLCHAIN_FILE=/usr/local/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_CROSSCOMPILING_EMULATOR=/usr/local/emsdk/node/20.18.0_64bit/bin/node
The virtual environment was not created successfully because ensurepip is not
available.  On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.

    apt install python3.8-venv

You may need to use sudo with that command.  After installing the python3-venv
package, recreate your virtual environment.

Failing command: ['/workspace/lvgl_app/build/lvgl/.venv/bin/python3.8', '-Im', 'ensurepip', '--upgrade', '--default-pip']

Error setting up environnement: Command '['/usr/bin/python3.8', '-m', 'venv', '/workspace/lvgl_app/build/lvgl/.venv']' returned non-zero exit status 1.
CMake Error at lvgl/env_support/cmake/custom.cmake:90 (message):
  preprocess_lv_conf_internal.py failed with return code: 1
Call Stack (most recent call first):
  lvgl/CMakeLists.txt:23 (include)


-- Configuring incomplete, errors occurred!
See also "/workspace/lvgl_app/build/CMakeFiles/CMakeOutput.log".
emcmake: error: 'cmake .. -DCMAKE_TOOLCHAIN_FILE=/usr/local/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_CROSSCOMPILING_EMULATOR=/usr/local/emsdk/node/20.18.0_64bit/bin/node' failed (returned 1)
@kabaragoya-loves-you ➜ /workspace/lvgl_app/build $ emmake make -j$(nproc)

Initially, I tried to drag the build script to the terminal as you suggested. I then attempted to execute the commands manually from inside the build folder.

It’s an otherwise fresh codespace that I generated a few moments ago from the Code button on the lvgl repo, as you suggested.

Clearly we don’t have sudo capability, so it’s difficult to add a python package.

FYI, for the GitHub Codespace , it’s now 60 free hours/month

Amazing! Thank you for shraing it!

Unfortunately, I’m running into a lack of adequate Python packages when I try to build:

Thank you! We have also noticed that an update broke a few things. We are on it. Sorry for the inconvinence.

FYI, for the GitHub Codespace , it’s now 60 free hours/month

Amazing! Thank you for shraing it!

Unfortunately, I’m running into a lack of adequate Python packages when I try to build:

Thank you! We have also noticed that an update broke a few things. We are on it. Sorry for the inconvinence.

1 Like

I appreciate all that you do!

In the meantime, I installed gcc and CodeBlocks to success. I have a hunch that the actual round-trip compiling iteration speed might ultimately be faster than a virtualized solution. I’d still love to see it in action. In a previous life, I did a similar bit of ninjitsu getting a Rails app running on a Glitch instance and the number of fiddly bits that accumulate new issues over time is significant.

All of that said, I agree with the others who have said that this project should be added to the official documentation yesterday.

BTW: nothing against Code Blocks, but it’s miles away from being as usable as VS Code or Cursor. If you know anyone who has successfully achieved an lvgl simulator in VSC, I’d appreciate a link.

It should work: GitHub - lvgl/lv_port_pc_vscode