I’ve been using SDL2-2.0.10 for my Android build for fear that attempting to update to a later version would break something. I’ve finally bitten the bullet and tried to update to SDL2-2.26.2 but, as anticipated, it doesn’t build. The error I get is:
Android NDK: Module SDL2_net depends on undefined modules: SDL2
I’ve noticed that in 2.0.10 the app\jni
directory contained an SDL
subdirectory whereas in 2.26.2 there is no such subdirectory. In my project I’ve got SDL_net
and SDL_ttf
subdirectories here too but perhaps they shouldn’t be.
So what’s the correct way to add SDL2_net and SDL2_ttf to the 2.26.2 Android project?