-
Notifications
You must be signed in to change notification settings - Fork 11
SDL2_image port command line parser causes an error #4
Comments
See |
How do I run the tests? I am using the emscripten binary distribution on windows. |
|
I'm experiencing the same problem. I tried running the test. Stuff seems to compile and run (maybe?) but I just get a "no http server activity" error (same thing with with any other test I tried to run with a command similar to above). However, when I try to compile my own project it doesn't even compile as the python script crashes (with the same error as the original poster had). To me it seems the problem is related to parsing the command line option in python and I don't imagine the test would be really testing that any way. I'm running windows also and I suspect that might be the issue. The test seems to use no single quotes around the array (SDL2_IMAGE_FORMATS=["png"]), but using that just gives another error (mentioned in emscripten-core/emscripten#3831). |
I have exactly the same problem here! Using windows 10. |
+1 This error occurs for me on Windows 10, whereas my code compiles fine with the same set of options on Linux. Edit: I fixed the error by replacing |
When adding
-s SDL2_IMAGE_FORMATS='["png"]'
to the command line options, I get the following error python errorReplacing
settings.SDL2_IMAGE_FORMATS.sort
withsettings.SDL2_IMAGE_FORMATS = ["png"]
in sdl_image.py solves the issue by hard coding the array. The content ofsettings.SDL2_IMAGE_FORMATS
was[png]
(I printed it), I think the string -> array conversion is missingThe text was updated successfully, but these errors were encountered: