libsdl-org / sdlwiki

This is the raw contents of SDL's wiki. You can edit this through GitHub or at https://wiki.libsdl.org/ now!
https://wiki.libsdl.org/
84 stars 38 forks source link

Build examples + Fix SDL3 examples #506

Closed madebr closed 6 months ago

madebr commented 6 months ago

The remaining failing SDL3 examples are android symbols, and documentation pages where the example is basically:

    ```c++
    You can add your code example here


`SDL_GL_BindTexture` is also failing. Its example is probably way too complicated.
madebr commented 6 months ago

The remaining failing SDL3 examples are android symbols, and documentation pages where the example is basically:

    ```c++
    You can add your code example here


`SDL_GL_BindTexture` is also failing. Its example is probably way too complicated.

I removed those example blocks, and it turned out SDL_GL_BindTexture was removed from SDL3. :)

icculus commented 6 months ago

This is cool. :)

icculus commented 6 months ago

Should the #!/usr/bin/env python in extract_example.py use python3 instead? This is probably just needs to work on GitHub Actions, so not a big deal, but on Ubuntu 23.04, it fails if you try to run it with python, which is 2.7.18 in this case.

madebr commented 6 months ago

Should the #!/usr/bin/env python in extract_example.py use python3 instead? This is probably just needs to work on GitHub Actions, so not a big deal, but on Ubuntu 23.04, it fails if you try to run it with python, which is 2.7.18 in this case.

Yeah probably. I assumed most distributions changed the /usr/bin/python symlink to python3 by now. The CMake script uses Python3, so it does not really matter.