messense

Results 481 comments of messense
trafficstars

@km19809 On Unix systems you don't really need the target Python just for cross compiling, all you need is to set the right filename for `.so` files and set the...

@km19809 Example links are broken. > Not using audio How to disable audio?

@kitao Use this one: [pyodide.zip](https://github.com/kitao/pyxel/files/9351692/pyodide.zip)

Works for me with a `canvas` element in `index.html` ```diff diff --git a/server/index.html b/server/index.html index 244d881d..ab76d8d6 100644 --- a/server/index.html +++ b/server/index.html @@ -2,10 +2,13 @@ - + + + +...

> And I tried the special version of pyodide.js by @km19809 but error occurs while loading it. The package @km19809 provided before misses some required files, you need to pack...

For the time being, if we cannot get Emscripten main loop to work properly, we could just use pyodide's `WebLoop`. https://github.com/kitao/pyxel/blob/05e0e23870b6406e2d8c5d15accd1460d761f4d8/python/pyxel/__init__.py Change it to ```python import sys from .pyxel_wrapper import...

> Actually I don't understand the relation between Pyodide and Emscripten version of SDL2 It's related to how Emscripten implementing dynamic linking, see https://github.com/pyodide/pyodide/issues/2964#issuecomment-1214651891, and some parts of SDL2 is...

@kitao @km19809 uploaded them to here https://github.com/km19809/km19809.github.io/tree/main/pyxelodide

```bash rm -rf python rm -rf test* rm -rf *.html rm -rf pyxel-* ```

It also requires patching Python binding ```diff diff --git a/bindings/python/Cargo.toml b/bindings/python/Cargo.toml index cebc70e..817b928 100644 --- a/bindings/python/Cargo.toml +++ b/bindings/python/Cargo.toml @@ -23,6 +23,8 @@ itertools = "0.9" [dependencies.tokenizers] version = "*" path...