Skip to content
Example Visual Studio Solution for SDL2 projects on Android.
C C++ Objective-C Java Python Assembly Other
Branch: master
Clone or download
Pull request Compare This branch is 3 commits ahead, 1 commit behind fallahn:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
SDL2
SDL2_Application
SDL2_GradleApp
SDL2_image
SDL2_ttf
flac
main
mpeg2
mpg123
ogg
xml2
.gitignore
SDL2_project.sln
readme.md

readme.md

SDL2 Template Solution

This solution demonstrates how to set up a basic SDL2 project for Android in Visual Studio 2017. The solution is explained in detail on my blog.

Modifications 2019-09-17 (midwan

  • Upgraded target Android SDK to 28
  • Added more libraries in solution (FLAC, mpeg2, mpg123, ogg, xml2)

Modifications 2019-09-07 (midwan)

  • Upgraded SDL2 sources to the latest from Mercurial (>2.0.10)
  • Added SDL2-image
  • Added SDL2-ttf
  • Updated compiler and linker flags to be the same for both Debug and Release definitions

Modifications 2019-01-11

The solution was upgraded to SDL 2.0.9 sources.

This version of SDL2 depends on Android SDK level 26, which at the time of writing does not ship with the latest Visual Studio. As a result it is currently necessary to reconfigure Visual Studio to use separate installations of Android SDK and NDK. The appropriate setting is found in Visual Studio under Tools > Options > Cross Platform > Android.

Because newer Android SDKs removed support for the Apache Ant build system, a Gradle project was substituted. The Gradle project is a Visual Studio template and fully supported by Android/VC++.

— Evan Balster, imitone project

You can’t perform that action at this time.