You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding -s SDL2_IMAGE_FORMATS='["png"]' to the command line options, I get the following error python error
Traceback (most recent call last):
File "C:\Program Files\Emscripten\emscripten\1.35.0\\emcc", line 1128, in <module>
args = get_bitcode_args([input_file]) + ['-emit-llvm', '-c', '-o', output_file]
File "C:\Program Files\Emscripten\emscripten\1.35.0\\emcc", line 1108, in get_bitcode_args
args = system_libs.process_args(args, shared.Settings)
File "C:\Program Files\Emscripten\emscripten\1.35.0\tools\system_libs.py", line 527, in process_args
args = port.process_args(Ports, args, settings, shared)
File "C:\Program Files\Emscripten\emscripten\1.35.0\tools\ports\sdl_image.py", line 55, in process_args
get(ports, settings, shared)
File "C:\Program Files\Emscripten\emscripten\1.35.0\tools\ports\sdl_image.py", line 36, in get
settings.SDL2_IMAGE_FORMATS.sort()
AttributeError: 'str' object has no attribute 'sort'
Replacing settings.SDL2_IMAGE_FORMATS.sort with settings.SDL2_IMAGE_FORMATS = ["png"] in sdl_image.py solves the issue by hard coding the array. The content of settings.SDL2_IMAGE_FORMATS was [png] (I printed it), I think the string -> array conversion is missing
When adding
-s SDL2_IMAGE_FORMATS='["png"]'to the command line options, I get the following error python errorReplacing
settings.SDL2_IMAGE_FORMATS.sortwithsettings.SDL2_IMAGE_FORMATS = ["png"]in sdl_image.py solves the issue by hard coding the array. The content ofsettings.SDL2_IMAGE_FORMATSwas[png](I printed it), I think the string -> array conversion is missing