Pregunta

Hi i just setup SDL2 for android on windows 7 with this guide - http://www.mosaicit.de/android-sdl-c-build-system-compiling. But the problem is that i would like to use SDL2_image and ttf but i don't know how to add them to this kind of project and i couldn't find anything on the subject elsewhere.

    Compile error:
    fatal error: SDL_image.h: No such file or

    Main.cpp
    #include <SDL_image.h>
¿Fue útil?

Solución

You need to download and build SDL_image just like you did with SDL: https://www.libsdl.org/projects/SDL_image/

Here's a specific tutorial for SDL_image and Android: http://jorhlok.net/2013/07/31/from-nix-to-android-with-sdl2-and-sdl_image-using-the-command-line-of-course/

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top