Closed paldepind closed 9 years ago
The tests integrate into the test suite using that command, they aren't meant to be run standalone. But you can remove that line to make them work.
To run them from the test suite, you can do e.g. tests/runner.py browser.test_sdl2_image
Ok. I simply assumed they where examples I could compile and run. I probably got that impression since the tutorial told me to compile the hello_world.c
file in the example directory as if it was an example program. Looking at some of the other files in the directory they appear to be example programs as well.
Maybe creating an examples directory specifically for the demonstration programs would be a good idea? Mixing tests an examples seems odd to me.
Yeah, I suppose it could be confusing. For now I explained this in the tutorial. But maybe we should indeed create an examples/ folder.
On Sun, Feb 22, 2015 at 9:18 AM, Simon Friis Vindum < notifications@github.com> wrote:
Ok. I simply assumed they where examples I could compile and run. I probably got that impression since the tutorial told me to compile the hello_world.c file in the example directory as if it was an example program. Looking at some of the other files in the directory they appear to be example programs as well.
Maybe creating an examples directory specifically for the demonstration programs would be a good idea? Mixing tests an examples seems odd to me.
— Reply to this email directly or view it on GitHub https://github.com/emscripten-ports/SDL2/issues/9#issuecomment-75445904.
I've installed Emscripten as per the instructions.
However, when I try to compile any of SDL2 tests I get the following error:
The error seems to be related to this resolved issue.