8000 Update README.md · lvgl/lv_micropython@483289a · GitHub
[go: up one dir, main page]

Skip to content

Commit 483289a

Browse files
kaiakzembeddedt
authored andcommitted
Update README.md
Add more information for building JavaScript port
1 parent 715c09f commit 483289a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,19 @@ You need Emscripten installed and working. There are lots of guides about that o
4343

4444
Once you have Emscripten working, you also need to install the `clang` package:
4545
1. `cd <path to emsdk>`
46-
2. `./emsdk install clang-e<sdk version>-64bit # for example: clang-e1.30.0-64bit`
47-
3. `./emsdk activate clang-e<sdk version>-64bit`
46+
2. Make sure you have installed `cmake`, and then `./emsdk install clang-tag-e<sdk version>-64bit # for example: clang-tag-e1.38.31-64bit` (You can use `./emsdk list` to show the available packages)
47+
3. `./emsdk activate clang-tag-e<sdk version>-64bit`
4848

4949
Now you can build the JavaScript port.
5050

5151
1. `cd <path to lv_micropython>`
52-
2. `. ./emsdk_env.sh`
52+
2. `source <path to emsdk>/emsdk_env.sh`
5353
3. `git checkout lvgl_javascript`
5454
4. `git submodule update --init --recursive` (*can be very important!*)
55-
5. `cd ports/javascript`
56-
6. `make`
57-
7. Run an HTTP server that serves files from the current directory.
58-
8. Browse to `/lvgl_editor.html` on the HTTP Server.
55+
5. Build the MicroPython cross-compiler: `make -C mpy-cross`
56+
6. `cd ports/javascript`
57+
7. `make`
58+
8. Run an HTTP server that serves files from the current directory, and then browse to `/lvgl_editor.html` on the HTTP Server.(Or you can run the `build/micropython.js` in `node`)
5959

6060
## Super Simple Example
6161

0 commit comments

Comments
 (0)
0