From f7aeabb980226bdc7ff382acad7958d1ce6300dc Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Tue, 16 Jun 2026 10:55:55 +0200 Subject: [PATCH] doc: use testspriteminimal instead of testgles in android example testgles depends on SDL_test so would need ../src/test/*.c as an additonal argument. (cherry picked from commit da8aa39222221039a448054a66b713f5f30390c0) --- docs/README-android.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/README-android.md b/docs/README-android.md index 2bcfa74805..58dfa0473d 100644 --- a/docs/README-android.md +++ b/docs/README-android.md @@ -49,10 +49,10 @@ There's two ways of using it: sources.list should be a text file with a source file name in each line Filenames should be specified relative to the current directory, for example if -you are in the build-scripts directory and want to create the testgles.c test, you'll +you are in the build-scripts directory and want to create the testspriteminimal.c test, you'll run: - ./create-android-project.py org.libsdl.testgles ../test/testgles.c + ./create-android-project.py org.libsdl.testspriteminimal ../test/testspriteminimal.c ../test/icon.h One limitation of this script is that all sources provided will be aggregated into a single directory, thus all your source files should have a unique name. @@ -61,6 +61,9 @@ Once the project is complete the script will tell you how to build the project. If you want to create a signed release APK, you can use the project created by this utility to generate it. +If you see link errors about missing `SDLTest_*` symbols, +you need to add `../src/test/*.c` as an extra argument to `create-android-project.py`. + Running the script with `--help` will list all available options, and their purposes. Finally, a word of caution: re running create-android-project.py wipes any changes you may have